@azure/app-configuration
Version:
An isomorphic client library for the Azure App Configuration service.
91 lines • 10.4 kB
TypeScript
import { AppConfigurationContext as Client } from "./index.js";
import { _KeyListResult, Key, _KeyValueListResult, KeyValue, _SnapshotListResult, ConfigurationSnapshot, OperationDetails, SnapshotUpdateParameters, _LabelListResult, Label } from "../models/models.js";
import { PagedAsyncIterableIterator } from "../static-helpers/pagingHelpers.js";
import { CheckRevisionsOptionalParams, GetRevisionsOptionalParams, DeleteLockOptionalParams, PutLockOptionalParams, CheckLabelsOptionalParams, GetLabelsOptionalParams, CheckSnapshotOptionalParams, UpdateSnapshotOptionalParams, CreateSnapshotOptionalParams, GetOperationDetailsOptionalParams, GetSnapshotOptionalParams, CheckSnapshotsOptionalParams, GetSnapshotsOptionalParams, CheckKeyValueOptionalParams, DeleteKeyValueOptionalParams, PutKeyValueOptionalParams, GetKeyValueOptionalParams, CheckKeyValuesOptionalParams, GetKeyValuesOptionalParams, CheckKeysOptionalParams, GetKeysOptionalParams } from "./options.js";
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
import { PollerLike, OperationState } from "@azure/core-lro";
export declare function _checkRevisionsSend(context: Client, options?: CheckRevisionsOptionalParams): StreamableMethod;
export declare function _checkRevisionsDeserialize(result: PathUncheckedResponse): Promise<void>;
/** Requests the headers and status of the given resource. */
export declare function checkRevisions(context: Client, options?: CheckRevisionsOptionalParams): Promise<void>;
export declare function _getRevisionsSend(context: Client, options?: GetRevisionsOptionalParams): StreamableMethod;
export declare function _getRevisionsDeserialize(result: PathUncheckedResponse): Promise<_KeyValueListResult>;
/** Gets a list of key-value revisions. */
export declare function getRevisions(context: Client, options?: GetRevisionsOptionalParams): PagedAsyncIterableIterator<KeyValue>;
export declare function _deleteLockSend(context: Client, key: string, options?: DeleteLockOptionalParams): StreamableMethod;
export declare function _deleteLockDeserialize(result: PathUncheckedResponse): Promise<KeyValue>;
/** Unlocks a key-value. */
export declare function deleteLock(context: Client, key: string, options?: DeleteLockOptionalParams): Promise<KeyValue>;
export declare function _putLockSend(context: Client, key: string, options?: PutLockOptionalParams): StreamableMethod;
export declare function _putLockDeserialize(result: PathUncheckedResponse): Promise<KeyValue>;
/** Locks a key-value. */
export declare function putLock(context: Client, key: string, options?: PutLockOptionalParams): Promise<KeyValue>;
export declare function _checkLabelsSend(context: Client, options?: CheckLabelsOptionalParams): StreamableMethod;
export declare function _checkLabelsDeserialize(result: PathUncheckedResponse): Promise<void>;
/** Requests the headers and status of the given resource. */
export declare function checkLabels(context: Client, options?: CheckLabelsOptionalParams): Promise<void>;
export declare function _getLabelsSend(context: Client, options?: GetLabelsOptionalParams): StreamableMethod;
export declare function _getLabelsDeserialize(result: PathUncheckedResponse): Promise<_LabelListResult>;
/** Gets a list of labels. */
export declare function getLabels(context: Client, options?: GetLabelsOptionalParams): PagedAsyncIterableIterator<Label>;
export declare function _checkSnapshotSend(context: Client, name: string, options?: CheckSnapshotOptionalParams): StreamableMethod;
export declare function _checkSnapshotDeserialize(result: PathUncheckedResponse): Promise<void>;
/** Requests the headers and status of the given resource. */
export declare function checkSnapshot(context: Client, name: string, options?: CheckSnapshotOptionalParams): Promise<void>;
export declare function _updateSnapshotSend(context: Client, contentType: "application/merge-patch+json" | "application/json", name: string, entity: SnapshotUpdateParameters, options?: UpdateSnapshotOptionalParams): StreamableMethod;
export declare function _updateSnapshotDeserialize(result: PathUncheckedResponse): Promise<ConfigurationSnapshot>;
/** Updates the state of a key-value snapshot. */
export declare function updateSnapshot(context: Client, contentType: "application/merge-patch+json" | "application/json", name: string, entity: SnapshotUpdateParameters, options?: UpdateSnapshotOptionalParams): Promise<ConfigurationSnapshot>;
export declare function _createSnapshotSend(context: Client, contentType: "application/vnd.microsoft.appconfig.snapshot+json" | "application/json", name: string, entity: ConfigurationSnapshot, options?: CreateSnapshotOptionalParams): StreamableMethod;
export declare function _createSnapshotDeserialize(result: PathUncheckedResponse): Promise<ConfigurationSnapshot>;
/** Creates a key-value snapshot. */
export declare function createSnapshot(context: Client, contentType: "application/vnd.microsoft.appconfig.snapshot+json" | "application/json", name: string, entity: ConfigurationSnapshot, options?: CreateSnapshotOptionalParams): PollerLike<OperationState<ConfigurationSnapshot>, ConfigurationSnapshot>;
export declare function _getOperationDetailsSend(context: Client, snapshot: string, options?: GetOperationDetailsOptionalParams): StreamableMethod;
export declare function _getOperationDetailsDeserialize(result: PathUncheckedResponse): Promise<OperationDetails>;
/** Gets the state of a long running operation. */
export declare function getOperationDetails(context: Client, snapshot: string, options?: GetOperationDetailsOptionalParams): Promise<OperationDetails>;
export declare function _getSnapshotSend(context: Client, name: string, options?: GetSnapshotOptionalParams): StreamableMethod;
export declare function _getSnapshotDeserialize(result: PathUncheckedResponse): Promise<ConfigurationSnapshot>;
/** Gets a single key-value snapshot. */
export declare function getSnapshot(context: Client, name: string, options?: GetSnapshotOptionalParams): Promise<ConfigurationSnapshot>;
export declare function _checkSnapshotsSend(context: Client, options?: CheckSnapshotsOptionalParams): StreamableMethod;
export declare function _checkSnapshotsDeserialize(result: PathUncheckedResponse): Promise<void>;
/** Requests the headers and status of the given resource. */
export declare function checkSnapshots(context: Client, options?: CheckSnapshotsOptionalParams): Promise<void>;
export declare function _getSnapshotsSend(context: Client, options?: GetSnapshotsOptionalParams): StreamableMethod;
export declare function _getSnapshotsDeserialize(result: PathUncheckedResponse): Promise<_SnapshotListResult>;
/** Gets a list of key-value snapshots. */
export declare function getSnapshots(context: Client, options?: GetSnapshotsOptionalParams): PagedAsyncIterableIterator<ConfigurationSnapshot>;
export declare function _checkKeyValueSend(context: Client, key: string, options?: CheckKeyValueOptionalParams): StreamableMethod;
export declare function _checkKeyValueDeserialize(result: PathUncheckedResponse): Promise<void>;
/** Requests the headers and status of the given resource. */
export declare function checkKeyValue(context: Client, key: string, options?: CheckKeyValueOptionalParams): Promise<void>;
export declare function _deleteKeyValueSend(context: Client, key: string, options?: DeleteKeyValueOptionalParams): StreamableMethod;
export declare function _deleteKeyValueDeserialize(result: PathUncheckedResponse): Promise<KeyValue | undefined>;
/** Deletes a key-value. */
export declare function deleteKeyValue(context: Client, key: string, options?: DeleteKeyValueOptionalParams): Promise<KeyValue | undefined>;
export declare function _putKeyValueSend(context: Client, contentType: "application/vnd.microsoft.appconfig.kv+json" | "application/vnd.microsoft.appconfig.kvset+json" | "application/json" | "text/json" | "application/*+json" | "application/json-patch+json", key: string, options?: PutKeyValueOptionalParams): StreamableMethod;
export declare function _putKeyValueDeserialize(result: PathUncheckedResponse): Promise<KeyValue>;
/** Creates a key-value. */
export declare function putKeyValue(context: Client, contentType: "application/vnd.microsoft.appconfig.kv+json" | "application/vnd.microsoft.appconfig.kvset+json" | "application/json" | "text/json" | "application/*+json" | "application/json-patch+json", key: string, options?: PutKeyValueOptionalParams): Promise<KeyValue>;
export declare function _getKeyValueSend(context: Client, key: string, options?: GetKeyValueOptionalParams): StreamableMethod;
export declare function _getKeyValueDeserialize(result: PathUncheckedResponse): Promise<KeyValue>;
/** Gets a single key-value. */
export declare function getKeyValue(context: Client, key: string, options?: GetKeyValueOptionalParams): Promise<KeyValue>;
export declare function _checkKeyValuesSend(context: Client, options?: CheckKeyValuesOptionalParams): StreamableMethod;
export declare function _checkKeyValuesDeserialize(result: PathUncheckedResponse): Promise<void>;
/** Requests the headers and status of the given resource. */
export declare function checkKeyValues(context: Client, options?: CheckKeyValuesOptionalParams): Promise<void>;
export declare function _getKeyValuesSend(context: Client, options?: GetKeyValuesOptionalParams): StreamableMethod;
export declare function _getKeyValuesDeserialize(result: PathUncheckedResponse): Promise<_KeyValueListResult>;
/** Gets a list of key-values. */
export declare function getKeyValues(context: Client, options?: GetKeyValuesOptionalParams): PagedAsyncIterableIterator<KeyValue>;
export declare function _checkKeysSend(context: Client, options?: CheckKeysOptionalParams): StreamableMethod;
export declare function _checkKeysDeserialize(result: PathUncheckedResponse): Promise<void>;
/** Requests the headers and status of the given resource. */
export declare function checkKeys(context: Client, options?: CheckKeysOptionalParams): Promise<void>;
export declare function _getKeysSend(context: Client, options?: GetKeysOptionalParams): StreamableMethod;
export declare function _getKeysDeserialize(result: PathUncheckedResponse): Promise<_KeyListResult>;
/** Gets a list of keys. */
export declare function getKeys(context: Client, options?: GetKeysOptionalParams): PagedAsyncIterableIterator<Key>;
//# sourceMappingURL=operations.d.ts.map