@canonical/jujulib
Version:
Juju API client
65 lines (62 loc) • 1.72 kB
TypeScript
/**
Juju CAASApplication 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.3 at the git SHA 65fa4c1ee5.
Do not manually edit this file.
*/
import { ConnectionInfo, Transport } from "../../client.js";
import { Facade } from "../../types.js";
export interface CAASUnitIntroduction {
"agent-conf": number[];
"unit-name": string;
}
export interface CAASUnitIntroductionArgs {
"pod-name": string;
"pod-uuid": string;
}
export interface CAASUnitIntroductionResult {
error?: Error;
result?: CAASUnitIntroduction;
}
export interface CAASUnitTerminationResult {
Error: Error;
WillRestart: boolean;
}
export interface Entity {
tag: string;
}
export interface Error {
code: string;
info?: AdditionalProperties;
message: string;
}
export interface AdditionalProperties {
[key: string]: any;
}
/**
*/
declare class CAASApplicationV1 implements Facade {
static NAME: string;
static VERSION: number;
NAME: string;
VERSION: number;
_transport: Transport;
_info: ConnectionInfo;
constructor(transport: Transport, info: ConnectionInfo);
/**
UnitIntroduction sets the status of each given entity.
*/
unitIntroduction(params: CAASUnitIntroductionArgs): Promise<CAASUnitIntroductionResult>;
/**
UnitTerminating should be called by the CAASUnitTerminationWorker when
the agent receives a signal to exit. UnitTerminating will return how
the agent should shutdown.
*/
unitTerminating(params: Entity): Promise<CAASUnitTerminationResult>;
}
export default CAASApplicationV1;