Helper class for interacting with the projects resouce.

Hierarchy

  • ApisClient

Constructors

Properties

authToken: string
config: ApisConfig
operationsClient: OperationsClient
subscriptionClient: SubscriptionClient

Methods

  • Create new api deployment

    Parameters

    • createApiData: Omit<Pick<WleApi, "port" | "name" | "image" | "dockerConfigBase64">, "env"> & Partial<Omit<WleApi, "env">> & {
          env: {
              [k: string]: string;
          };
      }

    Returns Promise<WleApi>

  • Delete a single api resource. Please note, that an Api which is actively used by a Pages deployment cannot be removed.

    Parameters

    • apiName: string

    Returns Promise<void>

    Api Name

    jobId

  • Create new api deployment

    Parameters

    • data: {
          name: string;
          updateEnv: boolean;
          [key: string]: any;
      }
      • [key: string]: any
      • name: string
      • updateEnv: boolean

    Returns Promise<WleApi>

Generated using TypeDoc