UNPKG

@agility/management-sdk

Version:
25 lines (24 loc) 1.28 kB
import { Options } from "../models/options"; import { ClientInstance } from "./clientInstance"; import { Container } from "../models/container"; import { Notification } from "../models/notification"; export declare class ContainerMethods { _options: Options; _clientInstance: ClientInstance; constructor(options: Options); getContainerByID(id: number, guid: string): Promise<Container>; getContainersByModel(modelId: number, guid: string): Promise<Container[]>; /** * Retrieves a container by its reference name. * Returns the container if found, or null if the container does not exist (404 error). * @param referenceName - The reference name of the container. * @param guid - The GUID for authentication. * @returns The container or null if not found. */ getContainerByReferenceName(referenceName: string, guid: string): Promise<Container | null>; getContainerSecurity(id: number, guid: string): Promise<Container>; getContainerList(guid: string): Promise<Container[]>; getNotificationList(id: number, guid: string): Promise<Notification[]>; saveContainer(container: Container, guid: string, forceReferenceName?: boolean): Promise<Container>; deleteContainer(id: number, guid: string): Promise<string>; }