UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

118 lines 4.91 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { environmentCreateCustomEnvironment } from "../funcs/environmentCreateCustomEnvironment.js"; import { environmentCreateSharedEnvVariable } from "../funcs/environmentCreateSharedEnvVariable.js"; import { environmentDeleteSharedEnvVariable } from "../funcs/environmentDeleteSharedEnvVariable.js"; import { environmentGetCustomEnvironment } from "../funcs/environmentGetCustomEnvironment.js"; import { environmentGetProjectsByIdOrNameCustomEnvironments } from "../funcs/environmentGetProjectsByIdOrNameCustomEnvironments.js"; import { environmentGetSharedEnvVar } from "../funcs/environmentGetSharedEnvVar.js"; import { environmentListSharedEnvVariable } from "../funcs/environmentListSharedEnvVariable.js"; import { environmentRemoveCustomEnvironment } from "../funcs/environmentRemoveCustomEnvironment.js"; import { environmentUnlinkSharedEnvVariable } from "../funcs/environmentUnlinkSharedEnvVariable.js"; import { environmentUpdateCustomEnvironment } from "../funcs/environmentUpdateCustomEnvironment.js"; import { environmentUpdateSharedEnvVariable } from "../funcs/environmentUpdateSharedEnvVariable.js"; import { ClientSDK } from "../lib/sdks.js"; import { unwrapAsync } from "../types/fp.js"; export class Environment extends ClientSDK { /** * Create one or more shared environment variables * * @remarks * Creates shared environment variable(s) for a team. */ async createSharedEnvVariable(request, options) { return unwrapAsync(environmentCreateSharedEnvVariable(this, request, options)); } /** * Lists all Shared Environment Variables for a team * * @remarks * Lists all Shared Environment Variables for a team, taking into account optional filters. */ async listSharedEnvVariable(request, options) { return unwrapAsync(environmentListSharedEnvVariable(this, request, options)); } /** * Updates one or more shared environment variables * * @remarks * Updates a given Shared Environment Variable for a Team. */ async updateSharedEnvVariable(request, options) { return unwrapAsync(environmentUpdateSharedEnvVariable(this, request, options)); } /** * Delete one or more Env Var * * @remarks * Deletes one or many Shared Environment Variables for a given team. */ async deleteSharedEnvVariable(request, options) { return unwrapAsync(environmentDeleteSharedEnvVariable(this, request, options)); } /** * Retrieve the decrypted value of a Shared Environment Variable by id. * * @remarks * Retrieve the decrypted value of a Shared Environment Variable by id. */ async getSharedEnvVar(request, options) { return unwrapAsync(environmentGetSharedEnvVar(this, request, options)); } /** * Disconnects a shared environment variable for a given project * * @remarks * Disconnects a shared environment variable for a given project */ async unlinkSharedEnvVariable(request, options) { return unwrapAsync(environmentUnlinkSharedEnvVariable(this, request, options)); } /** * Create a custom environment for the current project. * * @remarks * Creates a custom environment for the current project. Cannot be named 'Production' or 'Preview'. */ async createCustomEnvironment(request, options) { return unwrapAsync(environmentCreateCustomEnvironment(this, request, options)); } /** * Retrieve custom environments * * @remarks * Retrieve custom environments for the project. Must not be named 'Production' or 'Preview'. */ async getProjectsByIdOrNameCustomEnvironments(request, options) { return unwrapAsync(environmentGetProjectsByIdOrNameCustomEnvironments(this, request, options)); } /** * Retrieve a custom environment * * @remarks * Retrieve a custom environment for the project. Must not be named 'Production' or 'Preview'. */ async getCustomEnvironment(request, options) { return unwrapAsync(environmentGetCustomEnvironment(this, request, options)); } /** * Update a custom environment * * @remarks * Update a custom environment for the project. Must not be named 'Production' or 'Preview'. */ async updateCustomEnvironment(request, options) { return unwrapAsync(environmentUpdateCustomEnvironment(this, request, options)); } /** * Remove a custom environment * * @remarks * Remove a custom environment for the project. Must not be named 'Production' or 'Preview'. */ async removeCustomEnvironment(request, options) { return unwrapAsync(environmentRemoveCustomEnvironment(this, request, options)); } } //# sourceMappingURL=environment.js.map