UNPKG

@canonical/jujulib

Version:

Juju API client

94 lines (92 loc) 2.38 kB
/** Juju ModelConfig version 2. 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.0-beta1 at the git SHA 61c87ab7e1. Do not manually edit this file. */ import { ConnectionInfo, Transport } from "../../client.js"; import { Facade } from "../../types.js"; export interface ConfigValue { source: string; value: AdditionalProperties; } export interface Error { code: string; info?: AdditionalProperties; message: string; } export interface ModelConfigResults { config: Record<string, ConfigValue>; } export interface ModelSLA { ModelSLAInfo: ModelSLAInfo; creds: number[]; level: string; owner: string; } export interface ModelSLAInfo { level: string; owner: string; } export interface ModelSequencesResult { sequences: Record<string, number>; } export interface ModelSet { config: AdditionalProperties; } export interface ModelUnset { keys: string[]; } export interface StringResult { error?: Error; result: string; } export interface AdditionalProperties { [key: string]: any; } /** ModelConfigAPIV2 is currently the latest. */ declare class ModelConfigV2 implements Facade { static NAME: string; static VERSION: number; NAME: string; VERSION: number; _transport: Transport; _info: ConnectionInfo; constructor(transport: Transport, info: ConnectionInfo); /** ModelGet implements the server-side part of the model-config CLI command. */ modelGet(params: any): Promise<ModelConfigResults>; /** ModelSet implements the server-side part of the set-model-config CLI command. */ modelSet(params: ModelSet): Promise<any>; /** ModelUnset implements the server-side part of the set-model-config CLI command. */ modelUnset(params: ModelUnset): Promise<any>; /** SLALevel returns the current sla level for the model. */ sLALevel(params: any): Promise<StringResult>; /** Sequences returns the model's sequence names and next values. */ sequences(params: any): Promise<ModelSequencesResult>; /** SetSLALevel sets the sla level on the model. */ setSLALevel(params: ModelSLA): Promise<any>; } export default ModelConfigV2;