@azure/app-configuration 1.5.0-beta.2 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +2 -11
  2. package/dist/index.js +2044 -2064
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/samples-dev/featureFlag.js +3 -8
  5. package/dist-esm/samples-dev/featureFlag.js.map +1 -1
  6. package/dist-esm/samples-dev/getSettingOnlyIfChanged.js +4 -9
  7. package/dist-esm/samples-dev/getSettingOnlyIfChanged.js.map +1 -1
  8. package/dist-esm/samples-dev/helloworld.js +3 -8
  9. package/dist-esm/samples-dev/helloworld.js.map +1 -1
  10. package/dist-esm/samples-dev/helloworldWithLabels.js +3 -8
  11. package/dist-esm/samples-dev/helloworldWithLabels.js.map +1 -1
  12. package/dist-esm/samples-dev/listConfigurationSettings.js +6 -16
  13. package/dist-esm/samples-dev/listConfigurationSettings.js.map +1 -1
  14. package/dist-esm/samples-dev/listRevisions.js +7 -17
  15. package/dist-esm/samples-dev/listRevisions.js.map +1 -1
  16. package/dist-esm/samples-dev/optimisticConcurrencyViaEtag.js +4 -9
  17. package/dist-esm/samples-dev/optimisticConcurrencyViaEtag.js.map +1 -1
  18. package/dist-esm/samples-dev/secretReference.js +3 -8
  19. package/dist-esm/samples-dev/secretReference.js.map +1 -1
  20. package/dist-esm/samples-dev/setReadOnlySample.js +4 -9
  21. package/dist-esm/samples-dev/setReadOnlySample.js.map +1 -1
  22. package/dist-esm/samples-dev/snapshot.js +9 -24
  23. package/dist-esm/samples-dev/snapshot.js.map +1 -1
  24. package/dist-esm/samples-dev/updateSyncTokenSample.js +3 -8
  25. package/dist-esm/samples-dev/updateSyncTokenSample.js.map +1 -1
  26. package/dist-esm/src/appConfigurationClient.js +2 -4
  27. package/dist-esm/src/appConfigurationClient.js.map +1 -1
  28. package/dist-esm/src/generated/src/appConfiguration.js +1 -1
  29. package/dist-esm/src/generated/src/appConfiguration.js.map +1 -1
  30. package/dist-esm/src/internal/constants.js +5 -1
  31. package/dist-esm/src/internal/constants.js.map +1 -1
  32. package/dist-esm/src/internal/helpers.js +6 -0
  33. package/dist-esm/src/internal/helpers.js.map +1 -1
  34. package/dist-esm/src/models.js +0 -26
  35. package/dist-esm/src/models.js.map +1 -1
  36. package/dist-esm/test/public/auth.spec.js +1 -2
  37. package/dist-esm/test/public/auth.spec.js.map +1 -1
  38. package/dist-esm/test/public/etags.spec.js +12 -0
  39. package/dist-esm/test/public/etags.spec.js.map +1 -1
  40. package/dist-esm/test/public/featureFlag.spec.js +17 -27
  41. package/dist-esm/test/public/featureFlag.spec.js.map +1 -1
  42. package/dist-esm/test/public/index.spec.js +3 -3
  43. package/dist-esm/test/public/index.spec.js.map +1 -1
  44. package/dist-esm/test/public/secretReference.spec.js +16 -26
  45. package/dist-esm/test/public/secretReference.spec.js.map +1 -1
  46. package/dist-esm/test/public/snapshot.spec.js +16 -36
  47. package/dist-esm/test/public/snapshot.spec.js.map +1 -1
  48. package/dist-esm/test/public/utils/testHelpers.js +21 -51
  49. package/dist-esm/test/public/utils/testHelpers.js.map +1 -1
  50. package/package.json +6 -7
  51. package/types/app-configuration.d.ts +0 -37
@@ -1 +1 @@
1
- {"version":3,"file":"appConfiguration.js","sourceRoot":"","sources":["../../../../src/generated/src/appConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;AAM1D,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AA4D5C,gBAAgB;AAChB,MAAM,OAAO,gBAAiB,SAAQ,cAAc,CAAC,qBAAqB;IAKxE;;;;;OA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UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,OAAO;KACnB;IACD,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreHttpCompat from \"@azure/core-http-compat\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"./lroImpl\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport {\n ApiVersion20231001,\n AppConfigurationOptionalParams,\n GetKeysOptionalParams,\n GetKeysResponse,\n CheckKeysOptionalParams,\n CheckKeysResponse,\n GetKeyValuesOptionalParams,\n GetKeyValuesResponse,\n CheckKeyValuesOptionalParams,\n CheckKeyValuesResponse,\n GetKeyValueOptionalParams,\n GetKeyValueResponse,\n PutKeyValueOptionalParams,\n PutKeyValueResponse,\n DeleteKeyValueOptionalParams,\n DeleteKeyValueResponse,\n CheckKeyValueOptionalParams,\n CheckKeyValueResponse,\n GetSnapshotsOptionalParams,\n GetSnapshotsResponse,\n CheckSnapshotsOptionalParams,\n CheckSnapshotsResponse,\n GetSnapshotOptionalParams,\n GetSnapshotResponse,\n ConfigurationSnapshot,\n CreateSnapshotOptionalParams,\n CreateSnapshotResponse,\n SnapshotUpdateParameters,\n UpdateSnapshotOptionalParams,\n UpdateSnapshotResponse,\n CheckSnapshotOptionalParams,\n CheckSnapshotResponse,\n GetLabelsOptionalParams,\n GetLabelsResponse,\n CheckLabelsOptionalParams,\n CheckLabelsResponse,\n PutLockOptionalParams,\n PutLockResponse,\n DeleteLockOptionalParams,\n DeleteLockResponse,\n GetRevisionsOptionalParams,\n GetRevisionsResponse,\n CheckRevisionsOptionalParams,\n CheckRevisionsResponse,\n GetOperationDetailsOptionalParams,\n GetOperationDetailsResponse,\n GetKeysNextOptionalParams,\n GetKeysNextResponse,\n GetKeyValuesNextOptionalParams,\n GetKeyValuesNextResponse,\n GetSnapshotsNextOptionalParams,\n GetSnapshotsNextResponse,\n GetLabelsNextOptionalParams,\n GetLabelsNextResponse,\n GetRevisionsNextOptionalParams,\n GetRevisionsNextResponse\n} from \"./models\";\n\n/** @internal */\nexport class AppConfiguration extends coreHttpCompat.ExtendedServiceClient {\n endpoint: string;\n syncToken?: string;\n apiVersion: ApiVersion20231001;\n\n /**\n * Initializes a new instance of the AppConfiguration class.\n * @param endpoint The endpoint of the App Configuration instance to send requests to.\n * @param apiVersion Api Version\n * @param options The parameter options\n */\n constructor(\n endpoint: string,\n apiVersion: ApiVersion20231001,\n options?: AppConfigurationOptionalParams\n ) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n if (apiVersion === undefined) {\n throw new Error(\"'apiVersion' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AppConfigurationOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-app-configuration/1.5.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{endpoint}\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n this.apiVersion = apiVersion;\n this.addCustomApiVersionPolicy(apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Gets a list of keys.\n * @param options The options parameters.\n */\n getKeys(options?: GetKeysOptionalParams): Promise<GetKeysResponse> {\n return this.sendOperationRequest({ options }, getKeysOperationSpec);\n }\n\n /**\n * Requests the headers and status of the given resource.\n * @param options The options parameters.\n */\n checkKeys(options?: CheckKeysOptionalParams): Promise<CheckKeysResponse> {\n return this.sendOperationRequest({ options }, checkKeysOperationSpec);\n }\n\n /**\n * Gets a list of key-values.\n * @param options The options parameters.\n */\n getKeyValues(\n options?: GetKeyValuesOptionalParams\n ): Promise<GetKeyValuesResponse> {\n return this.sendOperationRequest({ options }, getKeyValuesOperationSpec);\n }\n\n /**\n * Requests the headers and status of the given resource.\n * @param options The options parameters.\n */\n checkKeyValues(\n options?: CheckKeyValuesOptionalParams\n ): Promise<CheckKeyValuesResponse> {\n return this.sendOperationRequest({ options }, checkKeyValuesOperationSpec);\n }\n\n /**\n * Gets a single key-value.\n * @param key The key of the key-value to retrieve.\n * @param options The options parameters.\n */\n getKeyValue(\n key: string,\n options?: GetKeyValueOptionalParams\n ): Promise<GetKeyValueResponse> {\n return this.sendOperationRequest(\n { key, options },\n getKeyValueOperationSpec\n );\n }\n\n /**\n * Creates a key-value.\n * @param key The key of the key-value to create.\n * @param options The options parameters.\n */\n putKeyValue(\n key: string,\n options?: PutKeyValueOptionalParams\n ): Promise<PutKeyValueResponse> {\n return this.sendOperationRequest(\n { key, options },\n putKeyValueOperationSpec\n );\n }\n\n /**\n * Deletes a key-value.\n * @param key The key of the key-value to delete.\n * @param options The options parameters.\n */\n deleteKeyValue(\n key: string,\n options?: DeleteKeyValueOptionalParams\n ): Promise<DeleteKeyValueResponse> {\n return this.sendOperationRequest(\n { key, options },\n deleteKeyValueOperationSpec\n );\n }\n\n /**\n * Requests the headers and status of the given resource.\n * @param key The key of the key-value to retrieve.\n * @param options The options parameters.\n */\n checkKeyValue(\n key: string,\n options?: CheckKeyValueOptionalParams\n ): Promise<CheckKeyValueResponse> {\n return this.sendOperationRequest(\n { key, options },\n checkKeyValueOperationSpec\n );\n }\n\n /**\n * Gets a list of key-value snapshots.\n * @param options The options parameters.\n */\n getSnapshots(\n options?: GetSnapshotsOptionalParams\n ): Promise<GetSnapshotsResponse> {\n return this.sendOperationRequest({ options }, getSnapshotsOperationSpec);\n }\n\n /**\n * Requests the headers and status of the given resource.\n * @param options The options parameters.\n */\n checkSnapshots(\n options?: CheckSnapshotsOptionalParams\n ): Promise<CheckSnapshotsResponse> {\n return this.sendOperationRequest({ options }, checkSnapshotsOperationSpec);\n }\n\n /**\n * Gets a single key-value snapshot.\n * @param name The name of the key-value snapshot to retrieve.\n * @param options The options parameters.\n */\n getSnapshot(\n name: string,\n options?: GetSnapshotOptionalParams\n ): Promise<GetSnapshotResponse> {\n return this.sendOperationRequest(\n { name, options },\n getSnapshotOperationSpec\n );\n }\n\n /**\n * Creates a key-value snapshot.\n * @param name The name of the key-value snapshot to create.\n * @param entity The key-value snapshot to create.\n * @param options The options parameters.\n */\n async beginCreateSnapshot(\n name: string,\n entity: ConfigurationSnapshot,\n options?: CreateSnapshotOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<CreateSnapshotResponse>,\n CreateSnapshotResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<CreateSnapshotResponse> => {\n return this.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { name, entity, options },\n spec: createSnapshotOperationSpec\n });\n const poller = await createHttpPoller<\n CreateSnapshotResponse,\n OperationState<CreateSnapshotResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a key-value snapshot.\n * @param name The name of the key-value snapshot to create.\n * @param entity The key-value snapshot to create.\n * @param options The options parameters.\n */\n async beginCreateSnapshotAndWait(\n name: string,\n entity: ConfigurationSnapshot,\n options?: CreateSnapshotOptionalParams\n ): Promise<CreateSnapshotResponse> {\n const poller = await this.beginCreateSnapshot(name, entity, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Updates the state of a key-value snapshot.\n * @param name The name of the key-value snapshot to update.\n * @param entity The parameters used to update the snapshot.\n * @param options The options parameters.\n */\n updateSnapshot(\n name: string,\n entity: SnapshotUpdateParameters,\n options?: UpdateSnapshotOptionalParams\n ): Promise<UpdateSnapshotResponse> {\n return this.sendOperationRequest(\n { name, entity, options },\n updateSnapshotOperationSpec\n );\n }\n\n /**\n * Requests the headers and status of the given resource.\n * @param name The name of the key-value snapshot to check.\n * @param options The options parameters.\n */\n checkSnapshot(\n name: string,\n options?: CheckSnapshotOptionalParams\n ): Promise<CheckSnapshotResponse> {\n return this.sendOperationRequest(\n { name, options },\n checkSnapshotOperationSpec\n );\n }\n\n /**\n * Gets a list of labels.\n * @param options The options parameters.\n */\n getLabels(options?: GetLabelsOptionalParams): Promise<GetLabelsResponse> {\n return this.sendOperationRequest({ options }, getLabelsOperationSpec);\n }\n\n /**\n * Requests the headers and status of the given resource.\n * @param options The options parameters.\n */\n checkLabels(\n options?: CheckLabelsOptionalParams\n ): Promise<CheckLabelsResponse> {\n return this.sendOperationRequest({ options }, checkLabelsOperationSpec);\n }\n\n /**\n * Locks a key-value.\n * @param key The key of the key-value to lock.\n * @param options The options parameters.\n */\n putLock(\n key: string,\n options?: PutLockOptionalParams\n ): Promise<PutLockResponse> {\n return this.sendOperationRequest({ key, options }, putLockOperationSpec);\n }\n\n /**\n * Unlocks a key-value.\n * @param key The key of the key-value to unlock.\n * @param options The options parameters.\n */\n deleteLock(\n key: string,\n options?: DeleteLockOptionalParams\n ): Promise<DeleteLockResponse> {\n return this.sendOperationRequest({ key, options }, deleteLockOperationSpec);\n }\n\n /**\n * Gets a list of key-value revisions.\n * @param options The options parameters.\n */\n getRevisions(\n options?: GetRevisionsOptionalParams\n ): Promise<GetRevisionsResponse> {\n return this.sendOperationRequest({ options }, getRevisionsOperationSpec);\n }\n\n /**\n * Requests the headers and status of the given resource.\n * @param options The options parameters.\n */\n checkRevisions(\n options?: CheckRevisionsOptionalParams\n ): Promise<CheckRevisionsResponse> {\n return this.sendOperationRequest({ options }, checkRevisionsOperationSpec);\n }\n\n /**\n * Gets the state of a long running operation.\n * @param snapshot Snapshot identifier for the long running operation.\n * @param options The options parameters.\n */\n getOperationDetails(\n snapshot: string,\n options?: GetOperationDetailsOptionalParams\n ): Promise<GetOperationDetailsResponse> {\n return this.sendOperationRequest(\n { snapshot, options },\n getOperationDetailsOperationSpec\n );\n }\n\n /**\n * GetKeysNext\n * @param nextLink The nextLink from the previous successful call to the GetKeys method.\n * @param options The options parameters.\n */\n getKeysNext(\n nextLink: string,\n options?: GetKeysNextOptionalParams\n ): Promise<GetKeysNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n getKeysNextOperationSpec\n );\n }\n\n /**\n * GetKeyValuesNext\n * @param nextLink The nextLink from the previous successful call to the GetKeyValues method.\n * @param options The options parameters.\n */\n getKeyValuesNext(\n nextLink: string,\n options?: GetKeyValuesNextOptionalParams\n ): Promise<GetKeyValuesNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n getKeyValuesNextOperationSpec\n );\n }\n\n /**\n * GetSnapshotsNext\n * @param nextLink The nextLink from the previous successful call to the GetSnapshots method.\n * @param options The options parameters.\n */\n getSnapshotsNext(\n nextLink: string,\n options?: GetSnapshotsNextOptionalParams\n ): Promise<GetSnapshotsNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n getSnapshotsNextOperationSpec\n );\n }\n\n /**\n * GetLabelsNext\n * @param nextLink The nextLink from the previous successful call to the GetLabels method.\n * @param options The options parameters.\n */\n getLabelsNext(\n nextLink: string,\n options?: GetLabelsNextOptionalParams\n ): Promise<GetLabelsNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n getLabelsNextOperationSpec\n );\n }\n\n /**\n * GetRevisionsNext\n * @param nextLink The nextLink from the previous successful call to the GetRevisions method.\n * @param options The options parameters.\n */\n getRevisionsNext(\n nextLink: string,\n options?: GetRevisionsNextOptionalParams\n ): Promise<GetRevisionsNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n getRevisionsNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getKeysOperationSpec: coreClient.OperationSpec = {\n path: \"/keys\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyListResult,\n headersMapper: Mappers.AppConfigurationGetKeysHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.name, Parameters.apiVersion, Parameters.after],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.accept,\n Parameters.syncToken,\n Parameters.acceptDatetime\n ],\n serializer\n};\nconst checkKeysOperationSpec: coreClient.OperationSpec = {\n path: \"/keys\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.AppConfigurationCheckKeysHeaders\n },\n default: {}\n },\n queryParameters: [Parameters.name, Parameters.apiVersion, Parameters.after],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.syncToken, Parameters.acceptDatetime],\n serializer\n};\nconst getKeyValuesOperationSpec: coreClient.OperationSpec = {\n path: \"/kv\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValueListResult,\n headersMapper: Mappers.AppConfigurationGetKeyValuesHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.after,\n Parameters.key,\n Parameters.label,\n Parameters.select,\n Parameters.snapshot\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.accept1,\n Parameters.ifMatch,\n Parameters.ifNoneMatch\n ],\n serializer\n};\nconst checkKeyValuesOperationSpec: coreClient.OperationSpec = {\n path: \"/kv\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.AppConfigurationCheckKeyValuesHeaders\n },\n default: {}\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.after,\n Parameters.key,\n Parameters.label,\n Parameters.select,\n Parameters.snapshot\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.ifMatch,\n Parameters.ifNoneMatch\n ],\n serializer\n};\nconst getKeyValueOperationSpec: coreClient.OperationSpec = {\n path: \"/kv/{key}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValue,\n headersMapper: Mappers.AppConfigurationGetKeyValueHeaders\n },\n 304: {\n headersMapper: Mappers.AppConfigurationGetKeyValueHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.label, Parameters.select],\n urlParameters: [Parameters.endpoint, Parameters.key1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.accept2\n ],\n serializer\n};\nconst putKeyValueOperationSpec: coreClient.OperationSpec = {\n path: \"/kv/{key}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValue,\n headersMapper: Mappers.AppConfigurationPutKeyValueHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.entity,\n queryParameters: [Parameters.apiVersion, Parameters.label],\n urlParameters: [Parameters.endpoint, Parameters.key1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.accept2,\n Parameters.contentType\n ],\n mediaType: \"json\",\n serializer\n};\nconst deleteKeyValueOperationSpec: coreClient.OperationSpec = {\n path: \"/kv/{key}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValue,\n headersMapper: Mappers.AppConfigurationDeleteKeyValueHeaders\n },\n 204: {\n headersMapper: Mappers.AppConfigurationDeleteKeyValueHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.label],\n urlParameters: [Parameters.endpoint, Parameters.key1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.ifMatch,\n Parameters.accept2\n ],\n serializer\n};\nconst checkKeyValueOperationSpec: coreClient.OperationSpec = {\n path: \"/kv/{key}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.AppConfigurationCheckKeyValueHeaders\n },\n 304: {\n headersMapper: Mappers.AppConfigurationCheckKeyValueHeaders\n },\n default: {}\n },\n queryParameters: [Parameters.apiVersion, Parameters.label, Parameters.select],\n urlParameters: [Parameters.endpoint, Parameters.key1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.ifMatch,\n Parameters.ifNoneMatch\n ],\n serializer\n};\nconst getSnapshotsOperationSpec: coreClient.OperationSpec = {\n path: \"/snapshots\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SnapshotListResult,\n headersMapper: Mappers.AppConfigurationGetSnapshotsHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [\n Parameters.name,\n Parameters.apiVersion,\n Parameters.after,\n Parameters.select1,\n Parameters.status\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.syncToken, Parameters.accept3],\n serializer\n};\nconst checkSnapshotsOperationSpec: coreClient.OperationSpec = {\n path: \"/snapshots\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.AppConfigurationCheckSnapshotsHeaders\n },\n default: {}\n },\n queryParameters: [Parameters.apiVersion, Parameters.after],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.syncToken],\n serializer\n};\nconst getSnapshotOperationSpec: coreClient.OperationSpec = {\n path: \"/snapshots/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationSnapshot,\n headersMapper: Mappers.AppConfigurationGetSnapshotHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.select1],\n urlParameters: [Parameters.endpoint, Parameters.name1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.accept4\n ],\n serializer\n};\nconst createSnapshotOperationSpec: coreClient.OperationSpec = {\n path: \"/snapshots/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationSnapshot,\n headersMapper: Mappers.AppConfigurationCreateSnapshotHeaders\n },\n 201: {\n bodyMapper: Mappers.ConfigurationSnapshot,\n headersMapper: Mappers.AppConfigurationCreateSnapshotHeaders\n },\n 202: {\n bodyMapper: Mappers.ConfigurationSnapshot,\n headersMapper: Mappers.AppConfigurationCreateSnapshotHeaders\n },\n 204: {\n bodyMapper: Mappers.ConfigurationSnapshot,\n headersMapper: Mappers.AppConfigurationCreateSnapshotHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.entity1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.name2],\n headerParameters: [\n Parameters.syncToken,\n Parameters.accept4,\n Parameters.contentType1\n ],\n mediaType: \"json\",\n serializer\n};\nconst updateSnapshotOperationSpec: coreClient.OperationSpec = {\n path: \"/snapshots/{name}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationSnapshot,\n headersMapper: Mappers.AppConfigurationUpdateSnapshotHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.entity2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.name1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.accept4,\n Parameters.contentType2\n ],\n mediaType: \"json\",\n serializer\n};\nconst checkSnapshotOperationSpec: coreClient.OperationSpec = {\n path: \"/snapshots/{name}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.AppConfigurationCheckSnapshotHeaders\n },\n default: {}\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.name1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.ifMatch,\n Parameters.ifNoneMatch\n ],\n serializer\n};\nconst getLabelsOperationSpec: coreClient.OperationSpec = {\n path: \"/labels\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LabelListResult,\n headersMapper: Mappers.AppConfigurationGetLabelsHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [\n Parameters.name,\n Parameters.apiVersion,\n Parameters.after,\n Parameters.select2\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.accept5\n ],\n serializer\n};\nconst checkLabelsOperationSpec: coreClient.OperationSpec = {\n path: \"/labels\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.AppConfigurationCheckLabelsHeaders\n },\n default: {}\n },\n queryParameters: [\n Parameters.name,\n Parameters.apiVersion,\n Parameters.after,\n Parameters.select2\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.syncToken, Parameters.acceptDatetime],\n serializer\n};\nconst putLockOperationSpec: coreClient.OperationSpec = {\n path: \"/locks/{key}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValue,\n headersMapper: Mappers.AppConfigurationPutLockHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.label],\n urlParameters: [Parameters.endpoint, Parameters.key1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.accept2\n ],\n serializer\n};\nconst deleteLockOperationSpec: coreClient.OperationSpec = {\n path: \"/locks/{key}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValue,\n headersMapper: Mappers.AppConfigurationDeleteLockHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.label],\n urlParameters: [Parameters.endpoint, Parameters.key1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.accept2\n ],\n serializer\n};\nconst getRevisionsOperationSpec: coreClient.OperationSpec = {\n path: \"/revisions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValueListResult,\n headersMapper: Mappers.AppConfigurationGetRevisionsHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.after,\n Parameters.key,\n Parameters.label,\n Parameters.select\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.accept1\n ],\n serializer\n};\nconst checkRevisionsOperationSpec: coreClient.OperationSpec = {\n path: \"/revisions\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.AppConfigurationCheckRevisionsHeaders\n },\n default: {}\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.after,\n Parameters.key,\n Parameters.label,\n Parameters.select\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.syncToken, Parameters.acceptDatetime],\n serializer\n};\nconst getOperationDetailsOperationSpec: coreClient.OperationSpec = {\n path: \"/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationDetails\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.snapshot1],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept6],\n serializer\n};\nconst getKeysNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyListResult,\n headersMapper: Mappers.AppConfigurationGetKeysNextHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [\n Parameters.accept,\n Parameters.syncToken,\n Parameters.acceptDatetime\n ],\n serializer\n};\nconst getKeyValuesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValueListResult,\n headersMapper: Mappers.AppConfigurationGetKeyValuesNextHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.accept1,\n Parameters.ifMatch,\n Parameters.ifNoneMatch\n ],\n serializer\n};\nconst getSnapshotsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SnapshotListResult,\n headersMapper: Mappers.AppConfigurationGetSnapshotsNextHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.syncToken, Parameters.accept3],\n serializer\n};\nconst getLabelsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LabelListResult,\n headersMapper: Mappers.AppConfigurationGetLabelsNextHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.accept5\n ],\n serializer\n};\nconst getRevisionsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValueListResult,\n headersMapper: Mappers.AppConfigurationGetRevisionsNextHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.accept1\n ],\n serializer\n};\n"]}
1
+ {"version":3,"file":"appConfiguration.js","sourceRoot":"","sources":["../../../../src/generated/src/appConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KA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AAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,OAAO;KACnB;IACD,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;YACtC,aAAa,EAAE,OAAO,CAAC,uCAAuC;SAC/D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,OAAO;KACnB;IACD,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreHttpCompat from \"@azure/core-http-compat\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"./lroImpl\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport {\n ApiVersion20231001,\n AppConfigurationOptionalParams,\n GetKeysOptionalParams,\n GetKeysResponse,\n CheckKeysOptionalParams,\n CheckKeysResponse,\n GetKeyValuesOptionalParams,\n GetKeyValuesResponse,\n CheckKeyValuesOptionalParams,\n CheckKeyValuesResponse,\n GetKeyValueOptionalParams,\n GetKeyValueResponse,\n PutKeyValueOptionalParams,\n PutKeyValueResponse,\n DeleteKeyValueOptionalParams,\n DeleteKeyValueResponse,\n CheckKeyValueOptionalParams,\n CheckKeyValueResponse,\n GetSnapshotsOptionalParams,\n GetSnapshotsResponse,\n CheckSnapshotsOptionalParams,\n CheckSnapshotsResponse,\n GetSnapshotOptionalParams,\n GetSnapshotResponse,\n ConfigurationSnapshot,\n CreateSnapshotOptionalParams,\n CreateSnapshotResponse,\n SnapshotUpdateParameters,\n UpdateSnapshotOptionalParams,\n UpdateSnapshotResponse,\n CheckSnapshotOptionalParams,\n CheckSnapshotResponse,\n GetLabelsOptionalParams,\n GetLabelsResponse,\n CheckLabelsOptionalParams,\n CheckLabelsResponse,\n PutLockOptionalParams,\n PutLockResponse,\n DeleteLockOptionalParams,\n DeleteLockResponse,\n GetRevisionsOptionalParams,\n GetRevisionsResponse,\n CheckRevisionsOptionalParams,\n CheckRevisionsResponse,\n GetOperationDetailsOptionalParams,\n GetOperationDetailsResponse,\n GetKeysNextOptionalParams,\n GetKeysNextResponse,\n GetKeyValuesNextOptionalParams,\n GetKeyValuesNextResponse,\n GetSnapshotsNextOptionalParams,\n GetSnapshotsNextResponse,\n GetLabelsNextOptionalParams,\n GetLabelsNextResponse,\n GetRevisionsNextOptionalParams,\n GetRevisionsNextResponse\n} from \"./models\";\n\n/** @internal */\nexport class AppConfiguration extends coreHttpCompat.ExtendedServiceClient {\n endpoint: string;\n syncToken?: string;\n apiVersion: ApiVersion20231001;\n\n /**\n * Initializes a new instance of the AppConfiguration class.\n * @param endpoint The endpoint of the App Configuration instance to send requests to.\n * @param apiVersion Api Version\n * @param options The parameter options\n */\n constructor(\n endpoint: string,\n apiVersion: ApiVersion20231001,\n options?: AppConfigurationOptionalParams\n ) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n if (apiVersion === undefined) {\n throw new Error(\"'apiVersion' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AppConfigurationOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-app-configuration/1.5.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{endpoint}\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n this.apiVersion = apiVersion;\n this.addCustomApiVersionPolicy(apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Gets a list of keys.\n * @param options The options parameters.\n */\n getKeys(options?: GetKeysOptionalParams): Promise<GetKeysResponse> {\n return this.sendOperationRequest({ options }, getKeysOperationSpec);\n }\n\n /**\n * Requests the headers and status of the given resource.\n * @param options The options parameters.\n */\n checkKeys(options?: CheckKeysOptionalParams): Promise<CheckKeysResponse> {\n return this.sendOperationRequest({ options }, checkKeysOperationSpec);\n }\n\n /**\n * Gets a list of key-values.\n * @param options The options parameters.\n */\n getKeyValues(\n options?: GetKeyValuesOptionalParams\n ): Promise<GetKeyValuesResponse> {\n return this.sendOperationRequest({ options }, getKeyValuesOperationSpec);\n }\n\n /**\n * Requests the headers and status of the given resource.\n * @param options The options parameters.\n */\n checkKeyValues(\n options?: CheckKeyValuesOptionalParams\n ): Promise<CheckKeyValuesResponse> {\n return this.sendOperationRequest({ options }, checkKeyValuesOperationSpec);\n }\n\n /**\n * Gets a single key-value.\n * @param key The key of the key-value to retrieve.\n * @param options The options parameters.\n */\n getKeyValue(\n key: string,\n options?: GetKeyValueOptionalParams\n ): Promise<GetKeyValueResponse> {\n return this.sendOperationRequest(\n { key, options },\n getKeyValueOperationSpec\n );\n }\n\n /**\n * Creates a key-value.\n * @param key The key of the key-value to create.\n * @param options The options parameters.\n */\n putKeyValue(\n key: string,\n options?: PutKeyValueOptionalParams\n ): Promise<PutKeyValueResponse> {\n return this.sendOperationRequest(\n { key, options },\n putKeyValueOperationSpec\n );\n }\n\n /**\n * Deletes a key-value.\n * @param key The key of the key-value to delete.\n * @param options The options parameters.\n */\n deleteKeyValue(\n key: string,\n options?: DeleteKeyValueOptionalParams\n ): Promise<DeleteKeyValueResponse> {\n return this.sendOperationRequest(\n { key, options },\n deleteKeyValueOperationSpec\n );\n }\n\n /**\n * Requests the headers and status of the given resource.\n * @param key The key of the key-value to retrieve.\n * @param options The options parameters.\n */\n checkKeyValue(\n key: string,\n options?: CheckKeyValueOptionalParams\n ): Promise<CheckKeyValueResponse> {\n return this.sendOperationRequest(\n { key, options },\n checkKeyValueOperationSpec\n );\n }\n\n /**\n * Gets a list of key-value snapshots.\n * @param options The options parameters.\n */\n getSnapshots(\n options?: GetSnapshotsOptionalParams\n ): Promise<GetSnapshotsResponse> {\n return this.sendOperationRequest({ options }, getSnapshotsOperationSpec);\n }\n\n /**\n * Requests the headers and status of the given resource.\n * @param options The options parameters.\n */\n checkSnapshots(\n options?: CheckSnapshotsOptionalParams\n ): Promise<CheckSnapshotsResponse> {\n return this.sendOperationRequest({ options }, checkSnapshotsOperationSpec);\n }\n\n /**\n * Gets a single key-value snapshot.\n * @param name The name of the key-value snapshot to retrieve.\n * @param options The options parameters.\n */\n getSnapshot(\n name: string,\n options?: GetSnapshotOptionalParams\n ): Promise<GetSnapshotResponse> {\n return this.sendOperationRequest(\n { name, options },\n getSnapshotOperationSpec\n );\n }\n\n /**\n * Creates a key-value snapshot.\n * @param name The name of the key-value snapshot to create.\n * @param entity The key-value snapshot to create.\n * @param options The options parameters.\n */\n async beginCreateSnapshot(\n name: string,\n entity: ConfigurationSnapshot,\n options?: CreateSnapshotOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<CreateSnapshotResponse>,\n CreateSnapshotResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<CreateSnapshotResponse> => {\n return this.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { name, entity, options },\n spec: createSnapshotOperationSpec\n });\n const poller = await createHttpPoller<\n CreateSnapshotResponse,\n OperationState<CreateSnapshotResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a key-value snapshot.\n * @param name The name of the key-value snapshot to create.\n * @param entity The key-value snapshot to create.\n * @param options The options parameters.\n */\n async beginCreateSnapshotAndWait(\n name: string,\n entity: ConfigurationSnapshot,\n options?: CreateSnapshotOptionalParams\n ): Promise<CreateSnapshotResponse> {\n const poller = await this.beginCreateSnapshot(name, entity, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Updates the state of a key-value snapshot.\n * @param name The name of the key-value snapshot to update.\n * @param entity The parameters used to update the snapshot.\n * @param options The options parameters.\n */\n updateSnapshot(\n name: string,\n entity: SnapshotUpdateParameters,\n options?: UpdateSnapshotOptionalParams\n ): Promise<UpdateSnapshotResponse> {\n return this.sendOperationRequest(\n { name, entity, options },\n updateSnapshotOperationSpec\n );\n }\n\n /**\n * Requests the headers and status of the given resource.\n * @param name The name of the key-value snapshot to check.\n * @param options The options parameters.\n */\n checkSnapshot(\n name: string,\n options?: CheckSnapshotOptionalParams\n ): Promise<CheckSnapshotResponse> {\n return this.sendOperationRequest(\n { name, options },\n checkSnapshotOperationSpec\n );\n }\n\n /**\n * Gets a list of labels.\n * @param options The options parameters.\n */\n getLabels(options?: GetLabelsOptionalParams): Promise<GetLabelsResponse> {\n return this.sendOperationRequest({ options }, getLabelsOperationSpec);\n }\n\n /**\n * Requests the headers and status of the given resource.\n * @param options The options parameters.\n */\n checkLabels(\n options?: CheckLabelsOptionalParams\n ): Promise<CheckLabelsResponse> {\n return this.sendOperationRequest({ options }, checkLabelsOperationSpec);\n }\n\n /**\n * Locks a key-value.\n * @param key The key of the key-value to lock.\n * @param options The options parameters.\n */\n putLock(\n key: string,\n options?: PutLockOptionalParams\n ): Promise<PutLockResponse> {\n return this.sendOperationRequest({ key, options }, putLockOperationSpec);\n }\n\n /**\n * Unlocks a key-value.\n * @param key The key of the key-value to unlock.\n * @param options The options parameters.\n */\n deleteLock(\n key: string,\n options?: DeleteLockOptionalParams\n ): Promise<DeleteLockResponse> {\n return this.sendOperationRequest({ key, options }, deleteLockOperationSpec);\n }\n\n /**\n * Gets a list of key-value revisions.\n * @param options The options parameters.\n */\n getRevisions(\n options?: GetRevisionsOptionalParams\n ): Promise<GetRevisionsResponse> {\n return this.sendOperationRequest({ options }, getRevisionsOperationSpec);\n }\n\n /**\n * Requests the headers and status of the given resource.\n * @param options The options parameters.\n */\n checkRevisions(\n options?: CheckRevisionsOptionalParams\n ): Promise<CheckRevisionsResponse> {\n return this.sendOperationRequest({ options }, checkRevisionsOperationSpec);\n }\n\n /**\n * Gets the state of a long running operation.\n * @param snapshot Snapshot identifier for the long running operation.\n * @param options The options parameters.\n */\n getOperationDetails(\n snapshot: string,\n options?: GetOperationDetailsOptionalParams\n ): Promise<GetOperationDetailsResponse> {\n return this.sendOperationRequest(\n { snapshot, options },\n getOperationDetailsOperationSpec\n );\n }\n\n /**\n * GetKeysNext\n * @param nextLink The nextLink from the previous successful call to the GetKeys method.\n * @param options The options parameters.\n */\n getKeysNext(\n nextLink: string,\n options?: GetKeysNextOptionalParams\n ): Promise<GetKeysNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n getKeysNextOperationSpec\n );\n }\n\n /**\n * GetKeyValuesNext\n * @param nextLink The nextLink from the previous successful call to the GetKeyValues method.\n * @param options The options parameters.\n */\n getKeyValuesNext(\n nextLink: string,\n options?: GetKeyValuesNextOptionalParams\n ): Promise<GetKeyValuesNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n getKeyValuesNextOperationSpec\n );\n }\n\n /**\n * GetSnapshotsNext\n * @param nextLink The nextLink from the previous successful call to the GetSnapshots method.\n * @param options The options parameters.\n */\n getSnapshotsNext(\n nextLink: string,\n options?: GetSnapshotsNextOptionalParams\n ): Promise<GetSnapshotsNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n getSnapshotsNextOperationSpec\n );\n }\n\n /**\n * GetLabelsNext\n * @param nextLink The nextLink from the previous successful call to the GetLabels method.\n * @param options The options parameters.\n */\n getLabelsNext(\n nextLink: string,\n options?: GetLabelsNextOptionalParams\n ): Promise<GetLabelsNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n getLabelsNextOperationSpec\n );\n }\n\n /**\n * GetRevisionsNext\n * @param nextLink The nextLink from the previous successful call to the GetRevisions method.\n * @param options The options parameters.\n */\n getRevisionsNext(\n nextLink: string,\n options?: GetRevisionsNextOptionalParams\n ): Promise<GetRevisionsNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n getRevisionsNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getKeysOperationSpec: coreClient.OperationSpec = {\n path: \"/keys\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyListResult,\n headersMapper: Mappers.AppConfigurationGetKeysHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.name, Parameters.apiVersion, Parameters.after],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.accept,\n Parameters.syncToken,\n Parameters.acceptDatetime\n ],\n serializer\n};\nconst checkKeysOperationSpec: coreClient.OperationSpec = {\n path: \"/keys\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.AppConfigurationCheckKeysHeaders\n },\n default: {}\n },\n queryParameters: [Parameters.name, Parameters.apiVersion, Parameters.after],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.syncToken, Parameters.acceptDatetime],\n serializer\n};\nconst getKeyValuesOperationSpec: coreClient.OperationSpec = {\n path: \"/kv\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValueListResult,\n headersMapper: Mappers.AppConfigurationGetKeyValuesHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.after,\n Parameters.key,\n Parameters.label,\n Parameters.select,\n Parameters.snapshot\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.accept1,\n Parameters.ifMatch,\n Parameters.ifNoneMatch\n ],\n serializer\n};\nconst checkKeyValuesOperationSpec: coreClient.OperationSpec = {\n path: \"/kv\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.AppConfigurationCheckKeyValuesHeaders\n },\n default: {}\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.after,\n Parameters.key,\n Parameters.label,\n Parameters.select,\n Parameters.snapshot\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.ifMatch,\n Parameters.ifNoneMatch\n ],\n serializer\n};\nconst getKeyValueOperationSpec: coreClient.OperationSpec = {\n path: \"/kv/{key}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValue,\n headersMapper: Mappers.AppConfigurationGetKeyValueHeaders\n },\n 304: {\n headersMapper: Mappers.AppConfigurationGetKeyValueHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.label, Parameters.select],\n urlParameters: [Parameters.endpoint, Parameters.key1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.accept2\n ],\n serializer\n};\nconst putKeyValueOperationSpec: coreClient.OperationSpec = {\n path: \"/kv/{key}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValue,\n headersMapper: Mappers.AppConfigurationPutKeyValueHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.entity,\n queryParameters: [Parameters.apiVersion, Parameters.label],\n urlParameters: [Parameters.endpoint, Parameters.key1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.accept2,\n Parameters.contentType\n ],\n mediaType: \"json\",\n serializer\n};\nconst deleteKeyValueOperationSpec: coreClient.OperationSpec = {\n path: \"/kv/{key}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValue,\n headersMapper: Mappers.AppConfigurationDeleteKeyValueHeaders\n },\n 204: {\n headersMapper: Mappers.AppConfigurationDeleteKeyValueHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.label],\n urlParameters: [Parameters.endpoint, Parameters.key1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.ifMatch,\n Parameters.accept2\n ],\n serializer\n};\nconst checkKeyValueOperationSpec: coreClient.OperationSpec = {\n path: \"/kv/{key}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.AppConfigurationCheckKeyValueHeaders\n },\n 304: {\n headersMapper: Mappers.AppConfigurationCheckKeyValueHeaders\n },\n default: {}\n },\n queryParameters: [Parameters.apiVersion, Parameters.label, Parameters.select],\n urlParameters: [Parameters.endpoint, Parameters.key1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.ifMatch,\n Parameters.ifNoneMatch\n ],\n serializer\n};\nconst getSnapshotsOperationSpec: coreClient.OperationSpec = {\n path: \"/snapshots\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SnapshotListResult,\n headersMapper: Mappers.AppConfigurationGetSnapshotsHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [\n Parameters.name,\n Parameters.apiVersion,\n Parameters.after,\n Parameters.select1,\n Parameters.status\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.syncToken, Parameters.accept3],\n serializer\n};\nconst checkSnapshotsOperationSpec: coreClient.OperationSpec = {\n path: \"/snapshots\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.AppConfigurationCheckSnapshotsHeaders\n },\n default: {}\n },\n queryParameters: [Parameters.apiVersion, Parameters.after],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.syncToken],\n serializer\n};\nconst getSnapshotOperationSpec: coreClient.OperationSpec = {\n path: \"/snapshots/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationSnapshot,\n headersMapper: Mappers.AppConfigurationGetSnapshotHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.select1],\n urlParameters: [Parameters.endpoint, Parameters.name1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.accept4\n ],\n serializer\n};\nconst createSnapshotOperationSpec: coreClient.OperationSpec = {\n path: \"/snapshots/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationSnapshot,\n headersMapper: Mappers.AppConfigurationCreateSnapshotHeaders\n },\n 201: {\n bodyMapper: Mappers.ConfigurationSnapshot,\n headersMapper: Mappers.AppConfigurationCreateSnapshotHeaders\n },\n 202: {\n bodyMapper: Mappers.ConfigurationSnapshot,\n headersMapper: Mappers.AppConfigurationCreateSnapshotHeaders\n },\n 204: {\n bodyMapper: Mappers.ConfigurationSnapshot,\n headersMapper: Mappers.AppConfigurationCreateSnapshotHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.entity1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.name2],\n headerParameters: [\n Parameters.syncToken,\n Parameters.accept4,\n Parameters.contentType1\n ],\n mediaType: \"json\",\n serializer\n};\nconst updateSnapshotOperationSpec: coreClient.OperationSpec = {\n path: \"/snapshots/{name}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationSnapshot,\n headersMapper: Mappers.AppConfigurationUpdateSnapshotHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.entity2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.name1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.accept4,\n Parameters.contentType2\n ],\n mediaType: \"json\",\n serializer\n};\nconst checkSnapshotOperationSpec: coreClient.OperationSpec = {\n path: \"/snapshots/{name}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.AppConfigurationCheckSnapshotHeaders\n },\n default: {}\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.name1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.ifMatch,\n Parameters.ifNoneMatch\n ],\n serializer\n};\nconst getLabelsOperationSpec: coreClient.OperationSpec = {\n path: \"/labels\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LabelListResult,\n headersMapper: Mappers.AppConfigurationGetLabelsHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [\n Parameters.name,\n Parameters.apiVersion,\n Parameters.after,\n Parameters.select2\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.accept5\n ],\n serializer\n};\nconst checkLabelsOperationSpec: coreClient.OperationSpec = {\n path: \"/labels\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.AppConfigurationCheckLabelsHeaders\n },\n default: {}\n },\n queryParameters: [\n Parameters.name,\n Parameters.apiVersion,\n Parameters.after,\n Parameters.select2\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.syncToken, Parameters.acceptDatetime],\n serializer\n};\nconst putLockOperationSpec: coreClient.OperationSpec = {\n path: \"/locks/{key}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValue,\n headersMapper: Mappers.AppConfigurationPutLockHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.label],\n urlParameters: [Parameters.endpoint, Parameters.key1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.accept2\n ],\n serializer\n};\nconst deleteLockOperationSpec: coreClient.OperationSpec = {\n path: \"/locks/{key}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValue,\n headersMapper: Mappers.AppConfigurationDeleteLockHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.label],\n urlParameters: [Parameters.endpoint, Parameters.key1],\n headerParameters: [\n Parameters.syncToken,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.accept2\n ],\n serializer\n};\nconst getRevisionsOperationSpec: coreClient.OperationSpec = {\n path: \"/revisions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValueListResult,\n headersMapper: Mappers.AppConfigurationGetRevisionsHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.after,\n Parameters.key,\n Parameters.label,\n Parameters.select\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.accept1\n ],\n serializer\n};\nconst checkRevisionsOperationSpec: coreClient.OperationSpec = {\n path: \"/revisions\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.AppConfigurationCheckRevisionsHeaders\n },\n default: {}\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.after,\n Parameters.key,\n Parameters.label,\n Parameters.select\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.syncToken, Parameters.acceptDatetime],\n serializer\n};\nconst getOperationDetailsOperationSpec: coreClient.OperationSpec = {\n path: \"/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationDetails\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.snapshot1],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept6],\n serializer\n};\nconst getKeysNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyListResult,\n headersMapper: Mappers.AppConfigurationGetKeysNextHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [\n Parameters.accept,\n Parameters.syncToken,\n Parameters.acceptDatetime\n ],\n serializer\n};\nconst getKeyValuesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValueListResult,\n headersMapper: Mappers.AppConfigurationGetKeyValuesNextHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.accept1,\n Parameters.ifMatch,\n Parameters.ifNoneMatch\n ],\n serializer\n};\nconst getSnapshotsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SnapshotListResult,\n headersMapper: Mappers.AppConfigurationGetSnapshotsNextHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.syncToken, Parameters.accept3],\n serializer\n};\nconst getLabelsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LabelListResult,\n headersMapper: Mappers.AppConfigurationGetLabelsNextHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.accept5\n ],\n serializer\n};\nconst getRevisionsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyValueListResult,\n headersMapper: Mappers.AppConfigurationGetRevisionsNextHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [\n Parameters.syncToken,\n Parameters.acceptDatetime,\n Parameters.accept1\n ],\n serializer\n};\n"]}
@@ -3,5 +3,9 @@
3
3
  /**
4
4
  * @internal
5
5
  */
6
- export const packageVersion = "1.5.0-beta.2";
6
+ export const packageVersion = "1.5.0";
7
+ /**
8
+ * @internal
9
+ */
10
+ export const appConfigurationApiVersion = "2023-10-01";
7
11
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/internal/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,cAAc,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * @internal\n */\nexport const packageVersion = \"1.5.0-beta.2\";\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/internal/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,YAAY,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * @internal\n */\nexport const packageVersion = \"1.5.0\";\n\n/**\n * @internal\n */\nexport const appConfigurationApiVersion = \"2023-10-01\";\n"]}
@@ -146,6 +146,12 @@ export function makeConfigurationSettingEmpty(configurationSetting) {
146
146
  export function transformKeyValue(kvp) {
147
147
  const setting = Object.assign(Object.assign({ value: undefined }, kvp), { isReadOnly: !!kvp.locked });
148
148
  delete setting.locked;
149
+ if (!setting.label) {
150
+ delete setting.label;
151
+ }
152
+ if (!setting.contentType) {
153
+ delete setting.contentType;
154
+ }
149
155
  return setting;
150
156
  }
151
157
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/internal/helpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAelC,OAAO,EAAE,iBAAiB,EAAoB,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAM7F,OAAO,EACL,qBAAqB,EAErB,0BAA0B,GAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAoBnC;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,IAAwB;IAChD,kDAAkD;IAClD,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,GAAG,EAAE;QACtC,OAAO,IAAI,CAAC;KACb;IAED,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QAC9C,OAAO,IAAI,CAAC;KACb;IAED,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QAC9C,OAAO,IAAI,CAAC;KACb;IAED,OAAO,IAAI,IAAI,GAAG,CAAC;AACrB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,8BAA8B,CAC5C,cAA0B,EAC1B,OAA0D;IAE1D,IAAI,OAAO,CAAC,aAAa,IAAI,OAAO,CAAC,eAAe,EAAE;QACpD,MAAM,CAAC,KAAK,CACV,sDAAsD,EACtD,OAAO,CAAC,aAAa,EACrB,OAAO,CAAC,eAAe,CACxB,CAAC;QACF,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;KAC7E;IAED,IAAI,OAAO,CAAC;IACZ,IAAI,W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;AAC1B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gCAAgC,CAC9C,GAAW,EACX,YAA+C;IAE/C,OAAO,oBAAoB,GAAG,mBAAmB,YAAY,0EAA0E,CAAC;AAC1I,CAAC;AAED,wDAAwD;AACxD,MAAM,UAAU,cAAc,CAC5B,MAAS;IAET,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE;QAClC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE;YACzC,UAAU,EAAE,KAAK;YACjB,KAAK,EACH,sJAAsJ;SACzJ,CAAC,CAAC;KACJ;AACH,CAAC;AAED,wDAAwD;AACxD,MAAM,UAAU,qBAAqB,CACnC,MAAS;IAET,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AACnE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n ConfigurationSetting,\n ConfigurationSettingParam,\n HttpOnlyIfChangedField,\n HttpOnlyIfUnchangedField,\n HttpResponseField,\n HttpResponseFields,\n ListRevisionsOptions,\n ListSettingsOptions,\n ListSnapshotsOptions,\n ConfigurationSnapshot,\n SnapshotResponse,\n} from \"../models\";\nimport { FeatureFlagHelper, FeatureFlagValue, featureFlagContentType } from \"../featureFlag\";\nimport {\n GetKeyValuesOptionalParams,\n GetSnapshotsOptionalParams,\n KeyValue,\n} from \"../generated/src/models\";\nimport {\n SecretReferenceHelper,\n SecretReferenceValue,\n secretReferenceContentType,\n} from \"../secretReference\";\nimport { isDefined } from \"@azure/core-util\";\nimport { logger } from \"../logger\";\nimport { OperationOptions } from \"@azure/core-client\";\n\n/**\n * Options for listConfigurationSettings that allow for filtering based on keys, labels and other fields.\n * Also provides `fields` which allows you to selectively choose which fields are populated in the\n * result.\n */\nexport interface SendConfigurationSettingsOptions extends OperationOptions, ListSettingsOptions {\n /**\n * A filter used get configuration setting for a snapshot. Not valid when used with 'key' and 'label' filters\n */\n snapshotName?: string;\n}\n/**\n * Entity with etag. Represent both ConfigurationSetting and Snapshot\n */\ninterface EtagEntity {\n etag?: string;\n}\n/**\n * Formats the etag so it can be used with a If-Match/If-None-Match header\n * @internal\n */\nexport function quoteETag(etag: string | undefined): string | undefined {\n // https://tools.ietf.org/html/rfc7232#section-3.1\n if (etag === undefined || etag === \"*\") {\n return etag;\n }\n\n if (etag.startsWith('\"') && etag.endsWith('\"')) {\n return etag;\n }\n\n if (etag.startsWith(\"'\") && etag.endsWith(\"'\")) {\n return etag;\n }\n\n return `\"${etag}\"`;\n}\n\n/**\n * Checks the onlyIfChanged/onlyIfUnchanged properties to make sure we haven't specified both\n * and throws an Error. Otherwise, returns the properties properly quoted.\n * @param options - An options object with onlyIfChanged/onlyIfUnchanged fields\n * @internal\n */\nexport function checkAndFormatIfAndIfNoneMatch(\n objectWithEtag: EtagEntity,\n options: HttpOnlyIfChangedField & HttpOnlyIfUnchangedField\n): { ifMatch: string | undefined; ifNoneMatch: string | undefined } {\n if (options.onlyIfChanged && options.onlyIfUnchanged) {\n logger.error(\n \"onlyIfChanged and onlyIfUnchanged are both specified\",\n options.onlyIfChanged,\n options.onlyIfUnchanged\n );\n throw new Error(\"onlyIfChanged and onlyIfUnchanged are mutually-exclusive\");\n }\n\n let ifMatch;\n let ifNoneMatch;\n\n if (options.onlyIfUnchanged) {\n ifMatch = quoteETag(objectWithEtag.etag);\n }\n\n if (options.onlyIfChanged) {\n ifNoneMatch = quoteETag(objectWithEtag.etag);\n }\n\n return {\n ifMatch: ifMatch,\n ifNoneMatch: ifNoneMatch,\n };\n}\n\n/**\n * Transforms some of the key fields in SendConfigurationSettingsOptions and ListRevisionsOptions\n * so they can be added to a request using AppConfigurationGetKeyValuesOptionalParams.\n * - `options.acceptDateTime` is converted into an ISO string\n * - `select` is populated with the proper field names from `options.fields`\n * - keyFilter and labelFilter are moved to key and label, respectively.\n *\n * @internal\n */\nexport function formatFiltersAndSelect(\n listConfigOptions: ListRevisionsOptions\n): Pick<GetKeyValuesOptionalParams, \"key\" | \"label\" | \"select\" | \"acceptDatetime\"> {\n let acceptDatetime: string | undefined = undefined;\n\n if (listConfigOptions.acceptDateTime) {\n acceptDatetime = listConfigOptions.acceptDateTime.toISOString();\n }\n return {\n key: listConfigOptions.keyFilter,\n label: listConfigOptions.labelFilter,\n acceptDatetime,\n select: formatFieldsForSelect(listConfigOptions.fields),\n };\n}\n\n/**\n * Transforms some of the key fields in SendConfigurationSettingsOptions\n * so they can be added to a request using AppConfigurationGetKeyValuesOptionalParams.\n * - `options.acceptDateTime` is converted into an ISO string\n * - `select` is populated with the proper field names from `options.fields`\n * - keyFilter, labelFilter, snapshotName are moved to key, label, and snapshot respectively.\n *\n * @internal\n */\nexport function formatConfigurationSettingsFiltersAndSelect(\n listConfigOptions: SendConfigurationSettingsOptions\n): Pick<GetKeyValuesOptionalParams, \"key\" | \"label\" | \"select\" | \"acceptDatetime\" | \"snapshot\"> {\n const { snapshotName: snapshot, ...options } = listConfigOptions;\n return {\n ...formatFiltersAndSelect(options),\n snapshot,\n };\n}\n/**\n * Transforms some of the key fields in ListSnapshotsOptions\n * so they can be added to a request using AppConfigurationGetSnapshotsOptionalParams.\n * - `select` is populated with the proper field names from `options.fields`\n * - keyFilter and labelFilter are moved to key and label, respectively.\n *\n * @internal\n */\nexport function formatSnapshotFiltersAndSelect(\n listSnapshotOptions: ListSnapshotsOptions\n): Pick<GetSnapshotsOptionalParams, \"name\" | \"select\" | \"status\"> {\n return {\n name: listSnapshotOptions.nameFilter,\n status: listSnapshotOptions.statusFilter,\n select: listSnapshotOptions.fields,\n };\n}\n/**\n * Handles translating a Date acceptDateTime into a string as needed by the API\n * @param newOptions - A newer style options with acceptDateTime as a date (and with proper casing!)\n * @internal\n */\nexport function formatAcceptDateTime(newOptions: { acceptDateTime?: Date }): {\n acceptDatetime?: string;\n} {\n return {\n acceptDatetime: newOptions.acceptDateTime && newOptions.acceptDateTime.toISOString(),\n };\n}\n\n/**\n * Take the URL that gets returned from next link and extract the 'after' token needed\n * to get the next page of results.\n * @internal\n */\nexport function extractAfterTokenFromNextLink(nextLink: string): string {\n const searchParams = new URLSearchParams(nextLink);\n const afterToken = searchParams.get(\"after\");\n\n if (afterToken == null || Array.isArray(afterToken)) {\n logger.error(\"Invalid nextLink - invalid after token\", afterToken, Array.isArray(afterToken));\n throw new Error(\"Invalid nextLink - invalid after token\");\n }\n\n return decodeURIComponent(afterToken);\n}\n\n/**\n * Makes a ConfigurationSetting-based response throw for all of the data members. Used primarily\n * to prevent possible errors by the user in accessing a model that is uninitialized. This can happen\n * in cases like HTTP status code 204 or 304, which return an empty response body.\n *\n * @param configurationSetting - The configuration setting to alter\n */\nexport function makeConfigurationSettingEmpty(\n configurationSetting: Partial<Record<Exclude<keyof ConfigurationSetting, \"key\">, any>>\n): void {\n const names: Exclude<keyof ConfigurationSetting, \"key\">[] = [\n \"contentType\",\n \"etag\",\n \"label\",\n \"lastModified\",\n \"isReadOnly\",\n \"tags\",\n \"value\",\n ];\n\n for (const name of names) {\n configurationSetting[name] = undefined;\n }\n}\n\n/**\n * @internal\n */\nexport function transformKeyValue<T>(kvp: T & KeyValue): T & ConfigurationSetting {\n const setting: T & ConfigurationSetting & KeyValue = {\n value: undefined,\n ...kvp,\n isReadOnly: !!kvp.locked,\n };\n\n delete setting.locked;\n\n return setting;\n}\n\n/**\n * @internal\n */\nfunction isConfigSettingWithSecretReferenceValue(\n setting: any\n): setting is ConfigurationSetting<SecretReferenceValue> {\n return (\n setting.contentType === secretReferenceContentType &&\n isDefined(setting.value) &&\n typeof setting.value !== \"string\"\n );\n}\n\n/**\n * @internal\n */\nfunction isConfigSettingWithFeatureFlagValue(\n setting: any\n): setting is ConfigurationSetting<FeatureFlagValue> {\n return (\n setting.contentType === featureFlagContentType &&\n isDefined(setting.value) &&\n typeof setting.value !== \"string\"\n );\n}\n\n/**\n * @internal\n */\nfunction isSimpleConfigSetting(setting: any): setting is ConfigurationSetting {\n return typeof setting.value === \"string\" || !isDefined(setting.value);\n}\n\n/**\n * @internal\n */\nexport function serializeAsConfigurationSettingParam(\n setting:\n | ConfigurationSettingParam\n | ConfigurationSettingParam<FeatureFlagValue>\n | ConfigurationSettingParam<SecretReferenceValue>\n): ConfigurationSettingParam {\n if (isSimpleConfigSetting(setting)) {\n return setting as ConfigurationSettingParam;\n }\n try {\n if (isConfigSettingWithFeatureFlagValue(setting)) {\n return FeatureFlagHelper.toConfigurationSettingParam(setting);\n }\n if (isConfigSettingWithSecretReferenceValue(setting)) {\n return SecretReferenceHelper.toConfigurationSettingParam(setting);\n }\n } catch (error: any) {\n return setting as ConfigurationSettingParam;\n }\n logger.error(\"Unable to serialize to a configuration setting\", setting);\n throw new TypeError(\n `Unable to serialize the setting with key \"${setting.key}\" as a configuration setting`\n );\n}\n\n/**\n * @internal\n */\nexport function transformKeyValueResponseWithStatusCode<T extends KeyValue>(\n kvp: T,\n status: number | undefined\n): ConfigurationSetting & { eTag?: string } & HttpResponseFields {\n const response = {\n ...transformKeyValue(kvp),\n statusCode: status ?? -1,\n };\n\n if (hasUnderscoreResponse(kvp)) {\n Object.defineProperty(response, \"_response\", {\n enumerable: false,\n value: kvp._response,\n });\n }\n return response;\n}\n\n/**\n * @internal\n */\nexport function transformKeyValueResponse<T extends KeyValue & { eTag?: string }>(\n kvp: T\n): ConfigurationSetting {\n const setting = transformKeyValue(kvp);\n if (hasUnderscoreResponse(kvp)) {\n Object.defineProperty(setting, \"_response\", {\n enumerable: false,\n value: kvp._response,\n });\n }\n\n delete setting.eTag;\n return setting;\n}\n\n/**\n * @internal\n */\nexport function transformSnapshotResponse<T extends ConfigurationSnapshot>(\n snapshot: T\n): SnapshotResponse {\n if (hasUnderscoreResponse(snapshot)) {\n Object.defineProperty(snapshot, \"_response\", {\n enumerable: false,\n value: snapshot._response,\n });\n }\n return snapshot as any;\n}\n\n/**\n * Translates user-facing field names into their `select` equivalents (these can be\n * seen in the `KnownEnum5`)\n *\n * @param fieldNames - fieldNames from users.\n * @returns The field names translated into the `select` field equivalents.\n *\n * @internal\n */\nexport function formatFieldsForSelect(\n fieldNames: (keyof ConfigurationSetting)[] | undefined\n): string[] | undefined {\n if (fieldNames == null) {\n return undefined;\n }\n\n const mappedFieldNames = fieldNames.map((fn) => {\n switch (fn) {\n case \"lastModified\":\n return \"last_modified\";\n case \"contentType\":\n return \"content_type\";\n case \"isReadOnly\":\n return \"locked\";\n default:\n return fn;\n }\n });\n\n return mappedFieldNames;\n}\n\n/**\n * @internal\n */\nexport function errorMessageForUnexpectedSetting(\n key: string,\n expectedType: \"FeatureFlag\" | \"SecretReference\"\n): string {\n return `Setting with key ${key} is not a valid ${expectedType}, make sure to have the correct content-type and a valid non-null value.`;\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function assertResponse<T extends object>(\n result: T\n): asserts result is T & HttpResponseField<any> {\n if (!hasUnderscoreResponse(result)) {\n Object.defineProperty(result, \"_response\", {\n enumerable: false,\n value:\n \"Something went wrong, _response(raw response) is supposed to be part of the response. Please file a bug at https://github.com/Azure/azure-sdk-for-js\",\n });\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function hasUnderscoreResponse<T extends object>(\n result: T\n): result is T & HttpResponseField<any> {\n return Object.prototype.hasOwnProperty.call(result, \"_response\");\n}\n"]}
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/internal/helpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAelC,OAAO,EAAE,iBAAiB,EAAoB,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAM7F,OAAO,EACL,qBAAqB,EAErB,0BAA0B,GAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAoBnC;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,IAAwB;IAChD,kDAA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zJ,CAAC,CAAC;KACJ;AACH,CAAC;AAED,wDAAwD;AACxD,MAAM,UAAU,qBAAqB,CACnC,MAAS;IAET,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AACnE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n ConfigurationSetting,\n ConfigurationSettingParam,\n HttpOnlyIfChangedField,\n HttpOnlyIfUnchangedField,\n HttpResponseField,\n HttpResponseFields,\n ListRevisionsOptions,\n ListSettingsOptions,\n ListSnapshotsOptions,\n ConfigurationSnapshot,\n SnapshotResponse,\n} from \"../models\";\nimport { FeatureFlagHelper, FeatureFlagValue, featureFlagContentType } from \"../featureFlag\";\nimport {\n GetKeyValuesOptionalParams,\n GetSnapshotsOptionalParams,\n KeyValue,\n} from \"../generated/src/models\";\nimport {\n SecretReferenceHelper,\n SecretReferenceValue,\n secretReferenceContentType,\n} from \"../secretReference\";\nimport { isDefined } from \"@azure/core-util\";\nimport { logger } from \"../logger\";\nimport { OperationOptions } from \"@azure/core-client\";\n\n/**\n * Options for listConfigurationSettings that allow for filtering based on keys, labels and other fields.\n * Also provides `fields` which allows you to selectively choose which fields are populated in the\n * result.\n */\nexport interface SendConfigurationSettingsOptions extends OperationOptions, ListSettingsOptions {\n /**\n * A filter used get configuration setting for a snapshot. Not valid when used with 'key' and 'label' filters\n */\n snapshotName?: string;\n}\n/**\n * Entity with etag. Represent both ConfigurationSetting and Snapshot\n */\ninterface EtagEntity {\n etag?: string;\n}\n/**\n * Formats the etag so it can be used with a If-Match/If-None-Match header\n * @internal\n */\nexport function quoteETag(etag: string | undefined): string | undefined {\n // https://tools.ietf.org/html/rfc7232#section-3.1\n if (etag === undefined || etag === \"*\") {\n return etag;\n }\n\n if (etag.startsWith('\"') && etag.endsWith('\"')) {\n return etag;\n }\n\n if (etag.startsWith(\"'\") && etag.endsWith(\"'\")) {\n return etag;\n }\n\n return `\"${etag}\"`;\n}\n\n/**\n * Checks the onlyIfChanged/onlyIfUnchanged properties to make sure we haven't specified both\n * and throws an Error. Otherwise, returns the properties properly quoted.\n * @param options - An options object with onlyIfChanged/onlyIfUnchanged fields\n * @internal\n */\nexport function checkAndFormatIfAndIfNoneMatch(\n objectWithEtag: EtagEntity,\n options: HttpOnlyIfChangedField & HttpOnlyIfUnchangedField\n): { ifMatch: string | undefined; ifNoneMatch: string | undefined } {\n if (options.onlyIfChanged && options.onlyIfUnchanged) {\n logger.error(\n \"onlyIfChanged and onlyIfUnchanged are both specified\",\n options.onlyIfChanged,\n options.onlyIfUnchanged\n );\n throw new Error(\"onlyIfChanged and onlyIfUnchanged are mutually-exclusive\");\n }\n\n let ifMatch;\n let ifNoneMatch;\n\n if (options.onlyIfUnchanged) {\n ifMatch = quoteETag(objectWithEtag.etag);\n }\n\n if (options.onlyIfChanged) {\n ifNoneMatch = quoteETag(objectWithEtag.etag);\n }\n\n return {\n ifMatch: ifMatch,\n ifNoneMatch: ifNoneMatch,\n };\n}\n\n/**\n * Transforms some of the key fields in SendConfigurationSettingsOptions and ListRevisionsOptions\n * so they can be added to a request using AppConfigurationGetKeyValuesOptionalParams.\n * - `options.acceptDateTime` is converted into an ISO string\n * - `select` is populated with the proper field names from `options.fields`\n * - keyFilter and labelFilter are moved to key and label, respectively.\n *\n * @internal\n */\nexport function formatFiltersAndSelect(\n listConfigOptions: ListRevisionsOptions\n): Pick<GetKeyValuesOptionalParams, \"key\" | \"label\" | \"select\" | \"acceptDatetime\"> {\n let acceptDatetime: string | undefined = undefined;\n\n if (listConfigOptions.acceptDateTime) {\n acceptDatetime = listConfigOptions.acceptDateTime.toISOString();\n }\n return {\n key: listConfigOptions.keyFilter,\n label: listConfigOptions.labelFilter,\n acceptDatetime,\n select: formatFieldsForSelect(listConfigOptions.fields),\n };\n}\n\n/**\n * Transforms some of the key fields in SendConfigurationSettingsOptions\n * so they can be added to a request using AppConfigurationGetKeyValuesOptionalParams.\n * - `options.acceptDateTime` is converted into an ISO string\n * - `select` is populated with the proper field names from `options.fields`\n * - keyFilter, labelFilter, snapshotName are moved to key, label, and snapshot respectively.\n *\n * @internal\n */\nexport function formatConfigurationSettingsFiltersAndSelect(\n listConfigOptions: SendConfigurationSettingsOptions\n): Pick<GetKeyValuesOptionalParams, \"key\" | \"label\" | \"select\" | \"acceptDatetime\" | \"snapshot\"> {\n const { snapshotName: snapshot, ...options } = listConfigOptions;\n return {\n ...formatFiltersAndSelect(options),\n snapshot,\n };\n}\n/**\n * Transforms some of the key fields in ListSnapshotsOptions\n * so they can be added to a request using AppConfigurationGetSnapshotsOptionalParams.\n * - `select` is populated with the proper field names from `options.fields`\n * - keyFilter and labelFilter are moved to key and label, respectively.\n *\n * @internal\n */\nexport function formatSnapshotFiltersAndSelect(\n listSnapshotOptions: ListSnapshotsOptions\n): Pick<GetSnapshotsOptionalParams, \"name\" | \"select\" | \"status\"> {\n return {\n name: listSnapshotOptions.nameFilter,\n status: listSnapshotOptions.statusFilter,\n select: listSnapshotOptions.fields,\n };\n}\n/**\n * Handles translating a Date acceptDateTime into a string as needed by the API\n * @param newOptions - A newer style options with acceptDateTime as a date (and with proper casing!)\n * @internal\n */\nexport function formatAcceptDateTime(newOptions: { acceptDateTime?: Date }): {\n acceptDatetime?: string;\n} {\n return {\n acceptDatetime: newOptions.acceptDateTime && newOptions.acceptDateTime.toISOString(),\n };\n}\n\n/**\n * Take the URL that gets returned from next link and extract the 'after' token needed\n * to get the next page of results.\n * @internal\n */\nexport function extractAfterTokenFromNextLink(nextLink: string): string {\n const searchParams = new URLSearchParams(nextLink);\n const afterToken = searchParams.get(\"after\");\n\n if (afterToken == null || Array.isArray(afterToken)) {\n logger.error(\"Invalid nextLink - invalid after token\", afterToken, Array.isArray(afterToken));\n throw new Error(\"Invalid nextLink - invalid after token\");\n }\n\n return decodeURIComponent(afterToken);\n}\n\n/**\n * Makes a ConfigurationSetting-based response throw for all of the data members. Used primarily\n * to prevent possible errors by the user in accessing a model that is uninitialized. This can happen\n * in cases like HTTP status code 204 or 304, which return an empty response body.\n *\n * @param configurationSetting - The configuration setting to alter\n */\nexport function makeConfigurationSettingEmpty(\n configurationSetting: Partial<Record<Exclude<keyof ConfigurationSetting, \"key\">, any>>\n): void {\n const names: Exclude<keyof ConfigurationSetting, \"key\">[] = [\n \"contentType\",\n \"etag\",\n \"label\",\n \"lastModified\",\n \"isReadOnly\",\n \"tags\",\n \"value\",\n ];\n\n for (const name of names) {\n configurationSetting[name] = undefined;\n }\n}\n\n/**\n * @internal\n */\nexport function transformKeyValue<T>(kvp: T & KeyValue): T & ConfigurationSetting {\n const setting: T & ConfigurationSetting & KeyValue = {\n value: undefined,\n ...kvp,\n isReadOnly: !!kvp.locked,\n };\n delete setting.locked;\n if (!setting.label) {\n delete setting.label;\n }\n if (!setting.contentType) {\n delete setting.contentType;\n }\n return setting;\n}\n\n/**\n * @internal\n */\nfunction isConfigSettingWithSecretReferenceValue(\n setting: any\n): setting is ConfigurationSetting<SecretReferenceValue> {\n return (\n setting.contentType === secretReferenceContentType &&\n isDefined(setting.value) &&\n typeof setting.value !== \"string\"\n );\n}\n\n/**\n * @internal\n */\nfunction isConfigSettingWithFeatureFlagValue(\n setting: any\n): setting is ConfigurationSetting<FeatureFlagValue> {\n return (\n setting.contentType === featureFlagContentType &&\n isDefined(setting.value) &&\n typeof setting.value !== \"string\"\n );\n}\n\n/**\n * @internal\n */\nfunction isSimpleConfigSetting(setting: any): setting is ConfigurationSetting {\n return typeof setting.value === \"string\" || !isDefined(setting.value);\n}\n\n/**\n * @internal\n */\nexport function serializeAsConfigurationSettingParam(\n setting:\n | ConfigurationSettingParam\n | ConfigurationSettingParam<FeatureFlagValue>\n | ConfigurationSettingParam<SecretReferenceValue>\n): ConfigurationSettingParam {\n if (isSimpleConfigSetting(setting)) {\n return setting as ConfigurationSettingParam;\n }\n try {\n if (isConfigSettingWithFeatureFlagValue(setting)) {\n return FeatureFlagHelper.toConfigurationSettingParam(setting);\n }\n if (isConfigSettingWithSecretReferenceValue(setting)) {\n return SecretReferenceHelper.toConfigurationSettingParam(setting);\n }\n } catch (error: any) {\n return setting as ConfigurationSettingParam;\n }\n logger.error(\"Unable to serialize to a configuration setting\", setting);\n throw new TypeError(\n `Unable to serialize the setting with key \"${setting.key}\" as a configuration setting`\n );\n}\n\n/**\n * @internal\n */\nexport function transformKeyValueResponseWithStatusCode<T extends KeyValue>(\n kvp: T,\n status: number | undefined\n): ConfigurationSetting & { eTag?: string } & HttpResponseFields {\n const response = {\n ...transformKeyValue(kvp),\n statusCode: status ?? -1,\n };\n\n if (hasUnderscoreResponse(kvp)) {\n Object.defineProperty(response, \"_response\", {\n enumerable: false,\n value: kvp._response,\n });\n }\n return response;\n}\n\n/**\n * @internal\n */\nexport function transformKeyValueResponse<T extends KeyValue & { eTag?: string }>(\n kvp: T\n): ConfigurationSetting {\n const setting = transformKeyValue(kvp);\n if (hasUnderscoreResponse(kvp)) {\n Object.defineProperty(setting, \"_response\", {\n enumerable: false,\n value: kvp._response,\n });\n }\n\n delete setting.eTag;\n return setting;\n}\n\n/**\n * @internal\n */\nexport function transformSnapshotResponse<T extends ConfigurationSnapshot>(\n snapshot: T\n): SnapshotResponse {\n if (hasUnderscoreResponse(snapshot)) {\n Object.defineProperty(snapshot, \"_response\", {\n enumerable: false,\n value: snapshot._response,\n });\n }\n return snapshot as any;\n}\n\n/**\n * Translates user-facing field names into their `select` equivalents (these can be\n * seen in the `KnownEnum5`)\n *\n * @param fieldNames - fieldNames from users.\n * @returns The field names translated into the `select` field equivalents.\n *\n * @internal\n */\nexport function formatFieldsForSelect(\n fieldNames: (keyof ConfigurationSetting)[] | undefined\n): string[] | undefined {\n if (fieldNames == null) {\n return undefined;\n }\n\n const mappedFieldNames = fieldNames.map((fn) => {\n switch (fn) {\n case \"lastModified\":\n return \"last_modified\";\n case \"contentType\":\n return \"content_type\";\n case \"isReadOnly\":\n return \"locked\";\n default:\n return fn;\n }\n });\n\n return mappedFieldNames;\n}\n\n/**\n * @internal\n */\nexport function errorMessageForUnexpectedSetting(\n key: string,\n expectedType: \"FeatureFlag\" | \"SecretReference\"\n): string {\n return `Setting with key ${key} is not a valid ${expectedType}, make sure to have the correct content-type and a valid non-null value.`;\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function assertResponse<T extends object>(\n result: T\n): asserts result is T & HttpResponseField<any> {\n if (!hasUnderscoreResponse(result)) {\n Object.defineProperty(result, \"_response\", {\n enumerable: false,\n value:\n \"Something went wrong, _response(raw response) is supposed to be part of the response. Please file a bug at https://github.com/Azure/azure-sdk-for-js\",\n });\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function hasUnderscoreResponse<T extends object>(\n result: T\n): result is T & HttpResponseField<any> {\n return Object.prototype.hasOwnProperty.call(result, \"_response\");\n}\n"]}
@@ -1,30 +1,4 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT license.
3
- /**
4
- * Supported and common values of AppConfigurationApiVersion.
5
- */
6
- // eslint-disable-next-line @typescript-eslint/no-redeclare
7
- export const AppConfigurationApiVersion = {
8
- /**
9
- * The newest version of the service known to be supported by the client (default).
10
- *
11
- * If using a beta package version, this will be identical to the latest preview version. Otherwise, it will be
12
- * identical to the latest stable version.
13
- */
14
- Latest: "2022-11-01-preview",
15
- /**
16
- * The newest stable version of the service known to be supported by the package. This will be a Generally Available
17
- * (GA) version, even if the package version is a beta.
18
- */
19
- Stable: "1.0",
20
- /**
21
- * App Configuration API version "1.0" (GA).
22
- */
23
- "1.0": "1.0",
24
- /**
25
- * App Configuration API version 2022-11-01-preview.
26
- */
27
- "2022-11-01-preview": "2022-11-01-preview",
28
- };
29
3
  export { KnownSnapshotComposition, KnownConfigurationSnapshotStatus, } from "./generated/src";
30
4
  //# sourceMappingURL=models.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA+BlC;;GAEG;AACH,2DAA2D;AAC3D,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC;;;;;OAKG;IACH,MAAM,EAAE,oBAAoB;IAE5B;;;OAGG;IACH,MAAM,EAAE,KAAK;IAEb;;OAEG;IACH,KAAK,EAAE,KAAK;IAEZ;;OAEG;IACH,oBAAoB,EAAE,oBAAoB;CAClC,CAAC;AAkdX,OAAO,EAIL,wBAAwB,EACxB,gCAAgC,GAEjC,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CompatResponse } from \"@azure/core-http-compat\";\nimport { FeatureFlagValue } from \"./featureFlag\";\nimport { CommonClientOptions, OperationOptions } from \"@azure/core-client\";\nimport { SecretReferenceValue } from \"./secretReference\";\nimport {\n SnapshotComposition,\n ConfigurationSettingsFilter,\n ConfigurationSnapshot,\n ConfigurationSnapshotStatus,\n} from \"./generated/src\";\n\n/**\n * Provides configuration options for AppConfigurationClient.\n */\nexport interface AppConfigurationClientOptions extends CommonClientOptions {\n /**\n * The version of the App Configuration REST API to call.\n *\n * Default: AppConfigurationApiVersion.Latest (\"2022-11-01-preview\")\n */\n apiVersion?: AppConfigurationApiVersion;\n}\n\n/**\n * Valid values of the App Configuration service REST API version.\n */\nexport type AppConfigurationApiVersion =\n (typeof AppConfigurationApiVersion)[keyof typeof AppConfigurationApiVersion];\n\n/**\n * Supported and common values of AppConfigurationApiVersion.\n */\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AppConfigurationApiVersion = {\n /**\n * The newest version of the service known to be supported by the client (default).\n *\n * If using a beta package version, this will be identical to the latest preview version. Otherwise, it will be\n * identical to the latest stable version.\n */\n Latest: \"2022-11-01-preview\",\n\n /**\n * The newest stable version of the service known to be supported by the package. This will be a Generally Available\n * (GA) version, even if the package version is a beta.\n */\n Stable: \"1.0\",\n\n /**\n * App Configuration API version \"1.0\" (GA).\n */\n \"1.0\": \"1.0\",\n\n /**\n * App Configuration API version 2022-11-01-preview.\n */\n \"2022-11-01-preview\": \"2022-11-01-preview\",\n} as const;\n\n/**\n * Fields that uniquely identify a configuration setting\n */\nexport interface ConfigurationSettingId {\n /**\n * The etag for this setting\n */\n etag?: string;\n /**\n * The key for this setting.\n * Feature flags must be prefixed with `.appconfig.featureflag/<feature-flag-name>`.\n */\n key: string;\n\n /**\n * The label for this setting. Leaving this undefined means this\n * setting does not have a label.\n */\n label?: string;\n}\n/**\n * Necessary fields for updating or creating a new configuration setting\n */\nexport type ConfigurationSettingParam<\n T extends string | FeatureFlagValue | SecretReferenceValue = string\n> = ConfigurationSettingId & {\n /**\n * The content type of the setting's value\n */\n contentType?: string;\n\n /**\n * Tags for this key\n */\n tags?: { [propertyName: string]: string };\n} & (T extends string\n ? {\n /**\n * The setting's value\n */\n value?: string;\n }\n : {\n /**\n * The setting's value\n */\n value: T;\n });\n\n/**\n * Configuration setting with extra metadata from the server, indicating\n * its etag, whether it is currently readOnly and when it was last modified.\n */\nexport type ConfigurationSetting<\n T extends string | FeatureFlagValue | SecretReferenceValue = string\n> = ConfigurationSettingParam<T> & {\n /**\n * Whether or not the setting is read-only\n */\n isReadOnly: boolean;\n\n /**\n * The date when this setting was last modified\n */\n lastModified?: Date;\n};\n\n/**\n * Fields that are hoisted up from the _response field of the object\n * Used in cases where individual HTTP response fields are important for\n * the user to use in common-use cases like handling http status codes 204 or 304.\n */\nexport interface HttpResponseFields {\n /**\n * The HTTP status code for the response\n */\n statusCode: number;\n}\n/**\n * HTTP response related information - headers and raw body.\n */\nexport interface HttpResponseField<HeadersT> {\n /**\n * The underlying HTTP response.\n */\n _response: CompatResponse & {\n /**\n * The parsed HTTP response headers.\n */\n parsedHeaders: HeadersT;\n\n /**\n * The response body as text (string format)\n */\n bodyAsText: string;\n };\n}\n/**\n * Parameters for adding a new configuration setting\n */\nexport type AddConfigurationSettingParam<\n T extends string | FeatureFlagValue | SecretReferenceValue = string\n> = ConfigurationSettingParam<T>;\n\n/**\n * Parameters for creating or updating a new configuration setting\n */\nexport type SetConfigurationSettingParam<\n T extends string | FeatureFlagValue | SecretReferenceValue = string\n> = ConfigurationSettingParam<T>;\n\n/**\n * Standard base response for getting, deleting or updating a configuration setting\n */\nexport type ConfigurationSettingResponse<HeadersT> = ConfigurationSetting &\n HttpResponseField<HeadersT> &\n Pick<HeadersT, Exclude<keyof HeadersT, \"eTag\">>;\n\n/**\n * Options used to provide if-none-match for an HTTP request\n */\nexport interface HttpOnlyIfChangedField {\n /**\n * Used to perform an operation only if the targeted resource's etag does not match the value\n * provided.\n */\n onlyIfChanged?: boolean;\n}\n\n/**\n * Options used to provide if-match for an HTTP request\n */\nexport interface HttpOnlyIfUnchangedField {\n /**\n * Used to perform an operation only if the targeted resource's etag matches the value provided.\n */\n onlyIfUnchanged?: boolean;\n}\n\n/**\n * Used when the API supports selectively returning fields.\n */\nexport interface OptionalFields {\n /**\n * Which fields to return for each ConfigurationSetting\n */\n fields?: (keyof ConfigurationSetting)[];\n}\n\n/**\n * Used when the API supports selectively returning fields.\n */\nexport interface OptionalSnapshotFields {\n /**\n * Which fields to return for each ConfigurationSetting\n */\n fields?: (keyof ConfigurationSnapshot)[];\n}\n\n/**\n * Sync token header field\n */\nexport interface SyncTokenHeaderField {\n /**\n * Enables real-time consistency between requests by providing the returned value in the next\n * request made to the server.\n */\n syncToken?: string;\n}\n\n/**\n * Options used when adding a ConfigurationSetting.\n */\nexport interface AddConfigurationSettingOptions extends OperationOptions {}\n\n/**\n * Response from adding a ConfigurationSetting.\n */\nexport interface AddConfigurationSettingResponse\n extends ConfigurationSetting,\n SyncTokenHeaderField,\n HttpResponseField<SyncTokenHeaderField> {}\n\n/**\n * Response from deleting a ConfigurationSetting.\n */\nexport interface DeleteConfigurationSettingResponse\n extends SyncTokenHeaderField,\n HttpResponseFields,\n HttpResponseField<SyncTokenHeaderField> {}\n\n/**\n * Options for deleting a ConfigurationSetting.\n */\nexport interface DeleteConfigurationSettingOptions\n extends HttpOnlyIfUnchangedField,\n OperationOptions {}\n\n/**\n * Options used when saving a ConfigurationSetting.\n */\nexport interface SetConfigurationSettingOptions\n extends HttpOnlyIfUnchangedField,\n OperationOptions {}\n\n/**\n * Response from setting a ConfigurationSetting.\n */\nexport interface SetConfigurationSettingResponse\n extends ConfigurationSetting,\n SyncTokenHeaderField,\n HttpResponseField<SyncTokenHeaderField> {}\n\n/**\n * Headers from getting a ConfigurationSetting.\n */\nexport interface GetConfigurationHeaders extends SyncTokenHeaderField {}\n\n/**\n * Response from retrieving a ConfigurationSetting.\n */\nexport interface GetConfigurationSettingResponse\n extends ConfigurationSetting,\n GetConfigurationHeaders,\n HttpResponseFields,\n HttpResponseField<GetConfigurationHeaders> {}\n\n/**\n * Options for getting a ConfigurationSetting.\n */\nexport interface GetConfigurationSettingOptions\n extends OperationOptions,\n HttpOnlyIfChangedField,\n OptionalFields {\n /**\n * Requests the server to respond with the state of the resource at the specified time.\n */\n acceptDateTime?: Date;\n}\n\n/**\n * Common options for 'list' style APIs in AppConfig used to specify wildcards as well as\n * the accept date time header.\n */\nexport interface ListSettingsOptions extends OptionalFields {\n /**\n * Requests the server to respond with the state of the resource at the specified time.\n */\n acceptDateTime?: Date;\n\n /**\n * Filters for keys. There are two types of matching:\n *\n * 1. Exact matching. Up to 5 key names are allowed, separated by commas (',')\n * 2. Wildcard matching. A single wildcard expression can be specified.\n *\n * | Value | Matches |\n * |--------------|---------------------------------------|\n * | omitted or * | Matches any key |\n * | abc | Matches a key named abc |\n * | abc* | Matches key names that start with abc |\n *\n * These characters are reserved and must be prefixed with backslash in order\n * to be specified: * or \\\\ or ,\n */\n keyFilter?: string;\n\n /* eslint-disable tsdoc/syntax */\n /**\n * Filters for labels. There are two types of matching:\n *\n * 1. Exact matching. Up to 5 labels are allowed, separated by commas (',')\n * 2. Wildcard matching. A single wildcard expression can be specified.\n *\n * | Value | Matches |\n * |--------------|------------------------------------------------------|\n * | omitted or * | Matches any key |\n * | \\0 | Matches any key without a label (URL encoded as %00) |\n * | prod | Matches a key with label named prod |\n * | prod* | Matches key with label names that start with prod |\n * These characters are reserved and must be prefixed with backslash in order\n * to be specified: * or \\\\ or ,\n *\n * Reference: https://learn.microsoft.com/azure/azure-app-configuration/rest-api-key-value\n */\n labelFilter?: string;\n}\n\n/**\n * Common options for 'list' style APIs in AppConfig used to specify wildcards as well as\n * the accept date time header.\n */\nexport interface ListConfigurationSettingsForSnapshotOptions\n extends OperationOptions,\n OptionalFields {}\n\n/**\n * Options for listConfigurationSettings that allow for filtering based on keys, labels and other fields.\n * Also provides `fields` which allows you to selectively choose which fields are populated in the\n * result.\n */\nexport interface ListConfigurationSettingsOptions extends OperationOptions, ListSettingsOptions {}\n\n/**\n * Common options for 'list' style APIs in AppConfig used to specify wildcards as well as\n * the accept date time header.\n */\nexport interface ListSnapshots extends OptionalSnapshotFields {\n /** A filter for the name of the returned snapshots. */\n nameFilter?: string;\n\n /** Used to filter returned snapshots by their status property. */\n statusFilter?: ConfigurationSnapshotStatus[];\n}\n\n/**\n * Options for listConfigurationSettings that allow for filtering based on keys, labels and other fields.\n * Also provides `fields` which allows you to selectively choose which fields are populated in the\n * result.\n */\nexport interface ListSnapshotsOptions\n extends OperationOptions,\n ListSnapshots,\n OptionalSnapshotFields {}\n\n/**\n * An interface that tracks the settings for paged iteration\n */\nexport interface PageSettings {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n // The appconfig service doesn't currently support letting you select a page size\n // so we're ignoring their setting for now.\n}\n\n/**\n * A page of configuration settings and the corresponding HTTP response\n */\nexport interface ListConfigurationSettingPage\n extends HttpResponseField<SyncTokenHeaderField>,\n PageSettings {\n /**\n * The configuration settings for this page of results.\n */\n items: ConfigurationSetting[];\n}\n\n/**\n * A page of configuration settings and the corresponding HTTP response\n */\nexport interface ListSnapshotsPage extends SyncTokenHeaderField, PageSettings {\n /**\n * The configuration settings for this page of results.\n */\n items: ConfigurationSnapshot[];\n}\n\n/**\n * Options for listRevisions that allow for filtering based on keys, labels and other fields.\n * Also provides `fields` which allows you to selectively choose which fields are populated in the\n * result.\n */\nexport interface ListRevisionsOptions extends OperationOptions, ListSettingsOptions {}\n\n/**\n * A page of configuration settings and the corresponding HTTP response\n */\nexport interface ListRevisionsPage extends HttpResponseField<SyncTokenHeaderField>, PageSettings {\n /**\n * The configuration settings for this page of results.\n */\n items: ConfigurationSetting[];\n}\n\n/**\n * Options for setReadOnly\n */\nexport interface SetReadOnlyOptions extends HttpOnlyIfUnchangedField, OperationOptions {}\n\n/**\n * Response when setting a value to read-only.\n */\nexport interface SetReadOnlyResponse\n extends ConfigurationSetting,\n SyncTokenHeaderField,\n HttpResponseField<SyncTokenHeaderField> {}\n\n/**\n * Options that control how to retry failed requests.\n */\nexport interface RetryOptions {\n /**\n * The maximum number of retry attempts. Defaults to 3.\n */\n maxRetries?: number;\n\n /**\n * The maximum delay in milliseconds allowed before retrying an operation.\n */\n maxRetryDelayInMs?: number;\n}\n\n/**\n * Options used when creating a Snapshot.\n */\nexport interface CreateSnapshotOptions extends OperationOptions {\n /**\n * The amount of time to wait (in milliseconds) between subsequent requests relating to the same operation.\n */\n updateIntervalInMs?: number;\n}\n\n/**\n * Response from adding a Snapshot.\n */\nexport interface SnapshotResponse extends ConfigurationSnapshot, SyncTokenHeaderField {}\n\n/**\n * Options used when getting a Snapshot.\n */\nexport interface GetSnapshotOptions extends OperationOptions, OptionalSnapshotFields {}\n\n/**\n * Response from getting a Snapshot.\n */\nexport interface GetSnapshotResponse extends SnapshotResponse {}\n\n/**\n * Options used when updating a Snapshot.\n */\nexport interface UpdateSnapshotOptions extends OperationOptions {\n /**\n * The etag for this snapshot\n */\n etag?: string;\n}\n\n/**\n * Response from updating a Snapshot.\n */\nexport interface UpdateSnapshotResponse extends SnapshotResponse {}\n/**\n * Response from updating a Snapshot.\n */\nexport interface CreateSnapshotResponse extends SnapshotResponse {}\n\n/**\n * Fields that uniquely identify a snapshot\n */\nexport interface SnapshotInfo {\n /** The name for this snapshot */\n name: string;\n /** A list of filters used to filter the key-values included in the snapshot. */\n filters: ConfigurationSettingsFilter[];\n /** The composition type describes how the key-values within the snapshot are composed. The 'all' composition type includes all key-values. The 'group_by_key' composition type ensures there are no two key-values containing the same key. */\n compositionType?: SnapshotComposition;\n /** The amount of time, in seconds, that a snapshot will remain in the archived state before expiring. This property is only writable during the creation of a snapshot. If not specified, the default lifetime of key-value revisions will be used. */\n retentionPeriodInSeconds?: number;\n /** The tags of the snapshot. */\n tags?: { [propertyName: string]: string };\n}\n\nexport {\n ConfigurationSnapshot,\n ConfigurationSettingsFilter,\n SnapshotComposition,\n KnownSnapshotComposition,\n KnownConfigurationSnapshotStatus,\n ConfigurationSnapshotStatus,\n} from \"./generated/src\";\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAkelC,OAAO,EAIL,wBAAwB,EACxB,gCAAgC,GAEjC,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CompatResponse } from \"@azure/core-http-compat\";\nimport { FeatureFlagValue } from \"./featureFlag\";\nimport { CommonClientOptions, OperationOptions } from \"@azure/core-client\";\nimport { SecretReferenceValue } from \"./secretReference\";\nimport {\n SnapshotComposition,\n ConfigurationSettingsFilter,\n ConfigurationSnapshot,\n ConfigurationSnapshotStatus,\n} from \"./generated/src\";\n\n/**\n * Provides configuration options for AppConfigurationClient.\n */\nexport interface AppConfigurationClientOptions extends CommonClientOptions {}\n\n/**\n * Fields that uniquely identify a configuration setting\n */\nexport interface ConfigurationSettingId {\n /**\n * The etag for this setting\n */\n etag?: string;\n /**\n * The key for this setting.\n * Feature flags must be prefixed with `.appconfig.featureflag/<feature-flag-name>`.\n */\n key: string;\n\n /**\n * The label for this setting. Leaving this undefined means this\n * setting does not have a label.\n */\n label?: string;\n}\n/**\n * Necessary fields for updating or creating a new configuration setting\n */\nexport type ConfigurationSettingParam<\n T extends string | FeatureFlagValue | SecretReferenceValue = string\n> = ConfigurationSettingId & {\n /**\n * The content type of the setting's value\n */\n contentType?: string;\n\n /**\n * Tags for this key\n */\n tags?: { [propertyName: string]: string };\n} & (T extends string\n ? {\n /**\n * The setting's value\n */\n value?: string;\n }\n : {\n /**\n * The setting's value\n */\n value: T;\n });\n\n/**\n * Configuration setting with extra metadata from the server, indicating\n * its etag, whether it is currently readOnly and when it was last modified.\n */\nexport type ConfigurationSetting<\n T extends string | FeatureFlagValue | SecretReferenceValue = string\n> = ConfigurationSettingParam<T> & {\n /**\n * Whether or not the setting is read-only\n */\n isReadOnly: boolean;\n\n /**\n * The date when this setting was last modified\n */\n lastModified?: Date;\n};\n\n/**\n * Fields that are hoisted up from the _response field of the object\n * Used in cases where individual HTTP response fields are important for\n * the user to use in common-use cases like handling http status codes 204 or 304.\n */\nexport interface HttpResponseFields {\n /**\n * The HTTP status code for the response\n */\n statusCode: number;\n}\n/**\n * HTTP response related information - headers and raw body.\n */\nexport interface HttpResponseField<HeadersT> {\n /**\n * The underlying HTTP response.\n */\n _response: CompatResponse & {\n /**\n * The parsed HTTP response headers.\n */\n parsedHeaders: HeadersT;\n\n /**\n * The response body as text (string format)\n */\n bodyAsText: string;\n };\n}\n/**\n * Parameters for adding a new configuration setting\n */\nexport type AddConfigurationSettingParam<\n T extends string | FeatureFlagValue | SecretReferenceValue = string\n> = ConfigurationSettingParam<T>;\n\n/**\n * Parameters for creating or updating a new configuration setting\n */\nexport type SetConfigurationSettingParam<\n T extends string | FeatureFlagValue | SecretReferenceValue = string\n> = ConfigurationSettingParam<T>;\n\n/**\n * Standard base response for getting, deleting or updating a configuration setting\n */\nexport type ConfigurationSettingResponse<HeadersT> = ConfigurationSetting &\n HttpResponseField<HeadersT> &\n Pick<HeadersT, Exclude<keyof HeadersT, \"eTag\">>;\n\n/**\n * Options used to provide if-none-match for an HTTP request\n */\nexport interface HttpOnlyIfChangedField {\n /**\n * Used to perform an operation only if the targeted resource's etag does not match the value\n * provided.\n */\n onlyIfChanged?: boolean;\n}\n\n/**\n * Options used to provide if-match for an HTTP request\n */\nexport interface HttpOnlyIfUnchangedField {\n /**\n * Used to perform an operation only if the targeted resource's etag matches the value provided.\n */\n onlyIfUnchanged?: boolean;\n}\n\n/**\n * Used when the API supports selectively returning fields.\n */\nexport interface OptionalFields {\n /**\n * Which fields to return for each ConfigurationSetting\n */\n fields?: (keyof ConfigurationSetting)[];\n}\n\n/**\n * Used when the API supports selectively returning fields.\n */\nexport interface OptionalSnapshotFields {\n /**\n * Which fields to return for each ConfigurationSetting\n */\n fields?: (keyof ConfigurationSnapshot)[];\n}\n\n/**\n * Sync token header field\n */\nexport interface SyncTokenHeaderField {\n /**\n * Enables real-time consistency between requests by providing the returned value in the next\n * request made to the server.\n */\n syncToken?: string;\n}\n\n/**\n * Options used when adding a ConfigurationSetting.\n */\nexport interface AddConfigurationSettingOptions extends OperationOptions {}\n\n/**\n * Response from adding a ConfigurationSetting.\n */\nexport interface AddConfigurationSettingResponse\n extends ConfigurationSetting,\n SyncTokenHeaderField,\n HttpResponseField<SyncTokenHeaderField> {}\n\n/**\n * Response from deleting a ConfigurationSetting.\n */\nexport interface DeleteConfigurationSettingResponse\n extends SyncTokenHeaderField,\n HttpResponseFields,\n HttpResponseField<SyncTokenHeaderField> {}\n\n/**\n * Options for deleting a ConfigurationSetting.\n */\nexport interface DeleteConfigurationSettingOptions\n extends HttpOnlyIfUnchangedField,\n OperationOptions {}\n\n/**\n * Options used when saving a ConfigurationSetting.\n */\nexport interface SetConfigurationSettingOptions\n extends HttpOnlyIfUnchangedField,\n OperationOptions {}\n\n/**\n * Response from setting a ConfigurationSetting.\n */\nexport interface SetConfigurationSettingResponse\n extends ConfigurationSetting,\n SyncTokenHeaderField,\n HttpResponseField<SyncTokenHeaderField> {}\n\n/**\n * Headers from getting a ConfigurationSetting.\n */\nexport interface GetConfigurationHeaders extends SyncTokenHeaderField {}\n\n/**\n * Response from retrieving a ConfigurationSetting.\n */\nexport interface GetConfigurationSettingResponse\n extends ConfigurationSetting,\n GetConfigurationHeaders,\n HttpResponseFields,\n HttpResponseField<GetConfigurationHeaders> {}\n\n/**\n * Options for getting a ConfigurationSetting.\n */\nexport interface GetConfigurationSettingOptions\n extends OperationOptions,\n HttpOnlyIfChangedField,\n OptionalFields {\n /**\n * Requests the server to respond with the state of the resource at the specified time.\n */\n acceptDateTime?: Date;\n}\n\n/**\n * Common options for 'list' style APIs in AppConfig used to specify wildcards as well as\n * the accept date time header.\n */\nexport interface ListSettingsOptions extends OptionalFields {\n /**\n * Requests the server to respond with the state of the resource at the specified time.\n */\n acceptDateTime?: Date;\n\n /**\n * Filters for keys. There are two types of matching:\n *\n * 1. Exact matching. Up to 5 key names are allowed, separated by commas (',')\n * 2. Wildcard matching. A single wildcard expression can be specified.\n *\n * | Value | Matches |\n * |--------------|---------------------------------------|\n * | omitted or * | Matches any key |\n * | abc | Matches a key named abc |\n * | abc* | Matches key names that start with abc |\n *\n * These characters are reserved and must be prefixed with backslash in order\n * to be specified: * or \\\\ or ,\n */\n keyFilter?: string;\n\n /* eslint-disable tsdoc/syntax */\n /**\n * Filters for labels. There are two types of matching:\n *\n * 1. Exact matching. Up to 5 labels are allowed, separated by commas (',')\n * 2. Wildcard matching. A single wildcard expression can be specified.\n *\n * | Value | Matches |\n * |--------------|------------------------------------------------------|\n * | omitted or * | Matches any key |\n * | \\0 | Matches any key without a label (URL encoded as %00) |\n * | prod | Matches a key with label named prod |\n * | prod* | Matches key with label names that start with prod |\n * These characters are reserved and must be prefixed with backslash in order\n * to be specified: * or \\\\ or ,\n *\n * Reference: https://learn.microsoft.com/azure/azure-app-configuration/rest-api-key-value\n */\n labelFilter?: string;\n}\n\n/**\n * Common options for 'list' style APIs in AppConfig used to specify wildcards as well as\n * the accept date time header.\n */\nexport interface ListConfigurationSettingsForSnapshotOptions\n extends OperationOptions,\n OptionalFields {}\n\n/**\n * Options for listConfigurationSettings that allow for filtering based on keys, labels and other fields.\n * Also provides `fields` which allows you to selectively choose which fields are populated in the\n * result.\n */\nexport interface ListConfigurationSettingsOptions extends OperationOptions, ListSettingsOptions {}\n\n/**\n * Common options for 'list' style APIs in AppConfig used to specify wildcards as well as\n * the accept date time header.\n */\nexport interface ListSnapshots extends OptionalSnapshotFields {\n /** A filter for the name of the returned snapshots. */\n nameFilter?: string;\n\n /** Used to filter returned snapshots by their status property. */\n statusFilter?: ConfigurationSnapshotStatus[];\n}\n\n/**\n * Options for listConfigurationSettings that allow for filtering based on keys, labels and other fields.\n * Also provides `fields` which allows you to selectively choose which fields are populated in the\n * result.\n */\nexport interface ListSnapshotsOptions\n extends OperationOptions,\n ListSnapshots,\n OptionalSnapshotFields {}\n\n/**\n * An interface that tracks the settings for paged iteration\n */\nexport interface PageSettings {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n // The appconfig service doesn't currently support letting you select a page size\n // so we're ignoring their setting for now.\n}\n\n/**\n * A page of configuration settings and the corresponding HTTP response\n */\nexport interface ListConfigurationSettingPage\n extends HttpResponseField<SyncTokenHeaderField>,\n PageSettings {\n /**\n * The configuration settings for this page of results.\n */\n items: ConfigurationSetting[];\n}\n\n/**\n * A page of configuration settings and the corresponding HTTP response\n */\nexport interface ListSnapshotsPage extends SyncTokenHeaderField, PageSettings {\n /**\n * The configuration settings for this page of results.\n */\n items: ConfigurationSnapshot[];\n}\n\n/**\n * Options for listRevisions that allow for filtering based on keys, labels and other fields.\n * Also provides `fields` which allows you to selectively choose which fields are populated in the\n * result.\n */\nexport interface ListRevisionsOptions extends OperationOptions, ListSettingsOptions {}\n\n/**\n * A page of configuration settings and the corresponding HTTP response\n */\nexport interface ListRevisionsPage extends HttpResponseField<SyncTokenHeaderField>, PageSettings {\n /**\n * The configuration settings for this page of results.\n */\n items: ConfigurationSetting[];\n}\n\n/**\n * Options for setReadOnly\n */\nexport interface SetReadOnlyOptions extends HttpOnlyIfUnchangedField, OperationOptions {}\n\n/**\n * Response when setting a value to read-only.\n */\nexport interface SetReadOnlyResponse\n extends ConfigurationSetting,\n SyncTokenHeaderField,\n HttpResponseField<SyncTokenHeaderField> {}\n\n/**\n * Options that control how to retry failed requests.\n */\nexport interface RetryOptions {\n /**\n * The maximum number of retry attempts. Defaults to 3.\n */\n maxRetries?: number;\n\n /**\n * The maximum delay in milliseconds allowed before retrying an operation.\n */\n maxRetryDelayInMs?: number;\n}\n\n/**\n * Options used when creating a Snapshot.\n */\nexport interface CreateSnapshotOptions extends OperationOptions {\n /**\n * The amount of time to wait (in milliseconds) between subsequent requests relating to the same operation.\n */\n updateIntervalInMs?: number;\n}\n\n/**\n * Response from adding a Snapshot.\n */\nexport interface SnapshotResponse extends ConfigurationSnapshot, SyncTokenHeaderField {}\n\n/**\n * Options used when getting a Snapshot.\n */\nexport interface GetSnapshotOptions extends OperationOptions, OptionalSnapshotFields {}\n\n/**\n * Response from getting a Snapshot.\n */\nexport interface GetSnapshotResponse extends SnapshotResponse {}\n\n/**\n * Options used when updating a Snapshot.\n */\nexport interface UpdateSnapshotOptions extends OperationOptions {\n /**\n * The etag for this snapshot\n */\n etag?: string;\n}\n\n/**\n * Response from updating a Snapshot.\n */\nexport interface UpdateSnapshotResponse extends SnapshotResponse {}\n/**\n * Response from updating a Snapshot.\n */\nexport interface CreateSnapshotResponse extends SnapshotResponse {}\n\n/**\n * Fields that uniquely identify a snapshot\n */\nexport interface SnapshotInfo {\n /** The name for this snapshot */\n name: string;\n /** A list of filters used to filter the key-values included in the snapshot. */\n filters: ConfigurationSettingsFilter[];\n /** The composition type describes how the key-values within the snapshot are composed. The 'all' composition type includes all key-values. The 'group_by_key' composition type ensures there are no two key-values containing the same key. */\n compositionType?: SnapshotComposition;\n /** The amount of time, in seconds, that a snapshot will remain in the archived state before expiring. This property is only writable during the creation of a snapshot. If not specified, the default lifetime of key-value revisions will be used. */\n retentionPeriodInSeconds?: number;\n /** The tags of the snapshot. */\n tags?: { [propertyName: string]: string };\n}\n\nexport {\n ConfigurationSnapshot,\n ConfigurationSettingsFilter,\n SnapshotComposition,\n KnownSnapshotComposition,\n KnownConfigurationSnapshotStatus,\n ConfigurationSnapshotStatus,\n} from \"./generated/src\";\n"]}
@@ -14,8 +14,7 @@ describe("Authentication", () => {
14
14
  afterEach(async function () {
15
15
  await recorder.stop();
16
16
  });
17
- it.skip("token authentication works", async function () {
18
- // **TODO: Fail because of rest error**
17
+ it("token authentication works", async function () {
19
18
  if (!isNode) {
20
19
  this.skip();
21
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"auth.spec.js","sourceRoot":"","sources":["../../../test/public/auth.spec.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAEL,gCAAgC,EAChC,aAAa,GACd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,IAAI,gBAAkC,CAAC;IACvC,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,CAAC;QACrC,gBAAgB,GAAG,gCAAgC,EAAE,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,IAAI,CAAC,4BAA4B,EAAE,KAAK;QACzC,uCAAuC;QACvC,IAAI,CAAC,MAAM,EAAE;YACX,IAAI,CAAC,IAAI,EAAE,CAAC;SACb;QACD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CACvC,gBAAgB,CAAC,QAAQ,EACzB,gBAAgB,CAAC,UAAU,EAC3B,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC,CACpC,CAAC;QAEF,4DAA4D;QAC5D,uCAAuC;QACvC,MAAM,MAAM,CAAC,uBAAuB,CAAC;YACnC,GAAG,EAAE,6BAA6B,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE;YACvF,KAAK,EAAE,OAAO;SACf,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,gDAAgD,EAAE,GAAG,EAAE;IAC9D,EAAE,CAAC,wDAAwD,EAAE,GAAG,EAAE;QAChE,MAAM,CAAC,MAAM,CACX,GAAG,EAAE,CAAC,IAAI,sBAAsB,CAAC,8BAA8B,CAAC,EAChE,6HAA6H,CAC9H,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0DAA0D,EAAE,GAAG,EAAE;QAClE,MAAM,CAAC,MAAM,CACX,GAAG,EAAE,CAAC,IAAI,sBAAsB,CAAC,SAAgB,CAAC,EAClD,6HAA6H,CAC9H,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n CredsAndEndpoint,\n getTokenAuthenticationCredential,\n startRecorder,\n} from \"./utils/testHelpers\";\nimport { Recorder } from \"@azure-tools/test-recorder\";\nimport { AppConfigurationClient } from \"../../src\";\nimport { Context } from \"mocha\";\nimport { assert } from \"chai\";\nimport { isNode } from \"@azure/core-util\";\n\ndescribe(\"Authentication\", () => {\n let credsAndEndpoint: CredsAndEndpoint;\n let recorder: Recorder;\n\n beforeEach(async function (this: Context) {\n recorder = await startRecorder(this);\n credsAndEndpoint = getTokenAuthenticationCredential();\n });\n\n afterEach(async function () {\n await recorder.stop();\n });\n\n it.skip(\"token authentication works\", async function () {\n // **TODO: Fail because of rest error**\n if (!isNode) {\n this.skip();\n }\n const client = new AppConfigurationClient(\n credsAndEndpoint.endpoint,\n credsAndEndpoint.credential,\n recorder.configureClientOptions({})\n );\n\n // it doesn't matter if any data comes in so long as we were\n // able to connect and call the service\n await client.addConfigurationSetting({\n key: `token-authentication-test-${recorder.variable(\"label-1\", new Date().toString())}`,\n value: \"hello\",\n });\n });\n});\n\ndescribe(\"AppConfigurationClient constructor error cases\", () => {\n it(\"invalid connection string gives a decent error message\", () => {\n assert.throws(\n () => new AppConfigurationClient(\"an invalid connection string\"),\n /Invalid connection string\\. Valid connection strings should match the regex 'Endpoint=\\(\\.\\*\\);Id=\\(\\.\\*\\);Secret=\\(\\.\\*\\)'/\n );\n });\n\n it(\"undefined connection string gives a decent error message\", () => {\n assert.throws(\n () => new AppConfigurationClient(undefined as any),\n /Invalid connection string\\. Valid connection strings should match the regex 'Endpoint=\\(\\.\\*\\);Id=\\(\\.\\*\\);Secret=\\(\\.\\*\\)'/\n );\n });\n});\n"]}
1
+ {"version":3,"file":"auth.spec.js","sourceRoot":"","sources":["../../../test/public/auth.spec.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAEL,gCAAgC,EAChC,aAAa,GACd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,IAAI,gBAAkC,CAAC;IACvC,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC,KAAK;QACd,QAAQ,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,CAAC;QACrC,gBAAgB,GAAG,gCAAgC,EAAE,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,KAAK;QACb,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE,KAAK;QACpC,IAAI,CAAC,MAAM,EAAE;YACX,IAAI,CAAC,IAAI,EAAE,CAAC;SACb;QACD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CACvC,gBAAgB,CAAC,QAAQ,EACzB,gBAAgB,CAAC,UAAU,EAC3B,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC,CACpC,CAAC;QAEF,4DAA4D;QAC5D,uCAAuC;QACvC,MAAM,MAAM,CAAC,uBAAuB,CAAC;YACnC,GAAG,EAAE,6BAA6B,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE;YACvF,KAAK,EAAE,OAAO;SACf,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,gDAAgD,EAAE,GAAG,EAAE;IAC9D,EAAE,CAAC,wDAAwD,EAAE,GAAG,EAAE;QAChE,MAAM,CAAC,MAAM,CACX,GAAG,EAAE,CAAC,IAAI,sBAAsB,CAAC,8BAA8B,CAAC,EAChE,6HAA6H,CAC9H,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0DAA0D,EAAE,GAAG,EAAE;QAClE,MAAM,CAAC,MAAM,CACX,GAAG,EAAE,CAAC,IAAI,sBAAsB,CAAC,SAAgB,CAAC,EAClD,6HAA6H,CAC9H,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n CredsAndEndpoint,\n getTokenAuthenticationCredential,\n startRecorder,\n} from \"./utils/testHelpers\";\nimport { Recorder } from \"@azure-tools/test-recorder\";\nimport { AppConfigurationClient } from \"../../src\";\nimport { Context } from \"mocha\";\nimport { assert } from \"chai\";\nimport { isNode } from \"@azure/core-util\";\n\ndescribe(\"Authentication\", () => {\n let credsAndEndpoint: CredsAndEndpoint;\n let recorder: Recorder;\n\n beforeEach(async function (this: Context) {\n recorder = await startRecorder(this);\n credsAndEndpoint = getTokenAuthenticationCredential();\n });\n\n afterEach(async function () {\n await recorder.stop();\n });\n\n it(\"token authentication works\", async function () {\n if (!isNode) {\n this.skip();\n }\n const client = new AppConfigurationClient(\n credsAndEndpoint.endpoint,\n credsAndEndpoint.credential,\n recorder.configureClientOptions({})\n );\n\n // it doesn't matter if any data comes in so long as we were\n // able to connect and call the service\n await client.addConfigurationSetting({\n key: `token-authentication-test-${recorder.variable(\"label-1\", new Date().toString())}`,\n value: \"hello\",\n });\n });\n});\n\ndescribe(\"AppConfigurationClient constructor error cases\", () => {\n it(\"invalid connection string gives a decent error message\", () => {\n assert.throws(\n () => new AppConfigurationClient(\"an invalid connection string\"),\n /Invalid connection string\\. Valid connection strings should match the regex 'Endpoint=\\(\\.\\*\\);Id=\\(\\.\\*\\);Secret=\\(\\.\\*\\)'/\n );\n });\n\n it(\"undefined connection string gives a decent error message\", () => {\n assert.throws(\n () => new AppConfigurationClient(undefined as any),\n /Invalid connection string\\. Valid connection strings should match the regex 'Endpoint=\\(\\.\\*\\);Id=\\(\\.\\*\\);Secret=\\(\\.\\*\\)'/\n );\n });\n});\n"]}
@@ -1,5 +1,6 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT license.
3
+ import { testPollingOptions } from "@azure-tools/test-recorder";
3
4
  import { assertThrowsRestError, createAppConfigurationClientForTests, deleteKeyCompletely, startRecorder, } from "./utils/testHelpers";
4
5
  import { assert } from "chai";
5
6
  describe("etags", () => {
@@ -126,5 +127,16 @@ describe("etags", () => {
126
127
  // and now the setting isn't found
127
128
  await assertThrowsRestError(() => client.getConfigurationSetting({ key }), 404);
128
129
  });
130
+ it("archive and recover using etags", async () => {
131
+ const snapshot1 = {
132
+ name: recorder.variable("snapshot", `snapshot${Math.floor(Math.random() * 1000)}`),
133
+ retentionPeriodInSeconds: 2592000,
134
+ filters: [{ keyFilter: key, valueFilter: "some value" }],
135
+ };
136
+ const newSnapshot = await client.beginCreateSnapshotAndWait(snapshot1, testPollingOptions);
137
+ await assertThrowsRestError(() => client.archiveSnapshot(newSnapshot.name, { etag: "badEtag" }), 412);
138
+ await client.archiveSnapshot(newSnapshot.name, { etag: newSnapshot.etag });
139
+ await assertThrowsRestError(() => client.recoverSnapshot(newSnapshot.name, { etag: "badEtag" }), 412);
140
+ });
129
141
  });
130
142
  //# sourceMappingURL=etags.spec.js.map