Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
258 changes: 129 additions & 129 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {
import { createAsyncHandler, toError } from "./utils.js";
import AdminV4 from "./custom-facades/AdminV4.js";

export const CLIENT_VERSION = "3.3.2";
export const CLIENT_VERSION = "4.0.10";

export interface ConnectOptions {
bakery?: Bakery | null;
Expand Down
3 changes: 0 additions & 3 deletions api/facades/action/ActionV6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,6 @@ class ActionV6 implements Facade {
});
}

/**

*/
findActionsByNames(params: FindActionsByNames): Promise<ActionsByNames> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand Down
41 changes: 2 additions & 39 deletions api/facades/action/ActionV7.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
Juju Action version 7.
This facade is available on:
Models

NOTE: This file was generated using the Juju schema
from Juju 3.3 at the git SHA 65fa4c1ee5.
from Juju 4.0.10 at the git SHA b08ad63.
Do not manually edit this file.
*/

Expand Down Expand Up @@ -116,7 +114,6 @@ export interface RunParams {
parallel?: boolean;
timeout: number;
units?: string[];
"workload-context"?: boolean;
}

export interface StringsWatchResult {
Expand All @@ -133,9 +130,6 @@ export interface AdditionalProperties {
[key: string]: any;
}

/**
APIv7 provides the Action API facade for version 7.
*/
class ActionV7 implements Facade {
static NAME = "Action";
static VERSION = 7;
Expand All @@ -153,10 +147,7 @@ class ActionV7 implements Facade {
// Automatically bind all methods to instances.
autoBind(this);
}
/**
Actions takes a list of ActionTags, and returns the full Action for
each ID.
*/

actions(params: Entities): Promise<ActionResults> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand All @@ -170,10 +161,6 @@ class ActionV7 implements Facade {
});
}

/**
ApplicationsCharmsActions returns a slice of charm Actions for a slice of
services.
*/
applicationsCharmsActions(
params: Entities
): Promise<ApplicationsCharmActionsResults> {
Expand All @@ -189,9 +176,6 @@ class ActionV7 implements Facade {
});
}

/**
Cancel attempts to cancel enqueued Actions from running.
*/
cancel(params: Entities): Promise<ActionResults> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand All @@ -205,11 +189,6 @@ class ActionV7 implements Facade {
});
}

/**
EnqueueOperation takes a list of Actions and queues them up to be executed as
an operation, each action running as a task on the designated ActionReceiver.
We return the ID of the overall operation and each individual task.
*/
enqueueOperation(params: Actions): Promise<EnqueuedActions> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand All @@ -223,9 +202,6 @@ class ActionV7 implements Facade {
});
}

/**
ListOperations fetches the called actions for specified apps/units.
*/
listOperations(params: OperationQueryArgs): Promise<OperationResults> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand All @@ -239,9 +215,6 @@ class ActionV7 implements Facade {
});
}

/**
Operations fetches the specified operation ids.
*/
operations(params: Entities): Promise<OperationResults> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand All @@ -255,10 +228,6 @@ class ActionV7 implements Facade {
});
}

/**
Run the commands specified on the machines identified through the
list of machines, units and services.
*/
run(params: RunParams): Promise<EnqueuedActions> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand All @@ -272,9 +241,6 @@ class ActionV7 implements Facade {
});
}

/**
RunOnAllMachines attempts to run the specified command on all the machines.
*/
runOnAllMachines(params: RunParams): Promise<EnqueuedActions> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand All @@ -288,9 +254,6 @@ class ActionV7 implements Facade {
});
}

/**
WatchActionsProgress creates a watcher that reports on action log messages.
*/
watchActionsProgress(params: Entities): Promise<StringsWatchResults> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand Down
22 changes: 2 additions & 20 deletions api/facades/admin/AdminV3.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
/**
Juju Admin version 3.
This facade is available on:
Controller-machine-agent
Machine-agent
Unit-agent
Controllers
Models

NOTE: This file was generated using the Juju schema
from Juju 3.3 at the git SHA 65fa4c1ee5.
from Juju 4.0.10 at the git SHA b08ad63.
Do not manually edit this file.
*/

Expand Down Expand Up @@ -93,10 +87,6 @@ export interface AdditionalProperties {
[key: string]: any;
}

/**
admin is the only object that unlogged-in clients can access. It holds any
methods that are needed to log in.
*/
class AdminV3 implements Facade {
static NAME = "Admin";
static VERSION = 3;
Expand All @@ -114,10 +104,7 @@ class AdminV3 implements Facade {
// Automatically bind all methods to instances.
autoBind(this);
}
/**
Login logs in with the provided credentials. All subsequent requests on the
connection will act as the authenticated user.
*/

login(params: LoginRequest): Promise<LoginResult> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand All @@ -131,11 +118,6 @@ class AdminV3 implements Facade {
});
}

/**
RedirectInfo returns redirected host information for the model.
In Juju it always returns an error because the Juju controller
does not multiplex controllers.
*/
redirectInfo(params: any): Promise<RedirectInfoResult> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand Down
3 changes: 0 additions & 3 deletions api/facades/agent-life-flag/AgentLifeFlagV1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ export interface AdditionalProperties {
[key: string]: any;
}

/**

*/
class AgentLifeFlagV1 implements Facade {
static NAME = "AgentLifeFlag";
static VERSION = 1;
Expand Down
9 changes: 0 additions & 9 deletions api/facades/agent/AgentV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,6 @@ class AgentV2 implements Facade {
});
}

/**

*/
getEntities(params: Entities): Promise<AgentGetEntitiesResults> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand All @@ -251,9 +248,6 @@ class AgentV2 implements Facade {
});
}

/**

*/
isMaster(params: any): Promise<IsMasterResult> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand Down Expand Up @@ -299,9 +293,6 @@ class AgentV2 implements Facade {
});
}

/**

*/
stateServingInfo(params: any): Promise<StateServingInfo> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand Down
9 changes: 0 additions & 9 deletions api/facades/agent/AgentV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,6 @@ class AgentV3 implements Facade {
});
}

/**

*/
getEntities(params: Entities): Promise<AgentGetEntitiesResults> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand All @@ -253,9 +250,6 @@ class AgentV3 implements Facade {
});
}

/**

*/
isMaster(params: any): Promise<IsMasterResult> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand Down Expand Up @@ -301,9 +295,6 @@ class AgentV3 implements Facade {
});
}

/**

*/
stateServingInfo(params: any): Promise<StateServingInfo> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand Down
16 changes: 2 additions & 14 deletions api/facades/all-model-watcher/AllModelWatcherV4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Controllers

NOTE: This file was generated using the Juju schema
from Juju 3.3 at the git SHA 65fa4c1ee5.
from Juju 3.6.14 at the git SHA b08ad63.
Do not manually edit this file.
*/

Expand All @@ -26,12 +26,6 @@ export interface AdditionalProperties {
[key: string]: any;
}

/**
SrvAllWatcher defines the API methods on a state.Multiwatcher.
which watches any changes to the state. Each client has its own
current set of watchers, stored in resources. It is used by both
the AllWatcher and AllModelWatcher facades.
*/
class AllModelWatcherV4 implements Facade {
static NAME = "AllModelWatcher";
static VERSION = 4;
Expand All @@ -49,10 +43,7 @@ class AllModelWatcherV4 implements Facade {
// Automatically bind all methods to instances.
autoBind(this);
}
/**
Next will return the current state of everything on the first call
and subsequent calls will
*/

next(params: { id: string }): Promise<AllWatcherNextResults> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand All @@ -66,9 +57,6 @@ class AllModelWatcherV4 implements Facade {
});
}

/**
Stop stops the watcher.
*/
stop(params: { id: string }): Promise<any> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand Down
16 changes: 2 additions & 14 deletions api/facades/all-watcher/AllWatcherV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Models

NOTE: This file was generated using the Juju schema
from Juju 3.3 at the git SHA 65fa4c1ee5.
from Juju 3.6.14 at the git SHA b08ad63.
Do not manually edit this file.
*/

Expand All @@ -26,12 +26,6 @@ export interface AdditionalProperties {
[key: string]: any;
}

/**
SrvAllWatcher defines the API methods on a state.Multiwatcher.
which watches any changes to the state. Each client has its own
current set of watchers, stored in resources. It is used by both
the AllWatcher and AllModelWatcher facades.
*/
class AllWatcherV3 implements Facade {
static NAME = "AllWatcher";
static VERSION = 3;
Expand All @@ -49,10 +43,7 @@ class AllWatcherV3 implements Facade {
// Automatically bind all methods to instances.
autoBind(this);
}
/**
Next will return the current state of everything on the first call
and subsequent calls will
*/

next(params: { id: string }): Promise<AllWatcherNextResults> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand All @@ -66,9 +57,6 @@ class AllWatcherV3 implements Facade {
});
}

/**
Stop stops the watcher.
*/
stop(params: { id: string }): Promise<any> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand Down
17 changes: 2 additions & 15 deletions api/facades/annotations/AnnotationsV2.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
Juju Annotations version 2.
This facade is available on:
Models

NOTE: This file was generated using the Juju schema
from Juju 3.3 at the git SHA 65fa4c1ee5.
from Juju 4.0.10 at the git SHA b08ad63.
Do not manually edit this file.
*/

Expand Down Expand Up @@ -58,10 +56,6 @@ export interface AdditionalProperties {
[key: string]: any;
}

/**
API implements the service interface and is the concrete
implementation of the api end point.
*/
class AnnotationsV2 implements Facade {
static NAME = "Annotations";
static VERSION = 2;
Expand All @@ -79,11 +73,7 @@ class AnnotationsV2 implements Facade {
// Automatically bind all methods to instances.
autoBind(this);
}
/**
Get returns annotations for given entities.
If annotations cannot be retrieved for a given entity, an error is returned.
Each entity is treated independently and, hence, will fail or succeed independently.
*/

get(params: Entities): Promise<AnnotationsGetResults> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand All @@ -97,9 +87,6 @@ class AnnotationsV2 implements Facade {
});
}

/**
Set stores annotations for given entities
*/
set(params: AnnotationsSet): Promise<ErrorResults> {
return new Promise((resolve, reject) => {
const req: JujuRequest = {
Expand Down
Loading
Loading