@canonical/jujulib
Version:
Juju API client
68 lines (66 loc) • 1.65 kB
TypeScript
/**
Juju Backups version 3.
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 BackupsCreateArgs {
"no-download": boolean;
notes: string;
}
export interface BackupsMetadataResult {
base: string;
checksum: string;
"checksum-format": string;
"controller-machine-id": string;
"controller-machine-inst-id": string;
"controller-uuid": string;
filename: string;
finished: string;
"format-version": number;
"ha-nodes": number;
hostname: string;
id: string;
machine: string;
model: string;
notes: string;
size: number;
started: string;
stored: string;
version: Number;
}
export interface Number {
Build: number;
Major: number;
Minor: number;
Patch: number;
Tag: string;
}
export interface AdditionalProperties {
[key: string]: any;
}
/**
API provides backup-specific API methods.
*/
declare class BackupsV3 implements Facade {
static NAME: string;
static VERSION: number;
NAME: string;
VERSION: number;
_transport: Transport;
_info: ConnectionInfo;
constructor(transport: Transport, info: ConnectionInfo);
/**
Create is the API method that requests juju to create a new backup
of its state.
*/
create(params: BackupsCreateArgs): Promise<BackupsMetadataResult>;
}
export default BackupsV3;