/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Vellum from "../../../index"; export declare namespace ContainerImages { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; apiKey: core.Supplier; /** Override the X-API-Version header */ apiVersion?: core.Supplier; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the X-API-Version header */ apiVersion?: Vellum.ApiVersionEnum | undefined; /** Additional headers to include in the request. */ headers?: Record; } } export declare class ContainerImages { protected readonly _options: ContainerImages.Options; constructor(_options: ContainerImages.Options); /** * Retrieve a list of container images for the organization. * * @param {Vellum.ContainerImagesListRequest} request * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.containerImages.list() */ list(request?: Vellum.ContainerImagesListRequest, requestOptions?: ContainerImages.RequestOptions): core.HttpResponsePromise; private __list; /** * Create a new Container Image. * * @param {Vellum.CreateContainerImageRequest} request * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.containerImages.createContainerImage({ * name: "x", * packages: [{ * version: "x", * name: "x" * }, { * version: "x", * name: "x" * }], * tag: "x" * }) */ createContainerImage(request: Vellum.CreateContainerImageRequest, requestOptions?: ContainerImages.RequestOptions): core.HttpResponsePromise; private __createContainerImage; /** * Retrieve a Container Image by its ID or name. * * @param {string} id - Either the Container Image's ID or its unique name * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.containerImages.retrieve("id") */ retrieve(id: string, requestOptions?: ContainerImages.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Update an existing Container Image. * * @param {string} id - A UUID string identifying this container image. * @param {Vellum.UpdateContainerImageRequest} request * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.containerImages.updateContainerImage("id", { * packages: [{ * version: "x", * name: "x" * }, { * version: "x", * name: "x" * }], * tag: "x" * }) */ updateContainerImage(id: string, request: Vellum.UpdateContainerImageRequest, requestOptions?: ContainerImages.RequestOptions): core.HttpResponsePromise; private __updateContainerImage; /** * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.containerImages.dockerServiceToken() */ dockerServiceToken(requestOptions?: ContainerImages.RequestOptions): core.HttpResponsePromise; private __dockerServiceToken; /** * @param {Vellum.PushContainerImageRequest} request * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.containerImages.pushContainerImage({ * name: "x", * sha: "x", * tags: ["tags", "tags"] * }) */ pushContainerImage(request: Vellum.PushContainerImageRequest, requestOptions?: ContainerImages.RequestOptions): core.HttpResponsePromise; private __pushContainerImage; protected _getCustomAuthorizationHeaders(): Promise<{ "X-API-KEY": string; }>; }