@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>
178 lines • 6.24 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import { globalConfigCreateEdgeConfig } from "../funcs/globalConfigCreateEdgeConfig.js";
import { globalConfigCreateEdgeConfigToken } from "../funcs/globalConfigCreateEdgeConfigToken.js";
import { globalConfigDeleteEdgeConfig } from "../funcs/globalConfigDeleteEdgeConfig.js";
import { globalConfigDeleteEdgeConfigSchema } from "../funcs/globalConfigDeleteEdgeConfigSchema.js";
import { globalConfigDeleteEdgeConfigTokens } from "../funcs/globalConfigDeleteEdgeConfigTokens.js";
import { globalConfigGetEdgeConfig } from "../funcs/globalConfigGetEdgeConfig.js";
import { globalConfigGetEdgeConfigBackup } from "../funcs/globalConfigGetEdgeConfigBackup.js";
import { globalConfigGetEdgeConfigBackups } from "../funcs/globalConfigGetEdgeConfigBackups.js";
import { globalConfigGetEdgeConfigItem } from "../funcs/globalConfigGetEdgeConfigItem.js";
import { globalConfigGetEdgeConfigItems } from "../funcs/globalConfigGetEdgeConfigItems.js";
import { globalConfigGetEdgeConfigs } from "../funcs/globalConfigGetEdgeConfigs.js";
import { globalConfigGetEdgeConfigSchema } from "../funcs/globalConfigGetEdgeConfigSchema.js";
import { globalConfigGetEdgeConfigToken } from "../funcs/globalConfigGetEdgeConfigToken.js";
import { globalConfigGetEdgeConfigTokens } from "../funcs/globalConfigGetEdgeConfigTokens.js";
import { globalConfigPatchEdgeConfigSchema } from "../funcs/globalConfigPatchEdgeConfigSchema.js";
import { globalConfigRestoreEdgeConfigBackup } from "../funcs/globalConfigRestoreEdgeConfigBackup.js";
import { globalConfigUpdateEdgeConfig } from "../funcs/globalConfigUpdateEdgeConfig.js";
import { ClientSDK } from "../lib/sdks.js";
import { unwrapAsync } from "../types/fp.js";
export class GlobalConfig extends ClientSDK {
/**
* Get Global Configs
*
* @remarks
* Returns all Global Configs.
*/
async getEdgeConfigs(request, options) {
return unwrapAsync(globalConfigGetEdgeConfigs(this, request, options));
}
/**
* Create a Global Config
*
* @remarks
* Creates a Global Config.
*/
async createEdgeConfig(request, options) {
return unwrapAsync(globalConfigCreateEdgeConfig(this, request, options));
}
/**
* Get a Global Config
*
* @remarks
* Returns a Global Config.
*/
async getEdgeConfig(request, options) {
return unwrapAsync(globalConfigGetEdgeConfig(this, request, options));
}
/**
* Update a Global Config
*
* @remarks
* Updates a Global Config.
*/
async updateEdgeConfig(request, options) {
return unwrapAsync(globalConfigUpdateEdgeConfig(this, request, options));
}
/**
* Delete a Global Config
*
* @remarks
* Delete a Global Config by id.
*/
async deleteEdgeConfig(request, options) {
return unwrapAsync(globalConfigDeleteEdgeConfig(this, request, options));
}
/**
* Get Global Config items
*
* @remarks
* Returns all items of a Global Config.
*/
async getEdgeConfigItems(request, options) {
return unwrapAsync(globalConfigGetEdgeConfigItems(this, request, options));
}
/**
* Get Global Config schema
*
* @remarks
* Returns the schema of a Global Config.
*/
async getEdgeConfigSchema(request, options) {
return unwrapAsync(globalConfigGetEdgeConfigSchema(this, request, options));
}
/**
* Update Global Config schema
*
* @remarks
* Update a Global Config's schema.
*/
async patchEdgeConfigSchema(request, options) {
return unwrapAsync(globalConfigPatchEdgeConfigSchema(this, request, options));
}
/**
* Delete a Global Config's schema
*
* @remarks
* Deletes the schema of existing Global Config.
*/
async deleteEdgeConfigSchema(request, options) {
return unwrapAsync(globalConfigDeleteEdgeConfigSchema(this, request, options));
}
/**
* Get a Global Config item
*
* @remarks
* Returns a specific Global Config Item.
*/
async getEdgeConfigItem(request, options) {
return unwrapAsync(globalConfigGetEdgeConfigItem(this, request, options));
}
/**
* Get all tokens of a Global Config
*
* @remarks
* Returns all tokens of a Global Config.
*/
async getEdgeConfigTokens(request, options) {
return unwrapAsync(globalConfigGetEdgeConfigTokens(this, request, options));
}
/**
* Delete one or more Global Config tokens
*
* @remarks
* Deletes one or more tokens of an existing Global Config.
*/
async deleteEdgeConfigTokens(request, options) {
return unwrapAsync(globalConfigDeleteEdgeConfigTokens(this, request, options));
}
/**
* Get Global Config token meta data
*
* @remarks
* Return meta data about a Global Config token.
*/
async getEdgeConfigToken(request, options) {
return unwrapAsync(globalConfigGetEdgeConfigToken(this, request, options));
}
/**
* Create a Global Config token
*
* @remarks
* Adds a token to an existing Global Config.
*/
async createEdgeConfigToken(request, options) {
return unwrapAsync(globalConfigCreateEdgeConfigToken(this, request, options));
}
/**
* Get Global Config backup
*
* @remarks
* Retrieves a specific version of a Global Config from backup storage.
*/
async getEdgeConfigBackup(request, options) {
return unwrapAsync(globalConfigGetEdgeConfigBackup(this, request, options));
}
/**
* Restore Global Config backup
*
* @remarks
* Restores a Global Config backup.
*/
async restoreEdgeConfigBackup(request, options) {
return unwrapAsync(globalConfigRestoreEdgeConfigBackup(this, request, options));
}
/**
* Get Global Config backups
*
* @remarks
* Returns backups of a Global Config.
*/
async getEdgeConfigBackups(request, options) {
return unwrapAsync(globalConfigGetEdgeConfigBackups(this, request, options));
}
}
//# sourceMappingURL=globalconfig.js.map