UNPKG

@canonical/jujulib

Version:
49 lines (47 loc) 1.24 kB
/** Juju Payloads version 1. This facade is available on: 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 Payload { class: string; id: string; labels: string[]; machine: string; status: string; type: string; unit: string; } export interface PayloadListArgs { patterns: string[]; } export interface PayloadListResults { results: Payload[]; } export interface AdditionalProperties { [key: string]: any; } /** API serves payload-specific API methods. */ declare class PayloadsV1 implements Facade { static NAME: string; static VERSION: number; NAME: string; VERSION: number; _transport: Transport; _info: ConnectionInfo; constructor(transport: Transport, info: ConnectionInfo); /** List builds the list of payloads being tracked for the given unit and IDs. If no IDs are provided then all tracked payloads for the unit are returned. */ list(params: PayloadListArgs): Promise<PayloadListResults>; } export default PayloadsV1;