UNPKG

@azure/app-configuration

Version:
129 lines (128 loc) 5.71 kB
var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var appConfigurationClient_exports = {}; __export(appConfigurationClient_exports, { AppConfigurationClient: () => AppConfigurationClient }); module.exports = __toCommonJS(appConfigurationClient_exports); var import_api = require("./api/index.js"); var import_operations = require("./api/operations.js"); class AppConfigurationClient { _client; /** The pipeline used by this client to make requests */ pipeline; /** Azure App Configuration REST API */ constructor(endpointParam, credential, options = {}) { const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-client` : `azsdk-js-client`; this._client = (0, import_api.createAppConfiguration)(endpointParam, credential, { ...options, userAgentOptions: { userAgentPrefix } }); this.pipeline = this._client.pipeline; } /** Requests the headers and status of the given resource. */ checkRevisions(options = { requestOptions: {} }) { return (0, import_operations.checkRevisions)(this._client, options); } /** Gets a list of key-value revisions. */ getRevisions(options = { requestOptions: {} }) { return (0, import_operations.getRevisions)(this._client, options); } /** Unlocks a key-value. */ deleteLock(key, options = { requestOptions: {} }) { return (0, import_operations.deleteLock)(this._client, key, options); } /** Locks a key-value. */ putLock(key, options = { requestOptions: {} }) { return (0, import_operations.putLock)(this._client, key, options); } /** Requests the headers and status of the given resource. */ checkLabels(options = { requestOptions: {} }) { return (0, import_operations.checkLabels)(this._client, options); } /** Gets a list of labels. */ getLabels(options = { requestOptions: {} }) { return (0, import_operations.getLabels)(this._client, options); } /** Requests the headers and status of the given resource. */ checkSnapshot(name, options = { requestOptions: {} }) { return (0, import_operations.checkSnapshot)(this._client, name, options); } /** Updates the state of a key-value snapshot. */ updateSnapshot(contentType, name, entity, options = { requestOptions: {} }) { return (0, import_operations.updateSnapshot)(this._client, contentType, name, entity, options); } /** Creates a key-value snapshot. */ createSnapshot(contentType, name, entity, options = { requestOptions: {} }) { return (0, import_operations.createSnapshot)(this._client, contentType, name, entity, options); } /** Gets the state of a long running operation. */ getOperationDetails(snapshot, options = { requestOptions: {} }) { return (0, import_operations.getOperationDetails)(this._client, snapshot, options); } /** Gets a single key-value snapshot. */ getSnapshot(name, options = { requestOptions: {} }) { return (0, import_operations.getSnapshot)(this._client, name, options); } /** Requests the headers and status of the given resource. */ checkSnapshots(options = { requestOptions: {} }) { return (0, import_operations.checkSnapshots)(this._client, options); } /** Gets a list of key-value snapshots. */ getSnapshots(options = { requestOptions: {} }) { return (0, import_operations.getSnapshots)(this._client, options); } /** Requests the headers and status of the given resource. */ checkKeyValue(key, options = { requestOptions: {} }) { return (0, import_operations.checkKeyValue)(this._client, key, options); } /** Deletes a key-value. */ deleteKeyValue(key, options = { requestOptions: {} }) { return (0, import_operations.deleteKeyValue)(this._client, key, options); } /** Creates a key-value. */ putKeyValue(contentType, key, options = { requestOptions: {} }) { return (0, import_operations.putKeyValue)(this._client, contentType, key, options); } /** Gets a single key-value. */ getKeyValue(key, options = { requestOptions: {} }) { return (0, import_operations.getKeyValue)(this._client, key, options); } /** Requests the headers and status of the given resource. */ checkKeyValues(options = { requestOptions: {} }) { return (0, import_operations.checkKeyValues)(this._client, options); } /** Gets a list of key-values. */ getKeyValues(options = { requestOptions: {} }) { return (0, import_operations.getKeyValues)(this._client, options); } /** Requests the headers and status of the given resource. */ checkKeys(options = { requestOptions: {} }) { return (0, import_operations.checkKeys)(this._client, options); } /** Gets a list of keys. */ getKeys(options = { requestOptions: {} }) { return (0, import_operations.getKeys)(this._client, options); } } // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { AppConfigurationClient }); //# sourceMappingURL=appConfigurationClient.js.map