@azure/arm-appconfiguration 3.0.0-beta.4 → 3.0.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 (42) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +1 -1
  3. package/dist/index.js +32 -4
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/configurationStoresCreateSample.js +3 -3
  8. package/dist-esm/samples-dev/configurationStoresDeleteSample.js +1 -1
  9. package/dist-esm/samples-dev/configurationStoresGetDeletedSample.js +1 -1
  10. package/dist-esm/samples-dev/configurationStoresGetSample.js +1 -1
  11. package/dist-esm/samples-dev/configurationStoresListByResourceGroupSample.js +1 -1
  12. package/dist-esm/samples-dev/configurationStoresListDeletedSample.js +1 -1
  13. package/dist-esm/samples-dev/configurationStoresListKeysSample.js +1 -1
  14. package/dist-esm/samples-dev/configurationStoresListSample.js +1 -1
  15. package/dist-esm/samples-dev/configurationStoresPurgeDeletedSample.js +1 -1
  16. package/dist-esm/samples-dev/configurationStoresRegenerateKeySample.js +1 -1
  17. package/dist-esm/samples-dev/configurationStoresUpdateSample.js +3 -3
  18. package/dist-esm/samples-dev/keyValuesCreateOrUpdateSample.js +1 -1
  19. package/dist-esm/samples-dev/keyValuesDeleteSample.js +1 -1
  20. package/dist-esm/samples-dev/keyValuesGetSample.js +1 -1
  21. package/dist-esm/samples-dev/keyValuesListByConfigurationStoreSample.js +1 -1
  22. package/dist-esm/samples-dev/operationsCheckNameAvailabilitySample.js +2 -2
  23. package/dist-esm/samples-dev/operationsRegionalCheckNameAvailabilitySample.js +2 -2
  24. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
  25. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  26. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  27. package/dist-esm/samples-dev/privateEndpointConnectionsListByConfigurationStoreSample.js +1 -1
  28. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
  29. package/dist-esm/samples-dev/privateLinkResourcesListByConfigurationStoreSample.js +1 -1
  30. package/dist-esm/src/appConfigurationManagementClient.d.ts +2 -0
  31. package/dist-esm/src/appConfigurationManagementClient.d.ts.map +1 -1
  32. package/dist-esm/src/appConfigurationManagementClient.js +31 -2
  33. package/dist-esm/src/appConfigurationManagementClient.js.map +1 -1
  34. package/dist-esm/src/models/parameters.js +1 -1
  35. package/dist-esm/src/models/parameters.js.map +1 -1
  36. package/dist-esm/test/sampleTest.js +11 -13
  37. package/dist-esm/test/sampleTest.js.map +1 -1
  38. package/package.json +9 -5
  39. package/src/appConfigurationManagementClient.ts +36 -2
  40. package/src/models/parameters.ts +1 -1
  41. package/types/arm-appconfiguration.d.ts +2 -0
  42. package/types/tsdoc-metadata.json +1 -1
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Lists the access key for the specified configuration store.
15
15
  *
16
16
  * @summary Lists the access key for the specified configuration store.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresListKeys.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresListKeys.json
18
18
  */
19
19
  function configurationStoresListKeys() {
20
20
  var e_1, _a;
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Lists the configuration stores for a given subscription.
15
15
  *
16
16
  * @summary Lists the configuration stores for a given subscription.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresList.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresList.json
18
18
  */
19
19
  function configurationStoresList() {
20
20
  var e_1, _a;
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Permanently deletes the specified configuration store.
15
15
  *
16
16
  * @summary Permanently deletes the specified configuration store.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/DeletedConfigurationStoresPurge.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/DeletedConfigurationStoresPurge.json
18
18
  */
19
19
  function purgeADeletedConfigurationStore() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Regenerates an access key for the specified configuration store.
15
15
  *
16
16
  * @summary Regenerates an access key for the specified configuration store.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresRegenerateKey.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresRegenerateKey.json
18
18
  */
19
19
  function configurationStoresRegenerateKey() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Updates a configuration store with the specified parameters.
15
15
  *
16
16
  * @summary Updates a configuration store with the specified parameters.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresUpdate.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresUpdate.json
18
18
  */
19
19
  function configurationStoresUpdate() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -36,7 +36,7 @@ configurationStoresUpdate().catch(console.error);
36
36
  * This sample demonstrates how to Updates a configuration store with the specified parameters.
37
37
  *
38
38
  * @summary Updates a configuration store with the specified parameters.
39
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresUpdateDisableLocalAuth.json
39
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json
40
40
  */
41
41
  function configurationStoresUpdateDisableLocalAuth() {
42
42
  return __awaiter(this, void 0, void 0, function* () {
@@ -58,7 +58,7 @@ configurationStoresUpdateDisableLocalAuth().catch(console.error);
58
58
  * This sample demonstrates how to Updates a configuration store with the specified parameters.
59
59
  *
60
60
  * @summary Updates a configuration store with the specified parameters.
61
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresUpdateWithIdentity.json
61
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresUpdateWithIdentity.json
62
62
  */
63
63
  function configurationStoresUpdateWithIdentity() {
64
64
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Creates a key-value.
15
15
  *
16
16
  * @summary Creates a key-value.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresCreateKeyValue.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresCreateKeyValue.json
18
18
  */
19
19
  function keyValuesCreateOrUpdate() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Deletes a key-value.
15
15
  *
16
16
  * @summary Deletes a key-value.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresDeleteKeyValue.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresDeleteKeyValue.json
18
18
  */
19
19
  function keyValuesDelete() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Gets the properties of the specified key-value.
15
15
  *
16
16
  * @summary Gets the properties of the specified key-value.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresGetKeyValue.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresGetKeyValue.json
18
18
  */
19
19
  function keyValuesGet() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Lists the key-values for a given configuration store.
15
15
  *
16
16
  * @summary Lists the key-values for a given configuration store.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresListKeyValues.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresListKeyValues.json
18
18
  */
19
19
  function keyValuesListByConfigurationStore() {
20
20
  var e_1, _a;
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Checks whether the configuration store name is available for use.
15
15
  *
16
16
  * @summary Checks whether the configuration store name is available for use.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/CheckNameAvailable.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/CheckNameAvailable.json
18
18
  */
19
19
  function configurationStoresCheckNameAvailable() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -34,7 +34,7 @@ configurationStoresCheckNameAvailable().catch(console.error);
34
34
  * This sample demonstrates how to Checks whether the configuration store name is available for use.
35
35
  *
36
36
  * @summary Checks whether the configuration store name is available for use.
37
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/CheckNameNotAvailable.json
37
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/CheckNameNotAvailable.json
38
38
  */
39
39
  function configurationStoresCheckNameNotAvailable() {
40
40
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Checks whether the configuration store name is available for use.
15
15
  *
16
16
  * @summary Checks whether the configuration store name is available for use.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/RegionalCheckNameAvailable.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/RegionalCheckNameAvailable.json
18
18
  */
19
19
  function configurationStoresCheckNameAvailable() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -35,7 +35,7 @@ configurationStoresCheckNameAvailable().catch(console.error);
35
35
  * This sample demonstrates how to Checks whether the configuration store name is available for use.
36
36
  *
37
37
  * @summary Checks whether the configuration store name is available for use.
38
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/RegionalCheckNameNotAvailable.json
38
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/RegionalCheckNameNotAvailable.json
39
39
  */
40
40
  function configurationStoresCheckNameNotAvailable() {
41
41
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Update the state of the specified private endpoint connection associated with the configuration store.
15
15
  *
16
16
  * @summary Update the state of the specified private endpoint connection associated with the configuration store.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresCreatePrivateEndpointConnection.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresCreatePrivateEndpointConnection.json
18
18
  */
19
19
  function privateEndpointConnectionCreateOrUpdate() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Deletes a private endpoint connection.
15
15
  *
16
16
  * @summary Deletes a private endpoint connection.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresDeletePrivateEndpointConnection.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json
18
18
  */
19
19
  function privateEndpointConnectionsDelete() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Gets the specified private endpoint connection associated with the configuration store.
15
15
  *
16
16
  * @summary Gets the specified private endpoint connection associated with the configuration store.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresGetPrivateEndpointConnection.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json
18
18
  */
19
19
  function privateEndpointConnectionGetConnection() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Lists all private endpoint connections for a configuration store.
15
15
  *
16
16
  * @summary Lists all private endpoint connections for a configuration store.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresListPrivateEndpointConnections.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresListPrivateEndpointConnections.json
18
18
  */
19
19
  function privateEndpointConnectionList() {
20
20
  var e_1, _a;
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Gets a private link resource that need to be created for a configuration store.
15
15
  *
16
16
  * @summary Gets a private link resource that need to be created for a configuration store.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/PrivateLinkResourceGet.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/PrivateLinkResourceGet.json
18
18
  */
19
19
  function privateLinkResourcesGet() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
14
14
  * This sample demonstrates how to Gets the private link resources that need to be created for a configuration store.
15
15
  *
16
16
  * @summary Gets the private link resources that need to be created for a configuration store.
17
- * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/PrivateLinkResourcesListByConfigurationStore.json
17
+ * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/PrivateLinkResourcesListByConfigurationStore.json
18
18
  */
19
19
  function privateLinkResourcesListGroupIds() {
20
20
  var e_1, _a;
@@ -13,6 +13,8 @@ export declare class AppConfigurationManagementClient extends coreClient.Service
13
13
  * @param options The parameter options
14
14
  */
15
15
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AppConfigurationManagementClientOptionalParams);
16
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
17
+ private addCustomApiVersionPolicy;
16
18
  configurationStores: ConfigurationStores;
17
19
  operations: Operations;
18
20
  privateEndpointConnections: PrivateEndpointConnections;
@@ -1 +1 @@
1
- {"version":3,"file":"appConfigurationManagementClient.d.ts","sourceRoot":"","sources":["../../src/appConfigurationManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAQ7C,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,0BAA0B,EAC1B,oBAAoB,EACpB,SAAS,EACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,8CAA8C,EAAE,MAAM,UAAU,CAAC;AAE1E,qBAAa,gCAAiC,SAAQ,UAAU,CAAC,aAAa;IAC5E,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,8CAA8C;IAyE1D,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,UAAU,EAAE,UAAU,CAAC;IACvB,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,SAAS,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"appConfigurationManagementClient.d.ts","sourceRoot":"","sources":["../../src/appConfigurationManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAQ7C,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,0BAA0B,EAC1B,oBAAoB,EACpB,SAAS,EACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,8CAA8C,EAAE,MAAM,UAAU,CAAC;AAE1E,qBAAa,gCAAiC,SAAQ,UAAU,CAAC,aAAa;IAC5E,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,8CAA8C;IA0E1D,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,UAAU,EAAE,UAAU,CAAC;IACvB,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,SAAS,EAAE,SAAS,CAAC;CACtB"}
@@ -5,6 +5,7 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
+ import { __awaiter } from "tslib";
8
9
  import * as coreClient from "@azure/core-client";
9
10
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
11
  import { ConfigurationStoresImpl, OperationsImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, KeyValuesImpl } from "./operations";
@@ -31,7 +32,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
31
32
  requestContentType: "application/json; charset=utf-8",
32
33
  credential: credentials
33
34
  };
34
- const packageDetails = `azsdk-js-arm-appconfiguration/3.0.0-beta.4`;
35
+ const packageDetails = `azsdk-js-arm-appconfiguration/3.0.0`;
35
36
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
37
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
38
  : `${packageDetails}`;
@@ -62,12 +63,40 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
62
63
  this.subscriptionId = subscriptionId;
63
64
  // Assigning values to Constant parameters
64
65
  this.$host = options.$host || "https://management.azure.com";
65
- this.apiVersion = options.apiVersion || "2021-10-01-preview";
66
+ this.apiVersion = options.apiVersion || "2022-05-01";
66
67
  this.configurationStores = new ConfigurationStoresImpl(this);
67
68
  this.operations = new OperationsImpl(this);
68
69
  this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
69
70
  this.privateLinkResources = new PrivateLinkResourcesImpl(this);
70
71
  this.keyValues = new KeyValuesImpl(this);
72
+ this.addCustomApiVersionPolicy(options.apiVersion);
73
+ }
74
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
75
+ addCustomApiVersionPolicy(apiVersion) {
76
+ if (!apiVersion) {
77
+ return;
78
+ }
79
+ const apiVersionPolicy = {
80
+ name: "CustomApiVersionPolicy",
81
+ sendRequest(request, next) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ const param = request.url.split("?");
84
+ if (param.length > 1) {
85
+ const newParams = param[1].split("&").map((item) => {
86
+ if (item.indexOf("api-version") > -1) {
87
+ return item.replace(/(?<==).*$/, apiVersion);
88
+ }
89
+ else {
90
+ return item;
91
+ }
92
+ });
93
+ request.url = param[0] + "?" + newParams.join("&");
94
+ }
95
+ return next(request);
96
+ });
97
+ }
98
+ };
99
+ this.pipeline.addPolicy(apiVersionPolicy);
71
100
  }
72
101
  }
73
102
  //# sourceMappingURL=appConfigurationManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"appConfigurationManagementClient.js","sourceRoot":"","sources":["../../src/appConfigurationManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,8BAA8B,EAC9B,wBAAwB,EACxB,aAAa,EACd,MAAM,cAAc,CAAC;AAUtB,MAAM,OAAO,gCAAiC,SAAQ,UAAU,CAAC,aAAa;IAK5E;;;;;OAKG;I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ChE,CAAC,cAAc,EAAE,EAAE,CACjB,cAAc,CAAC,IAAI;gBACnB,gBAAgB,CAAC,mCAAmC,CACvD,CAAC;YACF,IAAI,CAAC,oCAAoC,EAAE;gBACzC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;oBACzB,IAAI,EAAE,gBAAgB,CAAC,mCAAmC;iBAC3D,CAAC,CAAC;gBACH,IAAI,CAAC,QAAQ,CAAC,SAAS,CACrB,gBAAgB,CAAC,+BAA+B,CAAC;oBAC/C,MAAM,EAAE,GAAG,mBAAmB,CAAC,OAAO,WAAW;oBACjD,kBAAkB,EAAE;wBAClB,2BAA2B,EACzB,UAAU,CAAC,gCAAgC;qBAC9C;iBACF,CAAC,CACH,CAAC;aACH;SACF;QACD,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,oBAAoB,CAAC;QAC7D,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;CAOF"}
1
+ {"version":3,"file":"appConfigurationManagementClient.js","sourceRoot":"","sources":["../../src/appConfigurationManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA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AAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YACxB,WAAW,CACf,OAAwB,EACxB,IAAiB;;oBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;wBACpB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;4BACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE;gCACpC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;6BAC9C;iCAAM;gCACL,OAAO,IAAI,CAAC;6BACb;wBACH,CAAC,CAAC,CAAC;wBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;qBACpD;oBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;gBACvB,CAAC;aAAA;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAOF"}
@@ -41,7 +41,7 @@ export const subscriptionId = {
41
41
  export const apiVersion = {
42
42
  parameterPath: "apiVersion",
43
43
  mapper: {
44
- defaultValue: "2021-10-01-preview",
44
+ defaultValue: "2022-05-01",
45
45
  isConstant: true,
46
46
  serializedName: "api-version",
47
47
  type: {
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAA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;IAChD,MAAM,EAAE,cAAc;CACvB,CAAC"}
@@ -6,24 +6,22 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import { __awaiter } from "tslib";
9
- import { record } from "@azure-tools/test-recorder";
10
- const recorderEnvSetup = {
11
- replaceableVariables: {
12
- AZURE_CLIENT_ID: "azure_client_id",
13
- AZURE_CLIENT_SECRET: "azure_client_secret",
14
- AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
15
- SUBSCRIPTION_ID: "azure_subscription_id"
16
- },
17
- customizationsOnRecordings: [
18
- (recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
19
- ],
20
- queryParametersToSkip: []
9
+ import { Recorder } from "@azure-tools/test-recorder";
10
+ const replaceableVariables = {
11
+ AZURE_CLIENT_ID: "azure_client_id",
12
+ AZURE_CLIENT_SECRET: "azure_client_secret",
13
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
14
+ SUBSCRIPTION_ID: "azure_subscription_id"
15
+ };
16
+ const recorderOptions = {
17
+ envSetupForPlayback: replaceableVariables
21
18
  };
22
19
  describe("My test", () => {
23
20
  let recorder;
24
21
  beforeEach(function () {
25
22
  return __awaiter(this, void 0, void 0, function* () {
26
- recorder = record(this, recorderEnvSetup);
23
+ recorder = new Recorder(this.currentTest);
24
+ yield recorder.start(recorderOptions);
27
25
  });
28
26
  });
29
27
  afterEach(function () {
@@ -1 +1 @@
1
- {"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAEL,MAAM,EAGP,MAAM,4BAA4B,CAAC;AAGpC,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;Q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,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for AppConfigurationManagementClient.",
6
- "version": "3.0.0-beta.4",
6
+ "version": "3.0.0",
7
7
  "engines": {
8
8
  "node": ">=12.0.0"
9
9
  },
@@ -28,7 +28,7 @@
28
28
  "module": "./dist-esm/src/index.js",
29
29
  "types": "./types/arm-appconfiguration.d.ts",
30
30
  "devDependencies": {
31
- "@microsoft/api-extractor": "^7.18.11",
31
+ "@microsoft/api-extractor": "7.18.11",
32
32
  "@rollup/plugin-commonjs": "^21.0.1",
33
33
  "@rollup/plugin-json": "^4.1.0",
34
34
  "@rollup/plugin-multi-entry": "^4.1.0",
@@ -40,9 +40,13 @@
40
40
  "uglify-js": "^3.4.9",
41
41
  "rimraf": "^3.0.0",
42
42
  "@azure/identity": "^2.0.1",
43
- "@azure-tools/test-recorder": "^1.0.0",
43
+ "@azure-tools/test-recorder": "^2.0.0",
44
+ "@azure-tools/test-credential": "^1.0.0",
44
45
  "mocha": "^7.1.1",
45
- "cross-env": "^7.0.2"
46
+ "@types/chai": "^4.2.8",
47
+ "chai": "^4.2.0",
48
+ "cross-env": "^7.0.2",
49
+ "@azure/dev-tool": "^1.0.0"
46
50
  },
47
51
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appconfiguration/arm-appconfiguration",
48
52
  "repository": {
@@ -93,7 +97,7 @@
93
97
  "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
94
98
  "unit-test:browser": "echo skipped",
95
99
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
96
- "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
100
+ "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
97
101
  "integration-test:browser": "echo skipped",
98
102
  "docs": "echo skipped"
99
103
  },
@@ -8,6 +8,11 @@
8
8
 
9
9
  import * as coreClient from "@azure/core-client";
10
10
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
+ import {
12
+ PipelineRequest,
13
+ PipelineResponse,
14
+ SendRequest
15
+ } from "@azure/core-rest-pipeline";
11
16
  import * as coreAuth from "@azure/core-auth";
12
17
  import {
13
18
  ConfigurationStoresImpl,
@@ -57,7 +62,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
57
62
  credential: credentials
58
63
  };
59
64
 
60
- const packageDetails = `azsdk-js-arm-appconfiguration/3.0.0-beta.4`;
65
+ const packageDetails = `azsdk-js-arm-appconfiguration/3.0.0`;
61
66
  const userAgentPrefix =
62
67
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
63
68
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -104,12 +109,41 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
104
109
 
105
110
  // Assigning values to Constant parameters
106
111
  this.$host = options.$host || "https://management.azure.com";
107
- this.apiVersion = options.apiVersion || "2021-10-01-preview";
112
+ this.apiVersion = options.apiVersion || "2022-05-01";
108
113
  this.configurationStores = new ConfigurationStoresImpl(this);
109
114
  this.operations = new OperationsImpl(this);
110
115
  this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
111
116
  this.privateLinkResources = new PrivateLinkResourcesImpl(this);
112
117
  this.keyValues = new KeyValuesImpl(this);
118
+ this.addCustomApiVersionPolicy(options.apiVersion);
119
+ }
120
+
121
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
122
+ private addCustomApiVersionPolicy(apiVersion?: string) {
123
+ if (!apiVersion) {
124
+ return;
125
+ }
126
+ const apiVersionPolicy = {
127
+ name: "CustomApiVersionPolicy",
128
+ async sendRequest(
129
+ request: PipelineRequest,
130
+ next: SendRequest
131
+ ): Promise<PipelineResponse> {
132
+ const param = request.url.split("?");
133
+ if (param.length > 1) {
134
+ const newParams = param[1].split("&").map((item) => {
135
+ if (item.indexOf("api-version") > -1) {
136
+ return item.replace(/(?<==).*$/, apiVersion);
137
+ } else {
138
+ return item;
139
+ }
140
+ });
141
+ request.url = param[0] + "?" + newParams.join("&");
142
+ }
143
+ return next(request);
144
+ }
145
+ };
146
+ this.pipeline.addPolicy(apiVersionPolicy);
113
147
  }
114
148
 
115
149
  configurationStores: ConfigurationStores;
@@ -58,7 +58,7 @@ export const subscriptionId: OperationURLParameter = {
58
58
  export const apiVersion: OperationQueryParameter = {
59
59
  parameterPath: "apiVersion",
60
60
  mapper: {
61
- defaultValue: "2021-10-01-preview",
61
+ defaultValue: "2022-05-01",
62
62
  isConstant: true,
63
63
  serializedName: "api-version",
64
64
  type: {
@@ -67,6 +67,8 @@ export declare class AppConfigurationManagementClient extends coreClient.Service
67
67
  * @param options The parameter options
68
68
  */
69
69
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AppConfigurationManagementClientOptionalParams);
70
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
71
+ private addCustomApiVersionPolicy;
70
72
  configurationStores: ConfigurationStores;
71
73
  operations: Operations;
72
74
  privateEndpointConnections: PrivateEndpointConnections;
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.22.1"
8
+ "packageVersion": "7.18.11"
9
9
  }
10
10
  ]
11
11
  }