UNPKG

@canonical/jujulib

Version:
50 lines (47 loc) 1.31 kB
/** Juju MigrationStatusWatcher 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 MigrationStatus { attempt: number; "migration-id": string; phase: string; "source-api-addrs": string[]; "source-ca-cert": string; "target-api-addrs": string[]; "target-ca-cert": string; } export interface AdditionalProperties { [key: string]: any; } /** */ declare class MigrationStatusWatcherV1 implements Facade { static NAME: string; static VERSION: number; NAME: string; VERSION: number; _transport: Transport; _info: ConnectionInfo; constructor(transport: Transport, info: ConnectionInfo); /** Next returns when the status for a model migration for the associated model changes. The current details for the active migration are returned. */ next(params: any): Promise<MigrationStatus>; /** Stop stops the watcher. */ stop(params: any): Promise<any>; } export default MigrationStatusWatcherV1;