diff --git a/README.md b/README.md
index 8fedd000e..9b13d1ba8 100644
--- a/README.md
+++ b/README.md
@@ -104,6 +104,7 @@ Detailed Facade documentation is available as part of the [full API documentatio
| ActionPruner |
- [ActionPrunerV1.ts](/api/facades/action-pruner/ActionPrunerV1.ts)
|
| Action | - [ActionV6.ts](/api/facades/action/ActionV6.ts)
- [ActionV7.ts](/api/facades/action/ActionV7.ts)
|
| Admin | - [AdminV3.ts](/api/facades/admin/AdminV3.ts)
|
+| AgentLifeFlag | - [AgentLifeFlagV1.ts](/api/facades/agent-life-flag/AgentLifeFlagV1.ts)
|
| AgentTools | - [AgentToolsV1.ts](/api/facades/agent-tools/AgentToolsV1.ts)
|
| Agent | - [AgentV2.ts](/api/facades/agent/AgentV2.ts)
- [AgentV3.ts](/api/facades/agent/AgentV3.ts)
|
| AllModelWatcher | - [AllModelWatcherV2.ts](/api/facades/all-model-watcher/AllModelWatcherV2.ts)
- [AllModelWatcherV3.ts](/api/facades/all-model-watcher/AllModelWatcherV3.ts)
- [AllModelWatcherV4.ts](/api/facades/all-model-watcher/AllModelWatcherV4.ts)
|
@@ -231,11 +232,11 @@ Detailed Facade documentation is available as part of the [full API documentatio
The Juju facade API files are generated from a supplied Juju schema.
-To generate this schema you will need to clone the [Juju repository](https://github.com/juju/juju/) and then run `go run github.com/juju/juju/generate/schemagen -admin-facades --facade-group=client,jimm ./apiserver/facades/schema.json` to generate a schema file that contains the publicly available facades as well as the set of facades for JAAS. Other `--facade-group` options are `latest` and `all`.
+To generate this schema you will need to clone the [Juju repository](https://github.com/juju/juju/) and then run `make rebuild-schema` or `go run github.com/juju/juju/generate/schemagen -admin-facades --facade-group=client,jimm ./apiserver/facades/schema.json` to generate a schema file that contains the publicly available facades as well as the set of facades for JAAS. Other `--facade-group` options are `latest` and `all`.
After generating a new schema run `yarn store-schema ../path/to/juju` which will store the updated schema and necessary meta data in this project.
-To update the facades, run `yarn build` on this project. This will generate the facades using the locally stored schema, sha, and version the schema was generated from.
+To update the facades, run `yarn generate-facades` on this project. This will generate the facades using the locally stored schema, sha, and version the schema was generated from.
Finally, update `CLIENT_VERSION` in `api/client.ts` with the highest support version.
diff --git a/api/client.ts b/api/client.ts
index f4bd5a5e2..1d0d93805 100644
--- a/api/client.ts
+++ b/api/client.ts
@@ -9,6 +9,7 @@
import { Bakery } from "@canonical/macaroon-bakery";
import AdminV3, {
+ AuthUserInfo,
FacadeVersions,
LoginRequest,
LoginResult,
@@ -29,7 +30,7 @@ import {
} from "./types.js";
import { createAsyncHandler } from "./utils.js";
-export const CLIENT_VERSION = "3.2.0";
+export const CLIENT_VERSION = "3.2.1";
export interface ConnectOptions {
bakery?: Bakery | null;
@@ -44,14 +45,14 @@ export interface ConnectionInfo {
controllerTag?: string;
serverVersion?: string;
servers?: object[];
- user?: object;
+ user?: AuthUserInfo;
getFacade?: (name: string) => Facade;
}
export interface Credentials {
username?: string;
password?: string;
- macaroons?: object;
+ macaroons?: MacaroonObject[][];
}
/**
diff --git a/api/facades/action-pruner/ActionPrunerV1.ts b/api/facades/action-pruner/ActionPrunerV1.ts
index a831d3564..c8ecf513f 100644
--- a/api/facades/action-pruner/ActionPrunerV1.ts
+++ b/api/facades/action-pruner/ActionPrunerV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/action/ActionV7.ts b/api/facades/action/ActionV7.ts
index f4f586565..e88baef01 100644
--- a/api/facades/action/ActionV7.ts
+++ b/api/facades/action/ActionV7.ts
@@ -4,7 +4,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -53,7 +53,7 @@ export interface Actions {
}
export interface ApplicationCharmActionsResult {
- actions: AdditionalProperties;
+ actions: Record;
"application-tag": string;
error: Error;
}
diff --git a/api/facades/admin/AdminV3.ts b/api/facades/admin/AdminV3.ts
index be936740e..a3ba57189 100644
--- a/api/facades/admin/AdminV3.ts
+++ b/api/facades/admin/AdminV3.ts
@@ -8,7 +8,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -63,6 +63,7 @@ export interface LoginRequest {
credentials: string;
macaroons: Macaroon[][];
nonce: string;
+ token?: string;
"user-data": string;
}
diff --git a/api/facades/agent-life-flag/AgentLifeFlagV1.ts b/api/facades/agent-life-flag/AgentLifeFlagV1.ts
new file mode 100644
index 000000000..144b3564d
--- /dev/null
+++ b/api/facades/agent-life-flag/AgentLifeFlagV1.ts
@@ -0,0 +1,108 @@
+/**
+ Juju AgentLifeFlag version 1.
+ This facade is available on:
+ Controller-machine-agent
+ Machine-agent
+ Unit-agent
+ Models
+
+ NOTE: This file was generated using the Juju schema
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
+ Do not manually edit this file.
+*/
+
+import type { JujuRequest } from "../../../generator/interfaces.js";
+import { ConnectionInfo, Transport } from "../../client.js";
+import { Facade } from "../../types.js";
+import { autoBind } from "../../utils.js";
+
+export interface Entities {
+ entities: Entity[];
+}
+
+export interface Entity {
+ tag: string;
+}
+
+export interface Error {
+ code: string;
+ info?: AdditionalProperties;
+ message: string;
+}
+
+export interface LifeResult {
+ error?: Error;
+ life: string;
+}
+
+export interface LifeResults {
+ results: LifeResult[];
+}
+
+export interface NotifyWatchResult {
+ NotifyWatcherId: string;
+ error?: Error;
+}
+
+export interface NotifyWatchResults {
+ results: NotifyWatchResult[];
+}
+
+export interface AdditionalProperties {
+ [key: string]: any;
+}
+
+/**
+
+*/
+class AgentLifeFlagV1 implements Facade {
+ static NAME = "AgentLifeFlag";
+ static VERSION = 1;
+
+ NAME = "AgentLifeFlag";
+ VERSION = 1;
+
+ _transport: Transport;
+ _info: ConnectionInfo;
+
+ constructor(transport: Transport, info: ConnectionInfo) {
+ this._transport = transport;
+ this._info = info;
+
+ // Automatically bind all methods to instances.
+ autoBind(this);
+ }
+ /**
+ Life returns the life status of every supplied entity, where available.
+ */
+ life(params: Entities): Promise {
+ return new Promise((resolve, reject) => {
+ const req: JujuRequest = {
+ type: "AgentLifeFlag",
+ request: "Life",
+ version: 1,
+ params: params,
+ };
+
+ this._transport.write(req, resolve, reject);
+ });
+ }
+
+ /**
+ Watch starts an NotifyWatcher for each given entity.
+ */
+ watch(params: Entities): Promise {
+ return new Promise((resolve, reject) => {
+ const req: JujuRequest = {
+ type: "AgentLifeFlag",
+ request: "Watch",
+ version: 1,
+ params: params,
+ };
+
+ this._transport.write(req, resolve, reject);
+ });
+ }
+}
+
+export default AgentLifeFlagV1;
diff --git a/api/facades/agent-life-flag/index.ts b/api/facades/agent-life-flag/index.ts
new file mode 100644
index 000000000..34a1e4d81
--- /dev/null
+++ b/api/facades/agent-life-flag/index.ts
@@ -0,0 +1,11 @@
+import { GenericFacade } from "../../types";
+import AgentLifeFlagV1 from "./AgentLifeFlagV1.js";
+
+export * as AgentLifeFlagV1 from "./AgentLifeFlagV1.js";
+
+const AgentLifeFlag: GenericFacade = {
+ name: "AgentLifeFlag",
+ versions: [AgentLifeFlagV1],
+};
+
+export default AgentLifeFlag;
diff --git a/api/facades/agent-tools/AgentToolsV1.ts b/api/facades/agent-tools/AgentToolsV1.ts
index 27221aeef..55cd0f62c 100644
--- a/api/facades/agent-tools/AgentToolsV1.ts
+++ b/api/facades/agent-tools/AgentToolsV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/agent/AgentV3.ts b/api/facades/agent/AgentV3.ts
index 0045909c1..364d9996e 100644
--- a/api/facades/agent/AgentV3.ts
+++ b/api/facades/agent/AgentV3.ts
@@ -6,7 +6,7 @@
Unit-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -27,7 +27,7 @@ export interface AgentGetEntitiesResults {
}
export interface CloudCredential {
- attrs?: AdditionalProperties;
+ attrs?: Record;
"auth-type": string;
redacted?: string[];
}
diff --git a/api/facades/all-model-watcher/AllModelWatcherV4.ts b/api/facades/all-model-watcher/AllModelWatcherV4.ts
index 2a4b74eac..a42dcbc8c 100644
--- a/api/facades/all-model-watcher/AllModelWatcherV4.ts
+++ b/api/facades/all-model-watcher/AllModelWatcherV4.ts
@@ -4,7 +4,7 @@
Controllers
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -14,7 +14,7 @@ import { Facade } from "../../types.js";
import { autoBind } from "../../utils.js";
export interface AllWatcherNextResults {
- deltas: Delta[];
+ deltas: [string, string, unknown][];
}
export interface Delta {
@@ -53,13 +53,13 @@ class AllModelWatcherV4 implements Facade {
Next will return the current state of everything on the first call
and subsequent calls will
*/
- next(params: any): Promise {
+ next(params: { id: string }): Promise {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
type: "AllModelWatcher",
request: "Next",
version: 4,
- params: params,
+ id: params.id,
};
this._transport.write(req, resolve, reject);
@@ -69,13 +69,13 @@ class AllModelWatcherV4 implements Facade {
/**
Stop stops the watcher.
*/
- stop(params: any): Promise {
+ stop(params: { id: string }): Promise {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
type: "AllModelWatcher",
request: "Stop",
version: 4,
- params: params,
+ id: params.id,
};
this._transport.write(req, resolve, reject);
diff --git a/api/facades/all-watcher/AllWatcherV3.ts b/api/facades/all-watcher/AllWatcherV3.ts
index 64bed9e1f..3ef8fb2c8 100644
--- a/api/facades/all-watcher/AllWatcherV3.ts
+++ b/api/facades/all-watcher/AllWatcherV3.ts
@@ -4,7 +4,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -14,7 +14,7 @@ import { Facade } from "../../types.js";
import { autoBind } from "../../utils.js";
export interface AllWatcherNextResults {
- deltas: Delta[];
+ deltas: [string, string, unknown][];
}
export interface Delta {
@@ -53,13 +53,13 @@ class AllWatcherV3 implements Facade {
Next will return the current state of everything on the first call
and subsequent calls will
*/
- next(id: number): Promise {
+ next(params: { id: string }): Promise {
return new Promise((resolve, reject) => {
- const req: JujuRequest & { id: number } = {
+ const req: JujuRequest = {
type: "AllWatcher",
request: "Next",
version: 3,
- id,
+ id: params.id,
};
this._transport.write(req, resolve, reject);
@@ -69,13 +69,13 @@ class AllWatcherV3 implements Facade {
/**
Stop stops the watcher.
*/
- stop(id: number): Promise {
+ stop(params: { id: string }): Promise {
return new Promise((resolve, reject) => {
- const req: JujuRequest & { id: number } = {
+ const req: JujuRequest = {
type: "AllWatcher",
request: "Stop",
version: 3,
- id,
+ id: params.id,
};
this._transport.write(req, resolve, reject);
diff --git a/api/facades/annotations/AnnotationsV2.ts b/api/facades/annotations/AnnotationsV2.ts
index 932e6868d..e18238104 100644
--- a/api/facades/annotations/AnnotationsV2.ts
+++ b/api/facades/annotations/AnnotationsV2.ts
@@ -4,7 +4,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -14,7 +14,7 @@ import { Facade } from "../../types.js";
import { autoBind } from "../../utils.js";
export interface AnnotationsGetResult {
- annotations: AdditionalProperties;
+ annotations: Record;
entity: string;
error?: ErrorResult;
}
@@ -36,7 +36,7 @@ export interface Entity {
}
export interface EntityAnnotations {
- annotations: AdditionalProperties;
+ annotations: Record;
entity: string;
}
diff --git a/api/facades/application-offers/ApplicationOffersV4.ts b/api/facades/application-offers/ApplicationOffersV4.ts
index 5bb6d88ad..1cc9a9a2b 100644
--- a/api/facades/application-offers/ApplicationOffersV4.ts
+++ b/api/facades/application-offers/ApplicationOffersV4.ts
@@ -7,7 +7,7 @@
Controllers
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -19,7 +19,7 @@ import { autoBind } from "../../utils.js";
export interface AddApplicationOffer {
"application-description": string;
"application-name": string;
- endpoints: AdditionalProperties;
+ endpoints: Record;
"model-tag": string;
"offer-name": string;
"owner-tag"?: string;
@@ -33,7 +33,7 @@ export interface ApplicationOfferAdminDetails {
ApplicationOfferDetails: ApplicationOfferDetails;
"application-description": string;
"application-name": string;
- bindings?: AdditionalProperties;
+ bindings?: Record;
"charm-url": string;
connections?: OfferConnection[];
endpoints?: RemoteEndpoint[];
@@ -47,7 +47,7 @@ export interface ApplicationOfferAdminDetails {
export interface ApplicationOfferDetails {
"application-description": string;
- bindings?: AdditionalProperties;
+ bindings?: Record;
endpoints?: RemoteEndpoint[];
"offer-name": string;
"offer-url": string;
@@ -67,6 +67,7 @@ export interface ApplicationOffersResults {
}
export interface ConsumeOfferDetails {
+ "auth-token": string;
"external-controller": ExternalControllerInfo;
macaroon: Macaroon;
offer: ApplicationOfferDetails;
@@ -79,6 +80,7 @@ export interface ConsumeOfferDetailsArg {
export interface ConsumeOfferDetailsResult {
ConsumeOfferDetails: ConsumeOfferDetails;
+ "auth-token"?: string;
error?: Error;
"external-controller"?: ExternalControllerInfo;
macaroon?: Macaroon;
diff --git a/api/facades/application-scaler/ApplicationScalerV1.ts b/api/facades/application-scaler/ApplicationScalerV1.ts
index 97515363f..bc595e9d2 100644
--- a/api/facades/application-scaler/ApplicationScalerV1.ts
+++ b/api/facades/application-scaler/ApplicationScalerV1.ts
@@ -4,7 +4,7 @@
Controller-machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/application/ApplicationV18.ts b/api/facades/application/ApplicationV18.ts
index 572f045b9..f20b743c2 100644
--- a/api/facades/application/ApplicationV18.ts
+++ b/api/facades/application/ApplicationV18.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.2-rc1 at the git SHA 3a098707a1.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -34,7 +34,7 @@ export interface AddRelation {
}
export interface AddRelationResults {
- endpoints: AdditionalProperties;
+ endpoints: Record;
}
export interface ApplicationCharmRelations {
@@ -61,21 +61,21 @@ export interface ApplicationDeploy {
channel: string;
"charm-origin"?: CharmOrigin;
"charm-url": string;
- config?: AdditionalProperties;
+ config?: Record;
"config-yaml": string;
constraints: Value;
- devices?: AdditionalProperties;
- "endpoint-bindings"?: AdditionalProperties;
+ devices?: Record;
+ "endpoint-bindings"?: Record;
"num-units": number;
placement?: Placement[];
policy?: string;
- resources?: AdditionalProperties;
- storage?: AdditionalProperties;
+ resources?: Record;
+ storage?: Record;
}
export interface ApplicationExpose {
application: string;
- "exposed-endpoints"?: AdditionalProperties;
+ "exposed-endpoints"?: Record;
}
export interface ApplicationGet {
@@ -103,7 +103,7 @@ export interface ApplicationGetResults {
charm: string;
config: AdditionalProperties;
constraints: Value;
- "endpoint-bindings"?: AdditionalProperties;
+ "endpoint-bindings"?: Record;
}
export interface ApplicationInfoResult {
@@ -117,7 +117,7 @@ export interface ApplicationInfoResults {
export interface ApplicationMergeBindings {
"application-tag": string;
- bindings: AdditionalProperties;
+ bindings: Record;
force: boolean;
}
@@ -136,7 +136,7 @@ export interface ApplicationMetricCredentials {
export interface ApplicationOfferDetails {
"application-description": string;
- bindings?: AdditionalProperties;
+ bindings?: Record;
endpoints?: RemoteEndpoint[];
"offer-name": string;
"offer-url": string;
@@ -151,9 +151,9 @@ export interface ApplicationResult {
channel?: string;
charm?: string;
constraints?: Value;
- "endpoint-bindings"?: AdditionalProperties;
+ "endpoint-bindings"?: Record;
exposed: boolean;
- "exposed-endpoints"?: AdditionalProperties;
+ "exposed-endpoints"?: Record;
life: string;
principal: boolean;
remote: boolean;
@@ -165,15 +165,15 @@ export interface ApplicationSetCharm {
channel: string;
"charm-origin"?: CharmOrigin;
"charm-url": string;
- "config-settings"?: AdditionalProperties;
+ "config-settings"?: Record;
"config-settings-yaml"?: string;
- "endpoint-bindings"?: AdditionalProperties;
+ "endpoint-bindings"?: Record;
force: boolean;
"force-base": boolean;
"force-units": boolean;
generation: string;
- "resource-ids"?: AdditionalProperties;
- "storage-constraints"?: AdditionalProperties;
+ "resource-ids"?: Record;
+ "storage-constraints"?: Record;
}
export interface ApplicationUnexpose {
@@ -232,7 +232,7 @@ export interface ConfigResult {
export interface ConfigSet {
application: string;
- config: AdditionalProperties;
+ config: Record;
"config-yaml": string;
generation: string;
}
@@ -252,7 +252,7 @@ export interface ConsumeApplicationArg {
"application-alias"?: string;
"application-description": string;
"auth-token"?: string;
- bindings?: AdditionalProperties;
+ bindings?: Record;
endpoints?: RemoteEndpoint[];
"external-controller"?: ExternalControllerInfo;
macaroon?: Macaroon;
@@ -274,17 +274,17 @@ export interface DeployFromRepositoryArg {
CharmName: string;
ConfigYAML: string;
Cons: Value;
- Devices: AdditionalProperties;
+ Devices: Record;
DryRun: boolean;
Placement: Placement[];
- Storage: AdditionalProperties;
+ Storage: Record;
Trust: boolean;
base?: Base;
channel?: string;
- "endpoint-bindings"?: AdditionalProperties;
+ "endpoint-bindings"?: Record;
force?: boolean;
"num-units"?: number;
- resources?: AdditionalProperties;
+ resources?: Record;
revision?: number;
}
@@ -387,7 +387,7 @@ export interface EndpointRelationData {
endpoint: string;
"related-endpoint": string;
"relation-id": number;
- "unit-relation-data": AdditionalProperties;
+ "unit-relation-data": Record;
}
export interface Entities {
diff --git a/api/facades/backups/BackupsV3.ts b/api/facades/backups/BackupsV3.ts
index 92dd5c57d..4f9cb6f79 100644
--- a/api/facades/backups/BackupsV3.ts
+++ b/api/facades/backups/BackupsV3.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/block/BlockV2.ts b/api/facades/block/BlockV2.ts
index b376e7829..4c4ceda61 100644
--- a/api/facades/block/BlockV2.ts
+++ b/api/facades/block/BlockV2.ts
@@ -4,7 +4,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/bundle/BundleV6.ts b/api/facades/bundle/BundleV6.ts
index a432e28a3..1e993b0ce 100644
--- a/api/facades/bundle/BundleV6.ts
+++ b/api/facades/bundle/BundleV6.ts
@@ -5,7 +5,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/caasadmission/CAASAdmissionV1.ts b/api/facades/caasadmission/CAASAdmissionV1.ts
index 6e84c9dc3..98c93ac0f 100644
--- a/api/facades/caasadmission/CAASAdmissionV1.ts
+++ b/api/facades/caasadmission/CAASAdmissionV1.ts
@@ -5,7 +5,7 @@
Machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/caasagent/CAASAgentV2.ts b/api/facades/caasagent/CAASAgentV2.ts
index 333d552bd..b9b4ee516 100644
--- a/api/facades/caasagent/CAASAgentV2.ts
+++ b/api/facades/caasagent/CAASAgentV2.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -17,7 +17,7 @@ import { Facade } from "../../types.js";
import { autoBind } from "../../utils.js";
export interface CloudCredential {
- attrs?: AdditionalProperties;
+ attrs?: Record;
"auth-type": string;
redacted?: string[];
}
diff --git a/api/facades/caasapplication-provisioner/CAASApplicationProvisionerV1.ts b/api/facades/caasapplication-provisioner/CAASApplicationProvisionerV1.ts
index ee9da7967..368924621 100644
--- a/api/facades/caasapplication-provisioner/CAASApplicationProvisionerV1.ts
+++ b/api/facades/caasapplication-provisioner/CAASApplicationProvisionerV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -38,18 +38,6 @@ export interface Base {
name: string;
}
-export interface CAASApplicationGarbageCollectArg {
- "active-pod-names": string[];
- application: Entity;
- "desired-replicas": number;
- force: boolean;
- "observed-units": Entities;
-}
-
-export interface CAASApplicationGarbageCollectArgs {
- args: CAASApplicationGarbageCollectArg[];
-}
-
export interface CAASApplicationOCIResourceResult {
error: Error;
result: CAASApplicationOCIResources;
@@ -60,7 +48,16 @@ export interface CAASApplicationOCIResourceResults {
}
export interface CAASApplicationOCIResources {
- images: AdditionalProperties;
+ images: Record;
+}
+
+export interface CAASApplicationProvisionerConfig {
+ "unmanaged-applications": Entities;
+}
+
+export interface CAASApplicationProvisionerConfigResult {
+ error: Error;
+ "provisioner-config": CAASApplicationProvisionerConfig;
}
export interface CAASApplicationProvisioningInfo {
@@ -75,7 +72,7 @@ export interface CAASApplicationProvisioningInfo {
filesystems?: KubernetesFilesystemParams[];
"image-repo"?: DockerImageInfo;
scale?: number;
- tags?: AdditionalProperties;
+ tags?: Record;
trust?: boolean;
version: Number;
volumes?: KubernetesVolumeParams[];
@@ -85,6 +82,21 @@ export interface CAASApplicationProvisioningInfoResults {
results: CAASApplicationProvisioningInfo[];
}
+export interface CAASApplicationProvisioningState {
+ "scale-target": number;
+ scaling: boolean;
+}
+
+export interface CAASApplicationProvisioningStateArg {
+ application: Entity;
+ "provisioning-state": CAASApplicationProvisioningState;
+}
+
+export interface CAASApplicationProvisioningStateResult {
+ error: Error;
+ "provisioning-state": CAASApplicationProvisioningState;
+}
+
export interface CAASUnitInfo {
tag: string;
"unit-status"?: UnitStatus;
@@ -101,7 +113,7 @@ export interface CAASUnitsResults {
export interface Charm {
actions?: CharmActions;
- config: AdditionalProperties;
+ config: Record;
"lxd-profile"?: CharmLXDProfile;
manifest?: CharmManifest;
meta?: CharmMeta;
@@ -116,7 +128,7 @@ export interface CharmActionSpec {
}
export interface CharmActions {
- specs: AdditionalProperties;
+ specs: Record;
}
export interface CharmBase {
@@ -146,9 +158,9 @@ export interface CharmDevice {
}
export interface CharmLXDProfile {
- config: AdditionalProperties;
+ config: Record;
description: string;
- devices: AdditionalProperties;
+ devices: Record>;
}
export interface CharmManifest {
@@ -158,20 +170,20 @@ export interface CharmManifest {
export interface CharmMeta {
"assumes-expr"?: ExpressionTree;
categories?: string[];
- containers?: AdditionalProperties;
+ containers?: Record;
deployment?: CharmDeployment;
description: string;
- devices?: AdditionalProperties;
- "extra-bindings"?: AdditionalProperties;
+ devices?: Record;
+ "extra-bindings"?: Record;
"min-juju-version"?: string;
name: string;
- "payload-classes"?: AdditionalProperties;
- peers?: AdditionalProperties;
- provides?: AdditionalProperties;
- requires?: AdditionalProperties;
- resources?: AdditionalProperties;
+ "payload-classes"?: Record;
+ peers?: Record;
+ provides?: Record;
+ requires?: Record;
+ resources?: Record;
series?: string[];
- storage?: AdditionalProperties;
+ storage?: Record;
subordinate: boolean;
summary: string;
tags?: string[];
@@ -184,7 +196,7 @@ export interface CharmMetric {
}
export interface CharmMetrics {
- metrics: AdditionalProperties;
+ metrics: Record;
plan: CharmPlan;
}
@@ -241,6 +253,32 @@ export interface CharmURL {
url: string;
}
+export interface DestroyUnitInfo {
+ "destroyed-storage": Entity[];
+ "detached-storage": Entity[];
+}
+
+export interface DestroyUnitParams {
+ "destroy-storage"?: boolean;
+ "dry-run"?: boolean;
+ force?: boolean;
+ "max-wait"?: number;
+ "unit-tag": string;
+}
+
+export interface DestroyUnitResult {
+ error: Error;
+ info: DestroyUnitInfo;
+}
+
+export interface DestroyUnitResults {
+ results: DestroyUnitResult[];
+}
+
+export interface DestroyUnitsParams {
+ units: DestroyUnitParams[];
+}
+
export interface DetailedStatus {
data: AdditionalProperties;
err?: Error;
@@ -314,7 +352,7 @@ export interface ExpressionTree {
}
export interface KubernetesDeviceParams {
- Attributes: AdditionalProperties;
+ Attributes: Record;
Count: number;
Type: string;
}
@@ -344,7 +382,7 @@ export interface KubernetesFilesystemParams {
provider: string;
size: number;
storagename: string;
- tags?: AdditionalProperties;
+ tags?: Record;
}
export interface KubernetesVolumeAttachmentParams {
@@ -368,7 +406,7 @@ export interface KubernetesVolumeParams {
provider: string;
size: number;
storagename: string;
- tags?: AdditionalProperties;
+ tags?: Record;
}
export interface LifeResult {
@@ -420,7 +458,7 @@ export interface UnitStatus {
"opened-ports": string[];
"provider-id"?: string;
"public-address": string;
- subordinates: AdditionalProperties;
+ subordinates: Record;
"workload-status": DetailedStatus;
"workload-version": string;
}
@@ -456,6 +494,7 @@ export interface Value {
container: string;
cores: number;
"cpu-power": number;
+ "image-id": string;
"instance-role": string;
"instance-type": string;
mem: number;
@@ -526,17 +565,13 @@ class CAASApplicationProvisionerV1 implements Facade {
}
/**
- CAASApplicationGarbageCollect cleans up units that have gone away permanently.
- Only observed units will be deleted as new units could have surfaced between
- the capturing of kuberentes pod state/application state and this call.
+ CharmInfo returns information about the requested charm.
*/
- cAASApplicationGarbageCollect(
- params: CAASApplicationGarbageCollectArgs
- ): Promise {
+ charmInfo(params: CharmURL): Promise {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
type: "CAASApplicationProvisioner",
- request: "CAASApplicationGarbageCollect",
+ request: "CharmInfo",
version: 1,
params: params,
};
@@ -546,13 +581,14 @@ class CAASApplicationProvisionerV1 implements Facade {
}
/**
- CharmInfo returns information about the requested charm.
+ ClearApplicationsResources clears the flags which indicate
+ applications still have resources in the cluster.
*/
- charmInfo(params: CharmURL): Promise {
+ clearApplicationsResources(params: Entities): Promise {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
type: "CAASApplicationProvisioner",
- request: "CharmInfo",
+ request: "ClearApplicationsResources",
version: 1,
params: params,
};
@@ -562,14 +598,14 @@ class CAASApplicationProvisionerV1 implements Facade {
}
/**
- ClearApplicationsResources clears the flags which indicate
- applications still have resources in the cluster.
+ DestroyUnits is responsible for scaling down a set of units on the this
+ Application.
*/
- clearApplicationsResources(params: Entities): Promise {
+ destroyUnits(params: DestroyUnitsParams): Promise {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
type: "CAASApplicationProvisioner",
- request: "ClearApplicationsResources",
+ request: "DestroyUnits",
version: 1,
params: params,
};
@@ -594,6 +630,24 @@ class CAASApplicationProvisionerV1 implements Facade {
});
}
+ /**
+ ProvisionerConfig returns the provisioner's configuration.
+ */
+ provisionerConfig(
+ params: any
+ ): Promise {
+ return new Promise((resolve, reject) => {
+ const req: JujuRequest = {
+ type: "CAASApplicationProvisioner",
+ request: "ProvisionerConfig",
+ version: 1,
+ params: params,
+ };
+
+ this._transport.write(req, resolve, reject);
+ });
+ }
+
/**
ProvisioningInfo returns the info needed to provision a caas application.
*/
@@ -612,6 +666,24 @@ class CAASApplicationProvisionerV1 implements Facade {
});
}
+ /**
+ ProvisioningState returns the provisioning state for the application.
+ */
+ provisioningState(
+ params: Entity
+ ): Promise {
+ return new Promise((resolve, reject) => {
+ const req: JujuRequest = {
+ type: "CAASApplicationProvisioner",
+ request: "ProvisioningState",
+ version: 1,
+ params: params,
+ };
+
+ this._transport.write(req, resolve, reject);
+ });
+ }
+
/**
Remove removes every given entity from state, calling EnsureDead
first, then Remove. It will fail if the entity is not present.
@@ -661,6 +733,24 @@ class CAASApplicationProvisionerV1 implements Facade {
});
}
+ /**
+ SetProvisioningState sets the provisioning state for the application.
+ */
+ setProvisioningState(
+ params: CAASApplicationProvisioningStateArg
+ ): Promise {
+ return new Promise((resolve, reject) => {
+ const req: JujuRequest = {
+ type: "CAASApplicationProvisioner",
+ request: "SetProvisioningState",
+ version: 1,
+ params: params,
+ };
+
+ this._transport.write(req, resolve, reject);
+ });
+ }
+
/**
Units returns all the units for each application specified.
*/
@@ -729,6 +819,24 @@ class CAASApplicationProvisionerV1 implements Facade {
});
}
+ /**
+ WatchProvisioningInfo provides a watcher for changes that affect the
+ information returned by ProvisioningInfo. This is useful for ensuring the
+ latest application stated is ensured.
+ */
+ watchProvisioningInfo(params: Entities): Promise {
+ return new Promise((resolve, reject) => {
+ const req: JujuRequest = {
+ type: "CAASApplicationProvisioner",
+ request: "WatchProvisioningInfo",
+ version: 1,
+ params: params,
+ };
+
+ this._transport.write(req, resolve, reject);
+ });
+ }
+
/**
WatchUnits starts a StringsWatcher to watch changes to the
lifecycle states of units for the specified applications in
diff --git a/api/facades/caasapplication/CAASApplicationV1.ts b/api/facades/caasapplication/CAASApplicationV1.ts
index 0d2a7b1ee..e87a4b4f4 100644
--- a/api/facades/caasapplication/CAASApplicationV1.ts
+++ b/api/facades/caasapplication/CAASApplicationV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/caasfirewaller-sidecar/CAASFirewallerSidecarV1.ts b/api/facades/caasfirewaller-sidecar/CAASFirewallerSidecarV1.ts
index 9c212d3a7..442e8d76b 100644
--- a/api/facades/caasfirewaller-sidecar/CAASFirewallerSidecarV1.ts
+++ b/api/facades/caasfirewaller-sidecar/CAASFirewallerSidecarV1.ts
@@ -4,7 +4,7 @@
Controller-machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -17,6 +17,20 @@ export interface ApplicationGetConfigResults {
Results: ConfigResult[];
}
+export interface ApplicationOpenedPorts {
+ endpoint: string;
+ "port-ranges": PortRange[];
+}
+
+export interface ApplicationOpenedPortsResult {
+ "application-port-ranges": ApplicationOpenedPorts[];
+ error?: Error;
+}
+
+export interface ApplicationOpenedPortsResults {
+ results: ApplicationOpenedPortsResult[];
+}
+
export interface BoolResult {
error?: Error;
result: boolean;
@@ -28,7 +42,7 @@ export interface BoolResults {
export interface Charm {
actions?: CharmActions;
- config: AdditionalProperties;
+ config: Record;
"lxd-profile"?: CharmLXDProfile;
manifest?: CharmManifest;
meta?: CharmMeta;
@@ -43,7 +57,7 @@ export interface CharmActionSpec {
}
export interface CharmActions {
- specs: AdditionalProperties;
+ specs: Record;
}
export interface CharmBase {
@@ -73,9 +87,9 @@ export interface CharmDevice {
}
export interface CharmLXDProfile {
- config: AdditionalProperties;
+ config: Record;
description: string;
- devices: AdditionalProperties;
+ devices: Record>;
}
export interface CharmManifest {
@@ -85,20 +99,20 @@ export interface CharmManifest {
export interface CharmMeta {
"assumes-expr"?: ExpressionTree;
categories?: string[];
- containers?: AdditionalProperties;
+ containers?: Record;
deployment?: CharmDeployment;
description: string;
- devices?: AdditionalProperties;
- "extra-bindings"?: AdditionalProperties;
+ devices?: Record;
+ "extra-bindings"?: Record;
"min-juju-version"?: string;
name: string;
- "payload-classes"?: AdditionalProperties;
- peers?: AdditionalProperties;
- provides?: AdditionalProperties;
- requires?: AdditionalProperties;
- resources?: AdditionalProperties;
+ "payload-classes"?: Record;
+ peers?: Record;
+ provides?: Record;
+ requires?: Record;
+ resources?: Record;
series?: string[];
- storage?: AdditionalProperties;
+ storage?: Record;
subordinate: boolean;
summary: string;
tags?: string[];
@@ -111,7 +125,7 @@ export interface CharmMetric {
}
export interface CharmMetrics {
- metrics: AdditionalProperties;
+ metrics: Record;
plan: CharmPlan;
}
@@ -209,6 +223,12 @@ export interface NotifyWatchResults {
results: NotifyWatchResult[];
}
+export interface PortRange {
+ "from-port": number;
+ protocol: string;
+ "to-port": number;
+}
+
export interface StringsWatchResult {
changes?: string[];
error?: Error;
@@ -291,6 +311,22 @@ class CAASFirewallerSidecarV1 implements Facade {
});
}
+ /**
+ GetOpenedPorts returns all the opened ports for each given application tag.
+ */
+ getOpenedPorts(params: Entity): Promise {
+ return new Promise((resolve, reject) => {
+ const req: JujuRequest = {
+ type: "CAASFirewallerSidecar",
+ request: "GetOpenedPorts",
+ version: 1,
+ params: params,
+ };
+
+ this._transport.write(req, resolve, reject);
+ });
+ }
+
/**
IsExposed returns whether the specified applications are exposed.
*/
diff --git a/api/facades/caasfirewaller/CAASFirewallerV1.ts b/api/facades/caasfirewaller/CAASFirewallerV1.ts
index c20c7d72a..ea6a44b90 100644
--- a/api/facades/caasfirewaller/CAASFirewallerV1.ts
+++ b/api/facades/caasfirewaller/CAASFirewallerV1.ts
@@ -4,7 +4,7 @@
Controller-machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -28,7 +28,7 @@ export interface BoolResults {
export interface Charm {
actions?: CharmActions;
- config: AdditionalProperties;
+ config: Record;
"lxd-profile"?: CharmLXDProfile;
manifest?: CharmManifest;
meta?: CharmMeta;
@@ -43,7 +43,7 @@ export interface CharmActionSpec {
}
export interface CharmActions {
- specs: AdditionalProperties;
+ specs: Record;
}
export interface CharmBase {
@@ -73,9 +73,9 @@ export interface CharmDevice {
}
export interface CharmLXDProfile {
- config: AdditionalProperties;
+ config: Record;
description: string;
- devices: AdditionalProperties;
+ devices: Record>;
}
export interface CharmManifest {
@@ -85,20 +85,20 @@ export interface CharmManifest {
export interface CharmMeta {
"assumes-expr"?: ExpressionTree;
categories?: string[];
- containers?: AdditionalProperties;
+ containers?: Record;
deployment?: CharmDeployment;
description: string;
- devices?: AdditionalProperties;
- "extra-bindings"?: AdditionalProperties;
+ devices?: Record;
+ "extra-bindings"?: Record;
"min-juju-version"?: string;
name: string;
- "payload-classes"?: AdditionalProperties;
- peers?: AdditionalProperties;
- provides?: AdditionalProperties;
- requires?: AdditionalProperties;
- resources?: AdditionalProperties;
+ "payload-classes"?: Record;
+ peers?: Record;
+ provides?: Record;
+ requires?: Record;
+ resources?: Record;
series?: string[];
- storage?: AdditionalProperties;
+ storage?: Record;
subordinate: boolean;
summary: string;
tags?: string[];
@@ -111,7 +111,7 @@ export interface CharmMetric {
}
export interface CharmMetrics {
- metrics: AdditionalProperties;
+ metrics: Record;
plan: CharmPlan;
}
diff --git a/api/facades/caasmodel-config-manager/CAASModelConfigManagerV1.ts b/api/facades/caasmodel-config-manager/CAASModelConfigManagerV1.ts
index 9f6aa07f0..e63d01bec 100644
--- a/api/facades/caasmodel-config-manager/CAASModelConfigManagerV1.ts
+++ b/api/facades/caasmodel-config-manager/CAASModelConfigManagerV1.ts
@@ -4,7 +4,7 @@
Controller-machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/caasmodel-operator/CAASModelOperatorV1.ts b/api/facades/caasmodel-operator/CAASModelOperatorV1.ts
index 629256cc8..cc08ae4e9 100644
--- a/api/facades/caasmodel-operator/CAASModelOperatorV1.ts
+++ b/api/facades/caasmodel-operator/CAASModelOperatorV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/caasoperator-provisioner/CAASOperatorProvisionerV1.ts b/api/facades/caasoperator-provisioner/CAASOperatorProvisionerV1.ts
index 37207858e..a7e6f62c2 100644
--- a/api/facades/caasoperator-provisioner/CAASOperatorProvisionerV1.ts
+++ b/api/facades/caasoperator-provisioner/CAASOperatorProvisionerV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -33,7 +33,7 @@ export interface Address {
export interface Charm {
actions?: CharmActions;
- config: AdditionalProperties;
+ config: Record;
"lxd-profile"?: CharmLXDProfile;
manifest?: CharmManifest;
meta?: CharmMeta;
@@ -48,7 +48,7 @@ export interface CharmActionSpec {
}
export interface CharmActions {
- specs: AdditionalProperties;
+ specs: Record;
}
export interface CharmBase {
@@ -78,9 +78,9 @@ export interface CharmDevice {
}
export interface CharmLXDProfile {
- config: AdditionalProperties;
+ config: Record;
description: string;
- devices: AdditionalProperties;
+ devices: Record>;
}
export interface CharmManifest {
@@ -90,20 +90,20 @@ export interface CharmManifest {
export interface CharmMeta {
"assumes-expr"?: ExpressionTree;
categories?: string[];
- containers?: AdditionalProperties;
+ containers?: Record;
deployment?: CharmDeployment;
description: string;
- devices?: AdditionalProperties;
- "extra-bindings"?: AdditionalProperties;
+ devices?: Record;
+ "extra-bindings"?: Record;
"min-juju-version"?: string;
name: string;
- "payload-classes"?: AdditionalProperties;
- peers?: AdditionalProperties;
- provides?: AdditionalProperties;
- requires?: AdditionalProperties;
- resources?: AdditionalProperties;
+ "payload-classes"?: Record;
+ peers?: Record;
+ provides?: Record;
+ requires?: Record;
+ resources?: Record;
series?: string[];
- storage?: AdditionalProperties;
+ storage?: Record;
subordinate: boolean;
summary: string;
tags?: string[];
@@ -116,7 +116,7 @@ export interface CharmMetric {
}
export interface CharmMetrics {
- metrics: AdditionalProperties;
+ metrics: Record;
plan: CharmPlan;
}
@@ -256,7 +256,7 @@ export interface KubernetesFilesystemParams {
provider: string;
size: number;
storagename: string;
- tags?: AdditionalProperties;
+ tags?: Record;
}
export interface LifeResult {
@@ -287,7 +287,7 @@ export interface OperatorProvisioningInfo {
"charm-storage"?: KubernetesFilesystemParams;
error?: Error;
"image-details": DockerImageInfo;
- tags?: AdditionalProperties;
+ tags?: Record;
version: Number;
}
diff --git a/api/facades/caasoperator-upgrader/CAASOperatorUpgraderV1.ts b/api/facades/caasoperator-upgrader/CAASOperatorUpgraderV1.ts
index 3c98ca012..070997f93 100644
--- a/api/facades/caasoperator-upgrader/CAASOperatorUpgraderV1.ts
+++ b/api/facades/caasoperator-upgrader/CAASOperatorUpgraderV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/caasoperator/CAASOperatorV1.ts b/api/facades/caasoperator/CAASOperatorV1.ts
index e4d891676..df7865030 100644
--- a/api/facades/caasoperator/CAASOperatorV1.ts
+++ b/api/facades/caasoperator/CAASOperatorV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/caasunit-provisioner/CAASUnitProvisionerV2.ts b/api/facades/caasunit-provisioner/CAASUnitProvisionerV2.ts
index eb543abe8..934ece74e 100644
--- a/api/facades/caasunit-provisioner/CAASUnitProvisionerV2.ts
+++ b/api/facades/caasunit-provisioner/CAASUnitProvisionerV2.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -59,7 +59,7 @@ export interface BoolResults {
export interface Charm {
actions?: CharmActions;
- config: AdditionalProperties;
+ config: Record;
"lxd-profile"?: CharmLXDProfile;
manifest?: CharmManifest;
meta?: CharmMeta;
@@ -74,7 +74,7 @@ export interface CharmActionSpec {
}
export interface CharmActions {
- specs: AdditionalProperties;
+ specs: Record;
}
export interface CharmBase {
@@ -104,9 +104,9 @@ export interface CharmDevice {
}
export interface CharmLXDProfile {
- config: AdditionalProperties;
+ config: Record;
description: string;
- devices: AdditionalProperties;
+ devices: Record>;
}
export interface CharmManifest {
@@ -116,20 +116,20 @@ export interface CharmManifest {
export interface CharmMeta {
"assumes-expr"?: ExpressionTree;
categories?: string[];
- containers?: AdditionalProperties;
+ containers?: Record;
deployment?: CharmDeployment;
description: string;
- devices?: AdditionalProperties;
- "extra-bindings"?: AdditionalProperties;
+ devices?: Record;
+ "extra-bindings"?: Record;
"min-juju-version"?: string;
name: string;
- "payload-classes"?: AdditionalProperties;
- peers?: AdditionalProperties;
- provides?: AdditionalProperties;
- requires?: AdditionalProperties;
- resources?: AdditionalProperties;
+ "payload-classes"?: Record;
+ peers?: Record;
+ provides?: Record;
+ requires?: Record;
+ resources?: Record;
series?: string[];
- storage?: AdditionalProperties;
+ storage?: Record;
subordinate: boolean;
summary: string;
tags?: string[];
@@ -142,7 +142,7 @@ export interface CharmMetric {
}
export interface CharmMetrics {
- metrics: AdditionalProperties;
+ metrics: Record;
plan: CharmPlan;
}
@@ -271,7 +271,7 @@ export interface KubernetesDeploymentInfo {
}
export interface KubernetesDeviceParams {
- Attributes: AdditionalProperties;
+ Attributes: Record;
Count: number;
Type: string;
}
@@ -301,7 +301,7 @@ export interface KubernetesFilesystemParams {
provider: string;
size: number;
storagename: string;
- tags?: AdditionalProperties;
+ tags?: Record;
}
export interface KubernetesProvisioningInfo {
@@ -313,7 +313,7 @@ export interface KubernetesProvisioningInfo {
"image-repo"?: DockerImageInfo;
"pod-spec": string;
"raw-k8s-spec"?: string;
- tags?: AdditionalProperties;
+ tags?: Record;
volumes?: KubernetesVolumeParams[];
}
@@ -347,7 +347,7 @@ export interface KubernetesVolumeParams {
provider: string;
size: number;
storagename: string;
- tags?: AdditionalProperties;
+ tags?: Record;
}
export interface LifeResult {
@@ -434,6 +434,7 @@ export interface Value {
container: string;
cores: number;
"cpu-power": number;
+ "image-id": string;
"instance-role": string;
"instance-type": string;
mem: number;
diff --git a/api/facades/charm-downloader/CharmDownloaderV1.ts b/api/facades/charm-downloader/CharmDownloaderV1.ts
index f66181a6e..8c40a12c6 100644
--- a/api/facades/charm-downloader/CharmDownloaderV1.ts
+++ b/api/facades/charm-downloader/CharmDownloaderV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/charm-revision-updater/CharmRevisionUpdaterV2.ts b/api/facades/charm-revision-updater/CharmRevisionUpdaterV2.ts
index 52b231dee..e06cdde09 100644
--- a/api/facades/charm-revision-updater/CharmRevisionUpdaterV2.ts
+++ b/api/facades/charm-revision-updater/CharmRevisionUpdaterV2.ts
@@ -4,7 +4,7 @@
Controller-machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/charms/CharmsV6.ts b/api/facades/charms/CharmsV6.ts
index 2431359e4..e52682919 100644
--- a/api/facades/charms/CharmsV6.ts
+++ b/api/facades/charms/CharmsV6.ts
@@ -4,7 +4,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.2-rc1 at the git SHA 3a098707a1.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -35,7 +35,7 @@ export interface Base {
export interface Charm {
actions?: CharmActions;
- config: AdditionalProperties;
+ config: Record;
"lxd-profile"?: CharmLXDProfile;
manifest?: CharmManifest;
meta?: CharmMeta;
@@ -50,7 +50,7 @@ export interface CharmActionSpec {
}
export interface CharmActions {
- specs: AdditionalProperties;
+ specs: Record;
}
export interface CharmBase {
@@ -80,9 +80,9 @@ export interface CharmDevice {
}
export interface CharmLXDProfile {
- config: AdditionalProperties;
+ config: Record;
description: string;
- devices: AdditionalProperties;
+ devices: Record>;
}
export interface CharmManifest {
@@ -92,20 +92,20 @@ export interface CharmManifest {
export interface CharmMeta {
"assumes-expr"?: ExpressionTree;
categories?: string[];
- containers?: AdditionalProperties;
+ containers?: Record;
deployment?: CharmDeployment;
description: string;
- devices?: AdditionalProperties;
- "extra-bindings"?: AdditionalProperties;
+ devices?: Record;
+ "extra-bindings"?: Record;
"min-juju-version"?: string;
name: string;
- "payload-classes"?: AdditionalProperties;
- peers?: AdditionalProperties;
- provides?: AdditionalProperties;
- requires?: AdditionalProperties;
- resources?: AdditionalProperties;
+ "payload-classes"?: Record;
+ peers?: Record;
+ provides?: Record;
+ requires?: Record;
+ resources?: Record;
series?: string[];
- storage?: AdditionalProperties;
+ storage?: Record;
subordinate: boolean;
summary: string;
tags?: string[];
@@ -118,7 +118,7 @@ export interface CharmMetric {
}
export interface CharmMetrics {
- metrics: AdditionalProperties;
+ metrics: Record;
plan: CharmPlan;
}
diff --git a/api/facades/cleaner/CleanerV2.ts b/api/facades/cleaner/CleanerV2.ts
index cc0f376b8..38c33641e 100644
--- a/api/facades/cleaner/CleanerV2.ts
+++ b/api/facades/cleaner/CleanerV2.ts
@@ -4,7 +4,7 @@
Controller-machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/client/ClientV6.ts b/api/facades/client/ClientV6.ts
index a5c9aaddd..0f03ffb1e 100644
--- a/api/facades/client/ClientV6.ts
+++ b/api/facades/client/ClientV6.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -24,7 +24,7 @@ export interface ApplicationOfferStatus {
"active-connected-count": number;
"application-name": string;
charm: string;
- endpoints: AdditionalProperties;
+ endpoints: Record;
err?: Error;
"offer-name": string;
"total-connected-count": number;
@@ -37,19 +37,19 @@ export interface ApplicationStatus {
"charm-channel"?: string;
"charm-profile": string;
"charm-version": string;
- "endpoint-bindings": AdditionalProperties;
+ "endpoint-bindings": Record;
err?: Error;
exposed: boolean;
- "exposed-endpoints"?: AdditionalProperties;
+ "exposed-endpoints"?: Record;
int?: number;
life: string;
- "meter-statuses": AdditionalProperties;
+ "meter-statuses": Record;
"provider-id"?: string;
"public-address": string;
- relations: AdditionalProperties;
+ relations: Record;
status: DetailedStatus;
"subordinate-to": string[];
- units: AdditionalProperties;
+ units: Record;
"workload-version": string;
}
@@ -70,7 +70,7 @@ export interface Binary {
}
export interface BranchStatus {
- "assigned-units": AdditionalProperties;
+ "assigned-units": Record;
created: number;
"created-by": string;
}
@@ -108,7 +108,6 @@ export interface FindToolsParams {
agentstream: string;
arch: string;
major: number;
- minor: number;
number: Number;
"os-type": string;
}
@@ -119,14 +118,14 @@ export interface FindToolsResult {
}
export interface FullStatus {
- applications: AdditionalProperties;
- branches: AdditionalProperties;
+ applications: Record;
+ branches: Record;
"controller-timestamp": string;
- machines: AdditionalProperties;
+ machines: Record;
model: ModelStatusInfo;
- offers: AdditionalProperties;
+ offers: Record;
relations: RelationStatus[];
- "remote-applications": AdditionalProperties;
+ "remote-applications": Record;
}
export interface History {
@@ -135,16 +134,16 @@ export interface History {
}
export interface LXDProfile {
- config: AdditionalProperties;
+ config: Record;
description: string;
- devices: AdditionalProperties;
+ devices: Record>;
}
export interface MachineStatus {
"agent-status": DetailedStatus;
base: Base;
constraints: string;
- containers: AdditionalProperties;
+ containers: Record;
"display-name": string;
"dns-name": string;
hardware: string;
@@ -155,9 +154,9 @@ export interface MachineStatus {
"instance-status": DetailedStatus;
"ip-addresses"?: string[];
jobs: string[];
- "lxd-profiles"?: AdditionalProperties;
+ "lxd-profiles"?: Record;
"modification-status": DetailedStatus;
- "network-interfaces"?: AdditionalProperties;
+ "network-interfaces"?: Record;
"primary-controller-machine"?: boolean;
"wants-vote": boolean;
}
@@ -211,7 +210,7 @@ export interface RemoteApplicationStatus {
life: string;
"offer-name": string;
"offer-url": string;
- relations: AdditionalProperties;
+ relations: Record;
status: DetailedStatus;
}
@@ -269,7 +268,7 @@ export interface UnitStatus {
"opened-ports": string[];
"provider-id"?: string;
"public-address": string;
- subordinates: AdditionalProperties;
+ subordinates: Record;
"workload-status": DetailedStatus;
"workload-version": string;
}
@@ -300,6 +299,7 @@ class ClientV6 implements Facade {
}
/**
FindTools returns a List containing all tools matching the given parameters.
+ TODO(juju 3.1) - remove, used by 2.9 client only
*/
findTools(params: FindToolsParams): Promise {
return new Promise((resolve, reject) => {
diff --git a/api/facades/cloud/CloudV7.ts b/api/facades/cloud/CloudV7.ts
index 3e6a9c425..b995158b7 100644
--- a/api/facades/cloud/CloudV7.ts
+++ b/api/facades/cloud/CloudV7.ts
@@ -7,7 +7,7 @@
Controllers
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -38,7 +38,7 @@ export interface Cloud {
}
export interface CloudCredential {
- attrs?: AdditionalProperties;
+ attrs?: Record;
"auth-type": string;
redacted?: string[];
}
@@ -118,7 +118,7 @@ export interface CloudUserInfo {
}
export interface CloudsResult {
- clouds: AdditionalProperties;
+ clouds: Record;
}
export interface ControllerCredentialInfo {
@@ -127,7 +127,7 @@ export interface ControllerCredentialInfo {
}
export interface CredentialContent {
- attrs?: AdditionalProperties;
+ attrs?: Record;
"auth-type": string;
cloud: string;
name: string;
@@ -290,6 +290,7 @@ export interface Value {
container: string;
cores: number;
"cpu-power": number;
+ "image-id": string;
"instance-role": string;
"instance-type": string;
mem: number;
diff --git a/api/facades/controller/ControllerV11.ts b/api/facades/controller/ControllerV11.ts
index 50d124206..43900c95f 100644
--- a/api/facades/controller/ControllerV11.ts
+++ b/api/facades/controller/ControllerV11.ts
@@ -7,7 +7,7 @@
Controllers
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -21,7 +21,7 @@ export interface AllWatcherId {
}
export interface CloudCredential {
- attrs?: AdditionalProperties;
+ attrs?: Record;
"auth-type": string;
redacted?: string[];
}
@@ -78,17 +78,14 @@ export interface ControllerVersionResults {
export interface DashboardConnectionInfo {
error?: Error;
- "proxy-connection": DashboardConnectionProxy;
+ "proxy-connection": Proxy;
"ssh-connection": DashboardConnectionSSHTunnel;
}
-export interface DashboardConnectionProxy {
- config: AdditionalProperties;
- type: string;
-}
-
export interface DashboardConnectionSSHTunnel {
+ entity?: string;
host: string;
+ model?: string;
port: string;
}
@@ -156,6 +153,7 @@ export interface MachineHardware {
mem: number;
"root-disk": number;
tags: string[];
+ "virt-type": string;
}
export interface MigrationSpec {
@@ -180,6 +178,10 @@ export interface Model {
uuid: string;
}
+export interface ModelApplicationInfo {
+ name: string;
+}
+
export interface ModelBlockInfo {
blocks: string[];
"model-uuid": string;
@@ -192,7 +194,7 @@ export interface ModelBlockInfoList {
}
export interface ModelConfigResults {
- config: AdditionalProperties;
+ config: Record;
}
export interface ModelFilesystemInfo {
@@ -217,6 +219,7 @@ export interface ModelMachineInfo {
export interface ModelStatus {
"application-count": number;
+ applications?: ModelApplicationInfo[];
error?: Error;
filesystems?: ModelFilesystemInfo[];
"hosted-machine-count": number;
@@ -264,6 +267,11 @@ export interface NotifyWatchResults {
results: NotifyWatchResult[];
}
+export interface Proxy {
+ config: AdditionalProperties;
+ type: string;
+}
+
export interface RemoveBlocksArgs {
all: boolean;
}
diff --git a/api/facades/credential-manager/CredentialManagerV1.ts b/api/facades/credential-manager/CredentialManagerV1.ts
index 11a069388..1b318e9e6 100644
--- a/api/facades/credential-manager/CredentialManagerV1.ts
+++ b/api/facades/credential-manager/CredentialManagerV1.ts
@@ -4,7 +4,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/credential-validator/CredentialValidatorV2.ts b/api/facades/credential-validator/CredentialValidatorV2.ts
index e7fd3a841..885aba8c6 100644
--- a/api/facades/credential-validator/CredentialValidatorV2.ts
+++ b/api/facades/credential-validator/CredentialValidatorV2.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/cross-controller/CrossControllerV1.ts b/api/facades/cross-controller/CrossControllerV1.ts
index 95f45f40c..43b283c2b 100644
--- a/api/facades/cross-controller/CrossControllerV1.ts
+++ b/api/facades/cross-controller/CrossControllerV1.ts
@@ -7,7 +7,7 @@
Controllers
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/cross-model-relations/CrossModelRelationsV2.ts b/api/facades/cross-model-relations/CrossModelRelationsV2.ts
index 17295ce89..582058a93 100644
--- a/api/facades/cross-model-relations/CrossModelRelationsV2.ts
+++ b/api/facades/cross-model-relations/CrossModelRelationsV2.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -38,7 +38,6 @@ export interface ErrorResults {
}
export interface IngressNetworksChangeEvent {
- "application-token": string;
"bakery-version"?: number;
"ingress-required": boolean;
macaroons?: Macaroon[];
@@ -81,6 +80,7 @@ export interface OfferStatusWatchResults {
export interface RegisterRemoteRelationArg {
"application-token": string;
+ "auth-token"?: string;
"bakery-version"?: number;
"consume-version"?: number;
"local-endpoint-name": string;
@@ -187,6 +187,21 @@ export interface RemoteSpace {
subnets: Subnet[];
}
+export interface SecretRevisionChange {
+ revision: number;
+ uri: string;
+}
+
+export interface SecretRevisionWatchResult {
+ changes: SecretRevisionChange[];
+ error?: Error;
+ "watcher-id": string;
+}
+
+export interface SecretRevisionWatchResults {
+ results: SecretRevisionWatchResult[];
+}
+
export interface StringsWatchResult {
changes?: string[];
error?: Error;
@@ -209,6 +224,17 @@ export interface Subnet {
zones: string[];
}
+export interface WatchRemoteSecretChangesArg {
+ "application-token": string;
+ "bakery-version"?: number;
+ macaroons?: Macaroon[];
+ "relation-token": string;
+}
+
+export interface WatchRemoteSecretChangesArgs {
+ relations: WatchRemoteSecretChangesArg[];
+}
+
export interface AdditionalProperties {
[key: string]: any;
}
@@ -290,6 +316,25 @@ class CrossModelRelationsV2 implements Facade {
});
}
+ /**
+ WatchConsumedSecretsChanges returns a watcher which notifies of changes to any secrets
+ for the specified remote consumers.
+ */
+ watchConsumedSecretsChanges(
+ params: WatchRemoteSecretChangesArgs
+ ): Promise {
+ return new Promise((resolve, reject) => {
+ const req: JujuRequest = {
+ type: "CrossModelRelations",
+ request: "WatchConsumedSecretsChanges",
+ version: 2,
+ params: params,
+ };
+
+ this._transport.write(req, resolve, reject);
+ });
+ }
+
/**
WatchEgressAddressesForRelations creates a watcher that notifies when addresses, from which
connections will originate for the relation, change.
diff --git a/api/facades/cross-model-secrets/CrossModelSecretsV1.ts b/api/facades/cross-model-secrets/CrossModelSecretsV1.ts
index 496bf78e4..b65e7085a 100644
--- a/api/facades/cross-model-secrets/CrossModelSecretsV1.ts
+++ b/api/facades/cross-model-secrets/CrossModelSecretsV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.2-rc1 at the git SHA 3a098707a1.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -65,7 +65,7 @@ export interface SecretBackendConfigResult {
}
export interface SecretContentParams {
- data: AdditionalProperties;
+ data: Record;
"value-ref": SecretValueRef;
}
diff --git a/api/facades/deployer/DeployerV1.ts b/api/facades/deployer/DeployerV1.ts
index 42a29148f..b2687d618 100644
--- a/api/facades/deployer/DeployerV1.ts
+++ b/api/facades/deployer/DeployerV1.ts
@@ -5,7 +5,7 @@
Machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/disk-manager/DiskManagerV2.ts b/api/facades/disk-manager/DiskManagerV2.ts
index 6053af375..f82cd10d9 100644
--- a/api/facades/disk-manager/DiskManagerV2.ts
+++ b/api/facades/disk-manager/DiskManagerV2.ts
@@ -5,7 +5,7 @@
Machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/entity-watcher/EntityWatcherV2.ts b/api/facades/entity-watcher/EntityWatcherV2.ts
index 722ffa821..e59fe19c5 100644
--- a/api/facades/entity-watcher/EntityWatcherV2.ts
+++ b/api/facades/entity-watcher/EntityWatcherV2.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/environ-upgrader/EnvironUpgraderV1.ts b/api/facades/environ-upgrader/EnvironUpgraderV1.ts
index 92f3cfd18..8fe3a1800 100644
--- a/api/facades/environ-upgrader/EnvironUpgraderV1.ts
+++ b/api/facades/environ-upgrader/EnvironUpgraderV1.ts
@@ -4,7 +4,7 @@
Controller-machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/external-controller-updater/ExternalControllerUpdaterV1.ts b/api/facades/external-controller-updater/ExternalControllerUpdaterV1.ts
index 50c3863fb..6d445e844 100644
--- a/api/facades/external-controller-updater/ExternalControllerUpdaterV1.ts
+++ b/api/facades/external-controller-updater/ExternalControllerUpdaterV1.ts
@@ -4,7 +4,7 @@
Controller-machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/fan-configurer/FanConfigurerV1.ts b/api/facades/fan-configurer/FanConfigurerV1.ts
index f7b0bfe4f..3d1e63fdd 100644
--- a/api/facades/fan-configurer/FanConfigurerV1.ts
+++ b/api/facades/fan-configurer/FanConfigurerV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/filesystem-attachments-watcher/FilesystemAttachmentsWatcherV2.ts b/api/facades/filesystem-attachments-watcher/FilesystemAttachmentsWatcherV2.ts
index df7c48879..26bb715ec 100644
--- a/api/facades/filesystem-attachments-watcher/FilesystemAttachmentsWatcherV2.ts
+++ b/api/facades/filesystem-attachments-watcher/FilesystemAttachmentsWatcherV2.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/firewaller/FirewallerV7.ts b/api/facades/firewaller/FirewallerV7.ts
index 25f35156d..8625435e9 100644
--- a/api/facades/firewaller/FirewallerV7.ts
+++ b/api/facades/firewaller/FirewallerV7.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -26,7 +26,7 @@ export interface BoolResults {
}
export interface CloudCredential {
- attrs?: AdditionalProperties;
+ attrs?: Record;
"auth-type": string;
redacted?: string[];
}
@@ -99,7 +99,7 @@ export interface ErrorResults {
export interface ExposeInfoResult {
error: Error;
exposed: boolean;
- "exposed-endpoints": AdditionalProperties;
+ "exposed-endpoints": Record;
}
export interface ExposeInfoResults {
@@ -116,13 +116,14 @@ export interface FanConfigEntry {
underlay: string;
}
-export interface FirewallRule {
- "known-service": string;
- "whitelist-cidrs"?: string[];
+export interface IngressRule {
+ "port-range": PortRange;
+ "source-cidrs": string[];
}
-export interface KnownServiceArgs {
- "known-services": string[];
+export interface IngressRulesResult {
+ error?: Error;
+ rules: IngressRule[];
}
export interface LifeResult {
@@ -134,10 +135,6 @@ export interface LifeResults {
results: LifeResult[];
}
-export interface ListFirewallRulesResults {
- Rules: FirewallRule[];
-}
-
export interface Macaroon {
[key: string]: AdditionalProperties;
}
@@ -170,7 +167,7 @@ export interface NotifyWatchResults {
export interface OpenMachinePortRangesResult {
error?: Error;
- "unit-port-ranges": AdditionalProperties;
+ "unit-port-ranges": Record;
}
export interface OpenMachinePortRangesResults {
@@ -362,22 +359,6 @@ class FirewallerV7 implements Facade {
});
}
- /**
- FirewallRules returns the firewall rules for the specified well known service types.
- */
- firewallRules(params: KnownServiceArgs): Promise {
- return new Promise((resolve, reject) => {
- const req: JujuRequest = {
- type: "Firewaller",
- request: "FirewallRules",
- version: 7,
- params: params,
- };
-
- this._transport.write(req, resolve, reject);
- });
- }
-
/**
GetAssignedMachine returns the assigned machine tag (if any) for
each given unit.
@@ -493,6 +474,23 @@ class FirewallerV7 implements Facade {
});
}
+ /**
+ ModelFirewallRules returns the firewall rules that this model is
+ configured to open
+ */
+ modelFirewallRules(params: any): Promise {
+ return new Promise((resolve, reject) => {
+ const req: JujuRequest = {
+ type: "Firewaller",
+ request: "ModelFirewallRules",
+ version: 7,
+ params: params,
+ };
+
+ this._transport.write(req, resolve, reject);
+ });
+ }
+
/**
OpenedMachinePortRanges returns a list of the opened port ranges for the
specified machines where each result is broken down by unit. The list of
@@ -638,6 +636,23 @@ class FirewallerV7 implements Facade {
});
}
+ /**
+ WatchModelFirewallRules returns a NotifyWatcher that notifies of
+ potential changes to a model's configured firewall rules
+ */
+ watchModelFirewallRules(params: any): Promise {
+ return new Promise((resolve, reject) => {
+ const req: JujuRequest = {
+ type: "Firewaller",
+ request: "WatchModelFirewallRules",
+ version: 7,
+ params: params,
+ };
+
+ this._transport.write(req, resolve, reject);
+ });
+ }
+
/**
WatchModelMachineStartTimes watches the non-container machines in the model
for changes to the Life or AgentStartTime fields and reports them as a batch.
diff --git a/api/facades/high-availability/HighAvailabilityV2.ts b/api/facades/high-availability/HighAvailabilityV2.ts
index 99eb95ca0..c5aa24ed5 100644
--- a/api/facades/high-availability/HighAvailabilityV2.ts
+++ b/api/facades/high-availability/HighAvailabilityV2.ts
@@ -5,7 +5,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -52,6 +52,7 @@ export interface Value {
container: string;
cores: number;
"cpu-power": number;
+ "image-id": string;
"instance-role": string;
"instance-type": string;
mem: number;
diff --git a/api/facades/host-key-reporter/HostKeyReporterV1.ts b/api/facades/host-key-reporter/HostKeyReporterV1.ts
index 1b848ccdd..3fe0651d1 100644
--- a/api/facades/host-key-reporter/HostKeyReporterV1.ts
+++ b/api/facades/host-key-reporter/HostKeyReporterV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/image-metadata-manager/ImageMetadataManagerV1.ts b/api/facades/image-metadata-manager/ImageMetadataManagerV1.ts
index a1c5a7245..1f3ef1077 100644
--- a/api/facades/image-metadata-manager/ImageMetadataManagerV1.ts
+++ b/api/facades/image-metadata-manager/ImageMetadataManagerV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/image-metadata/ImageMetadataV3.ts b/api/facades/image-metadata/ImageMetadataV3.ts
index 6e632912d..7486322cd 100644
--- a/api/facades/image-metadata/ImageMetadataV3.ts
+++ b/api/facades/image-metadata/ImageMetadataV3.ts
@@ -4,7 +4,7 @@
Controller-machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/instance-mutater/InstanceMutaterV3.ts b/api/facades/instance-mutater/InstanceMutaterV3.ts
index ba45989f6..5aeaaa366 100644
--- a/api/facades/instance-mutater/InstanceMutaterV3.ts
+++ b/api/facades/instance-mutater/InstanceMutaterV3.ts
@@ -5,7 +5,7 @@
Machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -15,9 +15,9 @@ import { Facade } from "../../types.js";
import { autoBind } from "../../utils.js";
export interface CharmLXDProfile {
- config: AdditionalProperties;
+ config: Record;
description: string;
- devices: AdditionalProperties;
+ devices: Record>;
}
export interface CharmProfilingInfoResult {
diff --git a/api/facades/instance-poller/InstancePollerV4.ts b/api/facades/instance-poller/InstancePollerV4.ts
index b34025e17..8c09c98c8 100644
--- a/api/facades/instance-poller/InstancePollerV4.ts
+++ b/api/facades/instance-poller/InstancePollerV4.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/key-manager/KeyManagerV1.ts b/api/facades/key-manager/KeyManagerV1.ts
index 6c60f1242..aed3fcd62 100644
--- a/api/facades/key-manager/KeyManagerV1.ts
+++ b/api/facades/key-manager/KeyManagerV1.ts
@@ -4,7 +4,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -59,8 +59,7 @@ export interface AdditionalProperties {
}
/**
- KeyManagerAPI implements the KeyUpdater interface and is the concrete
- implementation of the api end point.
+ KeyManagerAPI provides api endpoints for manipulating ssh keys
*/
class KeyManagerV1 implements Facade {
static NAME = "KeyManager";
diff --git a/api/facades/key-updater/KeyUpdaterV1.ts b/api/facades/key-updater/KeyUpdaterV1.ts
index c8b91918f..c7578b229 100644
--- a/api/facades/key-updater/KeyUpdaterV1.ts
+++ b/api/facades/key-updater/KeyUpdaterV1.ts
@@ -5,7 +5,7 @@
Machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/leadership-service/LeadershipServiceV2.ts b/api/facades/leadership-service/LeadershipServiceV2.ts
index 5e9b4831d..7046ac0e6 100644
--- a/api/facades/leadership-service/LeadershipServiceV2.ts
+++ b/api/facades/leadership-service/LeadershipServiceV2.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/life-flag/LifeFlagV1.ts b/api/facades/life-flag/LifeFlagV1.ts
index d613cd796..de2138acc 100644
--- a/api/facades/life-flag/LifeFlagV1.ts
+++ b/api/facades/life-flag/LifeFlagV1.ts
@@ -4,7 +4,7 @@
Controller-machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/log-forwarding/LogForwardingV1.ts b/api/facades/log-forwarding/LogForwardingV1.ts
index a55a7056c..8dff917b7 100644
--- a/api/facades/log-forwarding/LogForwardingV1.ts
+++ b/api/facades/log-forwarding/LogForwardingV1.ts
@@ -4,7 +4,7 @@
Controller-machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/logger/LoggerV1.ts b/api/facades/logger/LoggerV1.ts
index 61881fc8e..597ac0e40 100644
--- a/api/facades/logger/LoggerV1.ts
+++ b/api/facades/logger/LoggerV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/machine-actions/MachineActionsV1.ts b/api/facades/machine-actions/MachineActionsV1.ts
index 2b35fcef3..465c4d4cd 100644
--- a/api/facades/machine-actions/MachineActionsV1.ts
+++ b/api/facades/machine-actions/MachineActionsV1.ts
@@ -5,7 +5,7 @@
Machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/machine-manager/MachineManagerV10.ts b/api/facades/machine-manager/MachineManagerV10.ts
index d8969c95e..4acf1a51a 100644
--- a/api/facades/machine-manager/MachineManagerV10.ts
+++ b/api/facades/machine-manager/MachineManagerV10.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.2-rc1 at the git SHA 3a098707a1.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/machine-undertaker/MachineUndertakerV1.ts b/api/facades/machine-undertaker/MachineUndertakerV1.ts
index 59284c3fd..6fc8b9be1 100644
--- a/api/facades/machine-undertaker/MachineUndertakerV1.ts
+++ b/api/facades/machine-undertaker/MachineUndertakerV1.ts
@@ -4,7 +4,7 @@
Controller-machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/machiner/MachinerV5.ts b/api/facades/machiner/MachinerV5.ts
index 66a794fc8..04114d3ca 100644
--- a/api/facades/machiner/MachinerV5.ts
+++ b/api/facades/machiner/MachinerV5.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/meter-status/MeterStatusV2.ts b/api/facades/meter-status/MeterStatusV2.ts
index 9816d2650..3648f52e8 100644
--- a/api/facades/meter-status/MeterStatusV2.ts
+++ b/api/facades/meter-status/MeterStatusV2.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -58,9 +58,9 @@ export interface NotifyWatchResults {
}
export interface SetUnitStateArg {
- "charm-state"?: AdditionalProperties;
+ "charm-state"?: Record;
"meter-status-state"?: string;
- "relation-state"?: AdditionalProperties;
+ "relation-state"?: Record;
"secret-state"?: string;
"storage-state"?: string;
tag: string;
@@ -72,10 +72,10 @@ export interface SetUnitStateArgs {
}
export interface UnitStateResult {
- "charm-state": AdditionalProperties;
+ "charm-state": Record;
error: Error;
"meter-status-state": string;
- "relation-state": AdditionalProperties;
+ "relation-state": Record;
"secret-state": string;
"storage-state": string;
"uniter-state": string;
diff --git a/api/facades/metrics-adder/MetricsAdderV2.ts b/api/facades/metrics-adder/MetricsAdderV2.ts
index 55ae7fdc8..de4ac5ebd 100644
--- a/api/facades/metrics-adder/MetricsAdderV2.ts
+++ b/api/facades/metrics-adder/MetricsAdderV2.ts
@@ -6,7 +6,7 @@
Unit-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -31,7 +31,7 @@ export interface ErrorResults {
export interface Metric {
key: string;
- labels?: AdditionalProperties;
+ labels?: Record;
time: string;
value: string;
}
diff --git a/api/facades/metrics-debug/MetricsDebugV2.ts b/api/facades/metrics-debug/MetricsDebugV2.ts
index 22a884a96..e77d17afb 100644
--- a/api/facades/metrics-debug/MetricsDebugV2.ts
+++ b/api/facades/metrics-debug/MetricsDebugV2.ts
@@ -4,7 +4,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -52,7 +52,7 @@ export interface MeterStatusParams {
export interface MetricResult {
key: string;
- labels: AdditionalProperties;
+ labels: Record;
time: string;
unit: string;
value: string;
diff --git a/api/facades/metrics-manager/MetricsManagerV1.ts b/api/facades/metrics-manager/MetricsManagerV1.ts
index 57d5d31ac..a7c92324f 100644
--- a/api/facades/metrics-manager/MetricsManagerV1.ts
+++ b/api/facades/metrics-manager/MetricsManagerV1.ts
@@ -4,7 +4,7 @@
Controller-machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/migration-flag/MigrationFlagV1.ts b/api/facades/migration-flag/MigrationFlagV1.ts
index ecd435eec..f89aadccb 100644
--- a/api/facades/migration-flag/MigrationFlagV1.ts
+++ b/api/facades/migration-flag/MigrationFlagV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/migration-master/MigrationMasterV3.ts b/api/facades/migration-master/MigrationMasterV3.ts
index a8ad3af00..f06051ebf 100644
--- a/api/facades/migration-master/MigrationMasterV3.ts
+++ b/api/facades/migration-master/MigrationMasterV3.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -30,13 +30,21 @@ export interface MasterMigrationStatus {
}
export interface MigrationModelInfo {
- "agent-version": Number;
+ "agent-version": string;
"controller-agent-version": Number;
name: string;
"owner-tag": string;
uuid: string;
}
+export interface MigrationSourceInfo {
+ addrs: string[];
+ "ca-cert": string;
+ "controller-alias"?: string;
+ "controller-tag": string;
+ "local-related-models": string[];
+}
+
export interface MigrationSpec {
"model-tag": string;
"target-info": MigrationTargetInfo;
@@ -94,7 +102,7 @@ export interface SerializedModelResource {
"application-revision": SerializedModelResourceRevision;
"charmstore-revision": SerializedModelResourceRevision;
name: string;
- "unit-revisions": AdditionalProperties;
+ "unit-revisions": Record;
}
export interface SerializedModelResourceRevision {
@@ -324,6 +332,23 @@ class MigrationMasterV3 implements Facade {
});
}
+ /**
+ SourceControllerInfo returns the details required to connect to
+ the source controller for model migration.
+ */
+ sourceControllerInfo(params: any): Promise {
+ return new Promise((resolve, reject) => {
+ const req: JujuRequest = {
+ type: "MigrationMaster",
+ request: "SourceControllerInfo",
+ version: 3,
+ params: params,
+ };
+
+ this._transport.write(req, resolve, reject);
+ });
+ }
+
/**
Watch starts watching for an active migration for the model
associated with the API connection. The returned id should be used
diff --git a/api/facades/migration-minion/MigrationMinionV1.ts b/api/facades/migration-minion/MigrationMinionV1.ts
index 8f4387072..642cf816f 100644
--- a/api/facades/migration-minion/MigrationMinionV1.ts
+++ b/api/facades/migration-minion/MigrationMinionV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/migration-status-watcher/MigrationStatusWatcherV1.ts b/api/facades/migration-status-watcher/MigrationStatusWatcherV1.ts
index 965de3cc4..59c9d3744 100644
--- a/api/facades/migration-status-watcher/MigrationStatusWatcherV1.ts
+++ b/api/facades/migration-status-watcher/MigrationStatusWatcherV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/migration-target/MigrationTargetV2.ts b/api/facades/migration-target/MigrationTargetV2.ts
index 379c2b1e1..587178834 100644
--- a/api/facades/migration-target/MigrationTargetV2.ts
+++ b/api/facades/migration-target/MigrationTargetV2.ts
@@ -4,7 +4,7 @@
Controllers
NOTE: This file was generated using the Juju schema
- from Juju 3.2-rc1 at the git SHA 3a098707a1.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -46,7 +46,7 @@ export interface ErrorResults {
}
export interface MigrationModelInfo {
- "agent-version": Number;
+ "agent-version": string;
"controller-agent-version": Number;
name: string;
"owner-tag": string;
@@ -77,7 +77,7 @@ export interface SerializedModelResource {
"application-revision": SerializedModelResourceRevision;
"charmstore-revision": SerializedModelResourceRevision;
name: string;
- "unit-revisions": AdditionalProperties;
+ "unit-revisions": Record;
}
export interface SerializedModelResourceRevision {
diff --git a/api/facades/model-config/ModelConfigV3.ts b/api/facades/model-config/ModelConfigV3.ts
index ad4abcc06..5bbfc7705 100644
--- a/api/facades/model-config/ModelConfigV3.ts
+++ b/api/facades/model-config/ModelConfigV3.ts
@@ -8,7 +8,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -33,7 +33,7 @@ export interface GetConstraintsResults {
}
export interface ModelConfigResults {
- config: AdditionalProperties;
+ config: Record;
}
export interface ModelSLA {
@@ -49,7 +49,7 @@ export interface ModelSLAInfo {
}
export interface ModelSequencesResult {
- sequences: AdditionalProperties;
+ sequences: Record;
}
export interface ModelSet {
@@ -76,6 +76,7 @@ export interface Value {
container: string;
cores: number;
"cpu-power": number;
+ "image-id": string;
"instance-role": string;
"instance-type": string;
mem: number;
diff --git a/api/facades/model-generation/ModelGenerationV4.ts b/api/facades/model-generation/ModelGenerationV4.ts
index 3750664a6..c6e633a2c 100644
--- a/api/facades/model-generation/ModelGenerationV4.ts
+++ b/api/facades/model-generation/ModelGenerationV4.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/model-manager/ModelManagerV9.ts b/api/facades/model-manager/ModelManagerV9.ts
index 7cab2e411..0ce18a7ec 100644
--- a/api/facades/model-manager/ModelManagerV9.ts
+++ b/api/facades/model-manager/ModelManagerV9.ts
@@ -7,7 +7,7 @@
Controllers
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -79,6 +79,7 @@ export interface MachineHardware {
mem: number;
"root-disk": number;
tags: string[];
+ "virt-type": string;
}
export interface MapResult {
@@ -97,6 +98,10 @@ export interface Model {
uuid: string;
}
+export interface ModelApplicationInfo {
+ name: string;
+}
+
export interface ModelCreateArgs {
"cloud-tag"?: string;
config?: AdditionalProperties;
@@ -119,7 +124,7 @@ export interface ModelDefaults {
}
export interface ModelDefaultsResult {
- config: AdditionalProperties;
+ config: Record;
error?: Error;
}
@@ -141,12 +146,13 @@ export interface ModelFilesystemInfo {
}
export interface ModelInfo {
- "agent-version": Number;
+ "agent-version": string;
"cloud-credential-tag"?: string;
"cloud-credential-validity"?: boolean;
"cloud-region"?: string;
"cloud-tag": string;
"controller-uuid": string;
+ "default-base"?: string;
"default-series"?: string;
"is-controller": boolean;
life: string;
@@ -155,6 +161,7 @@ export interface ModelInfo {
name: string;
"owner-tag": string;
"provider-type"?: string;
+ "secret-backends": SecretBackendResult[];
sla: ModelSLAInfo;
status?: EntityStatus;
"supported-features"?: SupportedFeature[];
@@ -197,6 +204,7 @@ export interface ModelSLAInfo {
export interface ModelStatus {
"application-count": number;
+ applications?: ModelApplicationInfo[];
error?: Error;
filesystems?: ModelFilesystemInfo[];
"hosted-machine-count": number;
@@ -219,7 +227,7 @@ export interface ModelSummariesRequest {
}
export interface ModelSummary {
- "agent-version": Number;
+ "agent-version": string;
"cloud-credential-tag"?: string;
"cloud-region"?: string;
"cloud-tag": string;
@@ -295,6 +303,22 @@ export interface RegionDefaults {
value: AdditionalProperties;
}
+export interface SecretBackend {
+ "backend-type": string;
+ config: AdditionalProperties;
+ name: string;
+ "token-rotate-interval"?: number;
+}
+
+export interface SecretBackendResult {
+ error?: Error;
+ id: string;
+ message?: string;
+ "num-secrets": number;
+ result: SecretBackend;
+ status: string;
+}
+
export interface SetModelDefaults {
config: ModelDefaultValues[];
}
diff --git a/api/facades/model-summary-watcher/ModelSummaryWatcherV1.ts b/api/facades/model-summary-watcher/ModelSummaryWatcherV1.ts
index 9e24a522a..6d4c49460 100644
--- a/api/facades/model-summary-watcher/ModelSummaryWatcherV1.ts
+++ b/api/facades/model-summary-watcher/ModelSummaryWatcherV1.ts
@@ -4,7 +4,7 @@
Controllers
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -15,7 +15,7 @@ import { autoBind } from "../../utils.js";
export interface ModelAbstract {
admins?: string[];
- annotations?: AdditionalProperties;
+ annotations?: Record;
cloud?: string;
controller?: string;
credential?: string;
diff --git a/api/facades/model-upgrader/ModelUpgraderV1.ts b/api/facades/model-upgrader/ModelUpgraderV1.ts
index 22c8a6e89..1e7f17480 100644
--- a/api/facades/model-upgrader/ModelUpgraderV1.ts
+++ b/api/facades/model-upgrader/ModelUpgraderV1.ts
@@ -7,7 +7,7 @@
Controllers
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/notify-watcher/NotifyWatcherV1.ts b/api/facades/notify-watcher/NotifyWatcherV1.ts
index a40f72ee1..a56840430 100644
--- a/api/facades/notify-watcher/NotifyWatcherV1.ts
+++ b/api/facades/notify-watcher/NotifyWatcherV1.ts
@@ -8,7 +8,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/offer-status-watcher/OfferStatusWatcherV1.ts b/api/facades/offer-status-watcher/OfferStatusWatcherV1.ts
index 394d6508e..1eb835967 100644
--- a/api/facades/offer-status-watcher/OfferStatusWatcherV1.ts
+++ b/api/facades/offer-status-watcher/OfferStatusWatcherV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/payloads-hook-context/PayloadsHookContextV1.ts b/api/facades/payloads-hook-context/PayloadsHookContextV1.ts
index 15ab5baab..c376c5f89 100644
--- a/api/facades/payloads-hook-context/PayloadsHookContextV1.ts
+++ b/api/facades/payloads-hook-context/PayloadsHookContextV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/payloads/PayloadsV1.ts b/api/facades/payloads/PayloadsV1.ts
index 8798cd200..2777e56bf 100644
--- a/api/facades/payloads/PayloadsV1.ts
+++ b/api/facades/payloads/PayloadsV1.ts
@@ -4,7 +4,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/pinger/PingerV1.ts b/api/facades/pinger/PingerV1.ts
index 982dcb51d..fb3afbac9 100644
--- a/api/facades/pinger/PingerV1.ts
+++ b/api/facades/pinger/PingerV1.ts
@@ -8,7 +8,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/provisioner/ProvisionerV11.ts b/api/facades/provisioner/ProvisionerV11.ts
index ffb1ec0d7..ce6ea8453 100644
--- a/api/facades/provisioner/ProvisionerV11.ts
+++ b/api/facades/provisioner/ProvisionerV11.ts
@@ -5,7 +5,7 @@
Machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -59,9 +59,9 @@ export interface BytesResult {
}
export interface CharmLXDProfile {
- config: AdditionalProperties;
+ config: Record;
description: string;
- devices: AdditionalProperties;
+ devices: Record>;
}
export interface CloudImageMetadata {
@@ -109,7 +109,7 @@ export interface ContainerLXDProfile {
}
export interface ContainerManagerConfig {
- config: AdditionalProperties;
+ config: Record;
}
export interface ContainerManagerConfigParams {
@@ -196,7 +196,6 @@ export interface FindToolsParams {
agentstream: string;
arch: string;
major: number;
- minor: number;
number: Number;
"os-type": string;
}
@@ -215,6 +214,7 @@ export interface HardwareCharacteristics {
"root-disk": number;
"root-disk-source": string;
tags: string[];
+ "virt-type": string;
}
export interface HostNetworkChange {
@@ -248,7 +248,7 @@ export interface InstanceInfo {
"network-config": NetworkConfig[];
nonce: string;
tag: string;
- "volume-attachments": AdditionalProperties;
+ "volume-attachments": Record;
volumes: Volume[];
}
@@ -353,14 +353,14 @@ export interface ProvisioningInfo {
"cloudinit-userdata"?: AdditionalProperties;
constraints: Value;
"controller-config"?: AdditionalProperties;
- "endpoint-bindings"?: AdditionalProperties;
+ "endpoint-bindings"?: Record;
"image-metadata"?: CloudImageMetadata[];
jobs: string[];
placement: string;
"root-disk"?: VolumeParams;
- "space-subnets": AdditionalProperties;
- "subnet-zones": AdditionalProperties;
- tags?: AdditionalProperties;
+ "space-subnets": Record;
+ "subnet-zones": Record;
+ tags?: Record;
"volume-attachments"?: VolumeAttachmentParams[];
volumes?: VolumeParams[];
}
@@ -375,8 +375,8 @@ export interface ProvisioningInfoResults {
}
export interface ProvisioningNetworkTopology {
- "space-subnets": AdditionalProperties;
- "subnet-zones": AdditionalProperties;
+ "space-subnets": Record;
+ "subnet-zones": Record;
}
export interface SetMachineNetworkConfig {
@@ -474,6 +474,7 @@ export interface Value {
container: string;
cores: number;
"cpu-power": number;
+ "image-id": string;
"instance-role": string;
"instance-type": string;
mem: number;
@@ -508,7 +509,7 @@ export interface VolumeAttachmentParams {
}
export interface VolumeAttachmentPlanInfo {
- "device-attributes": AdditionalProperties;
+ "device-attributes": Record;
"device-type": string;
}
@@ -526,7 +527,7 @@ export interface VolumeParams {
attributes?: AdditionalProperties;
provider: string;
size: number;
- tags?: AdditionalProperties;
+ tags?: Record;
"volume-tag": string;
}
diff --git a/api/facades/proxy-updater/ProxyUpdaterV2.ts b/api/facades/proxy-updater/ProxyUpdaterV2.ts
index e958f6ab6..d88b503dc 100644
--- a/api/facades/proxy-updater/ProxyUpdaterV2.ts
+++ b/api/facades/proxy-updater/ProxyUpdaterV2.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/reboot/RebootV2.ts b/api/facades/reboot/RebootV2.ts
index f1fe43a8d..44b9f9211 100644
--- a/api/facades/reboot/RebootV2.ts
+++ b/api/facades/reboot/RebootV2.ts
@@ -5,7 +5,7 @@
Machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/relation-status-watcher/RelationStatusWatcherV1.ts b/api/facades/relation-status-watcher/RelationStatusWatcherV1.ts
index 241ae1979..9536cacf6 100644
--- a/api/facades/relation-status-watcher/RelationStatusWatcherV1.ts
+++ b/api/facades/relation-status-watcher/RelationStatusWatcherV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/relation-units-watcher/RelationUnitsWatcherV1.ts b/api/facades/relation-units-watcher/RelationUnitsWatcherV1.ts
index 180f46bb0..49368d72a 100644
--- a/api/facades/relation-units-watcher/RelationUnitsWatcherV1.ts
+++ b/api/facades/relation-units-watcher/RelationUnitsWatcherV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -23,8 +23,8 @@ export interface Error {
}
export interface RelationUnitsChange {
- "app-changed"?: AdditionalProperties;
- changed: AdditionalProperties;
+ "app-changed"?: Record;
+ changed: Record;
departed?: string[];
}
diff --git a/api/facades/remote-relation-watcher/RemoteRelationWatcherV1.ts b/api/facades/remote-relation-watcher/RemoteRelationWatcherV1.ts
index 3c0f30c5c..aa6db6e6f 100644
--- a/api/facades/remote-relation-watcher/RemoteRelationWatcherV1.ts
+++ b/api/facades/remote-relation-watcher/RemoteRelationWatcherV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/remote-relations/RemoteRelationsV2.ts b/api/facades/remote-relations/RemoteRelationsV2.ts
index ea23822b3..4674c4b12 100644
--- a/api/facades/remote-relations/RemoteRelationsV2.ts
+++ b/api/facades/remote-relations/RemoteRelationsV2.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -83,6 +83,10 @@ export interface GetTokenArgs {
Args: GetTokenArg[];
}
+export interface LatestSecretRevisionChanges {
+ changes: SecretRevisionChange[];
+}
+
export interface Macaroon {
[key: string]: AdditionalProperties;
}
@@ -179,6 +183,11 @@ export interface RemoteRelationsChanges {
changes: RemoteRelationChangeEvent[];
}
+export interface SecretRevisionChange {
+ revision: number;
+ uri: string;
+}
+
export interface SetStatus {
entities: EntityStatusArgs[];
}
@@ -263,6 +272,25 @@ class RemoteRelationsV2 implements Facade {
});
}
+ /**
+ ConsumeRemoteSecretChanges updates the local model with secret revision changes
+ originating from the remote/offering model.
+ */
+ consumeRemoteSecretChanges(
+ params: LatestSecretRevisionChanges
+ ): Promise {
+ return new Promise((resolve, reject) => {
+ const req: JujuRequest = {
+ type: "RemoteRelations",
+ request: "ConsumeRemoteSecretChanges",
+ version: 2,
+ params: params,
+ };
+
+ this._transport.write(req, resolve, reject);
+ });
+ }
+
/**
ControllerAPIInfoForModels returns the controller api connection details for the specified models.
*/
diff --git a/api/facades/resources-hook-context/ResourcesHookContextV1.ts b/api/facades/resources-hook-context/ResourcesHookContextV1.ts
index 507a5ab74..29d63ee54 100644
--- a/api/facades/resources-hook-context/ResourcesHookContextV1.ts
+++ b/api/facades/resources-hook-context/ResourcesHookContextV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/resources/ResourcesV3.ts b/api/facades/resources/ResourcesV3.ts
index d4e0adccf..acc1b66be 100644
--- a/api/facades/resources/ResourcesV3.ts
+++ b/api/facades/resources/ResourcesV3.ts
@@ -4,7 +4,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -111,7 +111,7 @@ export interface ResourcesResults {
export interface UnitResources {
Entity: Entity;
- "download-progress": AdditionalProperties;
+ "download-progress": Record;
resources: Resource[];
tag: string;
}
@@ -143,7 +143,7 @@ class ResourcesV3 implements Facade {
/**
AddPendingResources adds the provided resources (info) to the Juju
model in a pending state, meaning they are not available until
- resolved. Handles CharmHub, CharmStore and Local charms.
+ resolved. Handles CharmHub and Local charms.
*/
addPendingResources(
params: AddPendingResourcesArgsV2
diff --git a/api/facades/retry-strategy/RetryStrategyV1.ts b/api/facades/retry-strategy/RetryStrategyV1.ts
index 6c5a32ed0..4f68ed11f 100644
--- a/api/facades/retry-strategy/RetryStrategyV1.ts
+++ b/api/facades/retry-strategy/RetryStrategyV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/secret-backends-manager/SecretBackendsManagerV1.ts b/api/facades/secret-backends-manager/SecretBackendsManagerV1.ts
index ea43a5141..b38a82a5b 100644
--- a/api/facades/secret-backends-manager/SecretBackendsManagerV1.ts
+++ b/api/facades/secret-backends-manager/SecretBackendsManagerV1.ts
@@ -4,7 +4,7 @@
Controller-machine-agent
NOTE: This file was generated using the Juju schema
- from Juju 3.2-rc1 at the git SHA 3a098707a1.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/secret-backends-rotate-watcher/SecretBackendsRotateWatcherV1.ts b/api/facades/secret-backends-rotate-watcher/SecretBackendsRotateWatcherV1.ts
index d32854bf7..50688b10d 100644
--- a/api/facades/secret-backends-rotate-watcher/SecretBackendsRotateWatcherV1.ts
+++ b/api/facades/secret-backends-rotate-watcher/SecretBackendsRotateWatcherV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.2-rc1 at the git SHA 3a098707a1.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/secret-backends/SecretBackendsV1.ts b/api/facades/secret-backends/SecretBackendsV1.ts
index 540501570..e1ba70964 100644
--- a/api/facades/secret-backends/SecretBackendsV1.ts
+++ b/api/facades/secret-backends/SecretBackendsV1.ts
@@ -4,7 +4,7 @@
Controllers
NOTE: This file was generated using the Juju schema
- from Juju 3.2-rc1 at the git SHA 3a098707a1.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/secrets-drain/SecretsDrainV1.ts b/api/facades/secrets-drain/SecretsDrainV1.ts
index cec5eacbd..450a9a475 100644
--- a/api/facades/secrets-drain/SecretsDrainV1.ts
+++ b/api/facades/secrets-drain/SecretsDrainV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.2-rc1 at the git SHA 3a098707a1.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -66,7 +66,7 @@ export interface NotifyWatchResult {
}
export interface SecretContentParams {
- data: AdditionalProperties;
+ data: Record;
"value-ref": SecretValueRef;
}
@@ -85,7 +85,7 @@ export interface SecretValueRef {
}
export interface SecretValueResult {
- data: AdditionalProperties;
+ data: Record;
error: Error;
}
diff --git a/api/facades/secrets-manager/SecretsManagerV2.ts b/api/facades/secrets-manager/SecretsManagerV2.ts
index 6898a6d90..8d6e1c0f8 100644
--- a/api/facades/secrets-manager/SecretsManagerV2.ts
+++ b/api/facades/secrets-manager/SecretsManagerV2.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.2-rc1 at the git SHA 3a098707a1.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -133,7 +133,7 @@ export interface SecretBackendConfigResult {
export interface SecretBackendConfigResults {
"active-id": string;
- results?: AdditionalProperties;
+ results?: Record;
}
export interface SecretConsumerInfoResult {
@@ -147,7 +147,7 @@ export interface SecretConsumerInfoResults {
}
export interface SecretContentParams {
- data: AdditionalProperties;
+ data: Record;
"value-ref": SecretValueRef;
}
@@ -205,7 +205,7 @@ export interface SecretValueRef {
}
export interface SecretValueResult {
- data: AdditionalProperties;
+ data: Record;
error: Error;
}
@@ -381,7 +381,6 @@ class SecretsManagerV2 implements Facade {
/**
GetSecretRevisionContentInfo returns the secret values for the specified secret revisions.
- Used when deleting a secret; only returns external revision info.
*/
getSecretRevisionContentInfo(
params: SecretRevisionArg
diff --git a/api/facades/secrets-revision-watcher/SecretsRevisionWatcherV1.ts b/api/facades/secrets-revision-watcher/SecretsRevisionWatcherV1.ts
index 5b5ffe2cb..650efa0f1 100644
--- a/api/facades/secrets-revision-watcher/SecretsRevisionWatcherV1.ts
+++ b/api/facades/secrets-revision-watcher/SecretsRevisionWatcherV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.2-rc1 at the git SHA 3a098707a1.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/secrets-trigger-watcher/SecretsTriggerWatcherV1.ts b/api/facades/secrets-trigger-watcher/SecretsTriggerWatcherV1.ts
index 067b941e9..10f61504e 100644
--- a/api/facades/secrets-trigger-watcher/SecretsTriggerWatcherV1.ts
+++ b/api/facades/secrets-trigger-watcher/SecretsTriggerWatcherV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/secrets/SecretsV1.ts b/api/facades/secrets/SecretsV1.ts
index 8d416642b..ec9e3f275 100644
--- a/api/facades/secrets/SecretsV1.ts
+++ b/api/facades/secrets/SecretsV1.ts
@@ -4,7 +4,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -45,15 +45,21 @@ export interface ListSecretsArgs {
}
export interface SecretRevision {
+ "backend-name"?: string;
"create-time"?: string;
"expire-time"?: string;
- "provider-id"?: string;
revision: number;
"update-time"?: string;
+ "value-ref"?: SecretValueRef;
+}
+
+export interface SecretValueRef {
+ "backend-id": string;
+ "revision-id": string;
}
export interface SecretValueResult {
- data: AdditionalProperties;
+ data: Record;
error: Error;
}
diff --git a/api/facades/singular/SingularV2.ts b/api/facades/singular/SingularV2.ts
index 68047899b..c946c52b4 100644
--- a/api/facades/singular/SingularV2.ts
+++ b/api/facades/singular/SingularV2.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/spaces/SpacesV6.ts b/api/facades/spaces/SpacesV6.ts
index 2d2c82d90..31e3abcc7 100644
--- a/api/facades/spaces/SpacesV6.ts
+++ b/api/facades/spaces/SpacesV6.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/sshclient/SSHClientV4.ts b/api/facades/sshclient/SSHClientV4.ts
index 94d0ee46b..8ab88cb21 100644
--- a/api/facades/sshclient/SSHClientV4.ts
+++ b/api/facades/sshclient/SSHClientV4.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -17,7 +17,7 @@ import { Facade } from "../../types.js";
import { autoBind } from "../../utils.js";
export interface CloudCredential {
- attrs?: AdditionalProperties;
+ attrs?: Record;
"auth-type": string;
redacted?: string[];
}
diff --git a/api/facades/status-history/StatusHistoryV2.ts b/api/facades/status-history/StatusHistoryV2.ts
index c14dd0dad..abc24edd0 100644
--- a/api/facades/status-history/StatusHistoryV2.ts
+++ b/api/facades/status-history/StatusHistoryV2.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/storage-provisioner/StorageProvisionerV4.ts b/api/facades/storage-provisioner/StorageProvisionerV4.ts
index c36bd7cbd..061afacf3 100644
--- a/api/facades/storage-provisioner/StorageProvisionerV4.ts
+++ b/api/facades/storage-provisioner/StorageProvisionerV4.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -130,7 +130,7 @@ export interface FilesystemParams {
"filesystem-tag": string;
provider: string;
size: number;
- tags?: AdditionalProperties;
+ tags?: Record;
"volume-tag"?: string;
}
@@ -292,7 +292,7 @@ export interface VolumeAttachmentPlan {
}
export interface VolumeAttachmentPlanInfo {
- "device-attributes": AdditionalProperties;
+ "device-attributes": Record;
"device-type": string;
}
@@ -336,7 +336,7 @@ export interface VolumeParams {
attributes?: AdditionalProperties;
provider: string;
size: number;
- tags?: AdditionalProperties;
+ tags?: Record;
"volume-tag": string;
}
diff --git a/api/facades/storage/StorageV6.ts b/api/facades/storage/StorageV6.ts
index 0937ca696..73c5e2744 100644
--- a/api/facades/storage/StorageV6.ts
+++ b/api/facades/storage/StorageV6.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -78,10 +78,10 @@ export interface FilesystemDetails {
"filesystem-tag": string;
info: FilesystemInfo;
life?: string;
- "machine-attachments"?: AdditionalProperties;
+ "machine-attachments"?: Record;
status: EntityStatus;
storage?: StorageDetails;
- "unit-attachments"?: AdditionalProperties;
+ "unit-attachments"?: Record;
"volume-tag"?: string;
}
@@ -176,7 +176,7 @@ export interface StorageDetachmentParams {
}
export interface StorageDetails {
- attachments?: AdditionalProperties;
+ attachments?: Record;
kind: number;
life?: string;
"owner-tag": string;
@@ -270,17 +270,17 @@ export interface VolumeAttachmentInfo {
}
export interface VolumeAttachmentPlanInfo {
- "device-attributes": AdditionalProperties;
+ "device-attributes": Record;
"device-type": string;
}
export interface VolumeDetails {
info: VolumeInfo;
life?: string;
- "machine-attachments"?: AdditionalProperties;
+ "machine-attachments"?: Record;
status: EntityStatus;
storage?: StorageDetails;
- "unit-attachments"?: AdditionalProperties;
+ "unit-attachments"?: Record;
"volume-tag": string;
}
diff --git a/api/facades/strings-watcher/StringsWatcherV1.ts b/api/facades/strings-watcher/StringsWatcherV1.ts
index 153e4262e..391dd22f9 100644
--- a/api/facades/strings-watcher/StringsWatcherV1.ts
+++ b/api/facades/strings-watcher/StringsWatcherV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/subnets/SubnetsV5.ts b/api/facades/subnets/SubnetsV5.ts
index bf40da9fe..0f49dfd44 100644
--- a/api/facades/subnets/SubnetsV5.ts
+++ b/api/facades/subnets/SubnetsV5.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/undertaker/UndertakerV1.ts b/api/facades/undertaker/UndertakerV1.ts
index edd026d26..560ca36fd 100644
--- a/api/facades/undertaker/UndertakerV1.ts
+++ b/api/facades/undertaker/UndertakerV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/unit-assigner/UnitAssignerV1.ts b/api/facades/unit-assigner/UnitAssignerV1.ts
index dbe580340..7fd514877 100644
--- a/api/facades/unit-assigner/UnitAssignerV1.ts
+++ b/api/facades/unit-assigner/UnitAssignerV1.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
diff --git a/api/facades/uniter/UniterV18.ts b/api/facades/uniter/UniterV18.ts
index 45092f471..f0781fdd5 100644
--- a/api/facades/uniter/UniterV18.ts
+++ b/api/facades/uniter/UniterV18.ts
@@ -7,7 +7,7 @@
Models
NOTE: This file was generated using the Juju schema
- from Juju 3.0 at the git SHA deb94d4.
+ from Juju 3.2.1 at the git SHA 06eb3f6c7c.
Do not manually edit this file.
*/
@@ -76,10 +76,24 @@ export interface Address {
value: string;
}
+export interface ApplicationOpenedPorts {
+ endpoint: string;
+ "port-ranges": PortRange[];
+}
+
+export interface ApplicationOpenedPortsResult {
+ "application-port-ranges": ApplicationOpenedPorts[];
+ error?: Error;
+}
+
+export interface ApplicationOpenedPortsResults {
+ results: ApplicationOpenedPortsResult[];
+}
+
export interface ApplicationStatusResult {
application: StatusResult;
error?: Error;
- units: AdditionalProperties;
+ units: Record;
}
export interface ApplicationStatusResults {
@@ -113,7 +127,7 @@ export interface CharmURLs {
}
export interface CloudCredential {
- attrs?: AdditionalProperties;
+ attrs?: Record;
"auth-type": string;
redacted?: string[];
}
@@ -266,7 +280,7 @@ export interface GetLeadershipSettingsBulkResults {
export interface GetLeadershipSettingsResult {
error?: Error;
- settings: AdditionalProperties;
+ settings: Record;
}
export interface GetSecretConsumerInfoArgs {
@@ -277,7 +291,7 @@ export interface GetSecretConsumerInfoArgs {
export interface GetSecretContentArg {
label?: string;
peek?: boolean;
- update?: boolean;
+ refresh?: boolean;
uri: string;
}
@@ -286,8 +300,8 @@ export interface GetSecretContentArgs {
}
export interface GoalState {
- relations: AdditionalProperties;
- units: AdditionalProperties;
+ relations: Record>;
+ units: Record;
}
export interface GoalStateResult {
@@ -378,7 +392,7 @@ export interface MergeLeadershipSettingsBulkParams {
export interface MergeLeadershipSettingsParam {
"application-tag"?: string;
- settings: AdditionalProperties;
+ settings: Record;
"unit-tag"?: string;
}
@@ -394,7 +408,7 @@ export interface MeterStatusResults {
export interface Metric {
key: string;
- labels?: AdditionalProperties;
+ labels?: Record;
time: string;
value: string;
}
@@ -446,7 +460,7 @@ export interface NetworkInfoResult {
}
export interface NetworkInfoResults {
- results: AdditionalProperties;
+ results: Record;
}
export interface NotifyWatchResult {
@@ -458,13 +472,13 @@ export interface NotifyWatchResults {
results: NotifyWatchResult[];
}
-export interface OpenMachinePortRangesByEndpointResult {
+export interface OpenPortRangesByEndpointResult {
error?: Error;
- "unit-port-ranges": AdditionalProperties;
+ "unit-port-ranges": Record;
}
-export interface OpenMachinePortRangesByEndpointResults {
- results: OpenMachinePortRangesByEndpointResult[];
+export interface OpenPortRangesByEndpointResults {
+ results: OpenPortRangesByEndpointResult[];
}
export interface OpenUnitPortRangesByEndpoint {
@@ -528,9 +542,9 @@ export interface RelationUnitPairs {
}
export interface RelationUnitSettings {
- "application-settings": AdditionalProperties;
+ "application-settings": Record;
relation: string;
- settings: AdditionalProperties;
+ settings: Record;
unit: string;
}
@@ -554,8 +568,8 @@ export interface RelationUnits {
}
export interface RelationUnitsChange {
- "app-changed"?: AdditionalProperties;
- changed: AdditionalProperties;
+ "app-changed"?: Record;
+ changed: Record;
departed?: string[];
}
@@ -578,6 +592,28 @@ export interface ResolvedModeResults {
results: ResolvedModeResult[];
}
+export interface SecretBackendArgs {
+ "backend-ids": string[];
+}
+
+export interface SecretBackendConfig {
+ params?: AdditionalProperties;
+ type: string;
+}
+
+export interface SecretBackendConfigResult {
+ config?: SecretBackendConfig;
+ draining: boolean;
+ "model-controller": string;
+ "model-name": string;
+ "model-uuid": string;
+}
+
+export interface SecretBackendConfigResults {
+ "active-id": string;
+ results?: Record;
+}
+
export interface SecretConsumerInfoResult {
error?: Error;
label: string;
@@ -589,13 +625,15 @@ export interface SecretConsumerInfoResults {
}
export interface SecretContentParams {
- data: AdditionalProperties;
- "provider-id": string;
+ data: Record;
+ "value-ref": SecretValueRef;
}
export interface SecretContentResult {
+ "backend-config"?: SecretBackendConfigResult;
content: SecretContentParams;
error?: Error;
+ "latest-revision"?: number;
}
export interface SecretContentResults {
@@ -603,11 +641,18 @@ export interface SecretContentResults {
}
export interface SecretRevision {
+ "backend-name"?: string;
"create-time"?: string;
"expire-time"?: string;
- "provider-id"?: string;
revision: number;
"update-time"?: string;
+ "value-ref"?: SecretValueRef;
+}
+
+export interface SecretRevisionArg {
+ "pending-delete": boolean;
+ revisions: number[];
+ uri: string;
}
export interface SecretRotatedArg {
@@ -620,11 +665,6 @@ export interface SecretRotatedArgs {
args: SecretRotatedArg[];
}
-export interface SecretStoreConfig {
- params?: AdditionalProperties;
- type: string;
-}
-
export interface SecretTriggerChange {
"next-trigger-time": string;
revision?: number;
@@ -637,8 +677,13 @@ export interface SecretTriggerWatchResult {
"watcher-id": string;
}
+export interface SecretValueRef {
+ "backend-id": string;
+ "revision-id": string;
+}
+
export interface SecretValueResult {
- data: AdditionalProperties;
+ data: Record;
error: Error;
}
@@ -647,9 +692,9 @@ export interface SetStatus {
}
export interface SetUnitStateArg {
- "charm-state"?: AdditionalProperties;
+ "charm-state"?: Record;
"meter-status-state"?: string;
- "relation-state"?: AdditionalProperties;
+ "relation-state"?: Record;
"secret-state"?: string;
"storage-state"?: string;
tag: string;
@@ -662,7 +707,7 @@ export interface SetUnitStateArgs {
export interface SettingsResult {
error?: Error;
- settings: AdditionalProperties;
+ settings: Record;
}
export interface SettingsResults {
@@ -781,10 +826,10 @@ export interface UnitSettings {
}
export interface UnitStateResult {
- "charm-state": AdditionalProperties;
+ "charm-state": Record;
error: Error;
"meter-status-state": string;
- "relation-state": AdditionalProperties;
+ "relation-state": Record;
"secret-state": string;
"storage-state": string;
"uniter-state": string;
@@ -1314,6 +1359,7 @@ class UniterV18 implements Facade {
/**
GetConsumerSecretsRevisionInfo returns the latest secret revisions for the specified secrets.
+ This facade method is used for remote watcher to get the latest secret revisions and labels for a secret changed hook.
*/
getConsumerSecretsRevisionInfo(
params: GetSecretConsumerInfoArgs
@@ -1395,6 +1441,24 @@ class UniterV18 implements Facade {
});
}
+ /**
+ GetSecretBackendConfigs gets the config needed to create a client to secret backends.
+ */
+ getSecretBackendConfigs(
+ params: SecretBackendArgs
+ ): Promise {
+ return new Promise((resolve, reject) => {
+ const req: JujuRequest = {
+ type: "Uniter",
+ request: "GetSecretBackendConfigs",
+ version: 18,
+ params: params,
+ };
+
+ this._transport.write(req, resolve, reject);
+ });
+ }
+
/**
GetSecretContentInfo returns the secret values for the specified secrets.
*/
@@ -1430,13 +1494,15 @@ class UniterV18 implements Facade {
}
/**
- GetSecretStoreConfig gets the config needed to create a client to the model's secret store.
+ GetSecretRevisionContentInfo returns the secret values for the specified secret revisions.
*/
- getSecretStoreConfig(params: any): Promise {
+ getSecretRevisionContentInfo(
+ params: SecretRevisionArg
+ ): Promise {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
type: "Uniter",
- request: "GetSecretStoreConfig",
+ request: "GetSecretRevisionContentInfo",
version: 18,
params: params,
};
@@ -1627,13 +1693,31 @@ class UniterV18 implements Facade {
});
}
+ /**
+ OpenedApplicationPortRangesByEndpoint returns the port ranges opened by each application.
+ */
+ openedApplicationPortRangesByEndpoint(
+ params: Entity
+ ): Promise {
+ return new Promise((resolve, reject) => {
+ const req: JujuRequest = {
+ type: "Uniter",
+ request: "OpenedApplicationPortRangesByEndpoint",
+ version: 18,
+ params: params,
+ };
+
+ this._transport.write(req, resolve, reject);
+ });
+ }
+
/**
OpenedMachinePortRangesByEndpoint returns the port ranges opened by each
unit on the provided machines grouped by application endpoint.
*/
openedMachinePortRangesByEndpoint(
params: Entities
- ): Promise