@azure/arm-appconfiguration 1.2.0 → 3.0.0-beta.1

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 (169) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +72 -75
  4. package/dist/index.js +3105 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/appConfigurationManagementClient.d.ts +22 -0
  9. package/dist-esm/src/appConfigurationManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/appConfigurationManagementClient.js +55 -0
  11. package/dist-esm/src/appConfigurationManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +826 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +59 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +38 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +588 -313
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +20 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +162 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/configurationStores.d.ts +139 -0
  33. package/dist-esm/src/operations/configurationStores.d.ts.map +1 -0
  34. package/dist-esm/src/operations/configurationStores.js +655 -0
  35. package/dist-esm/src/operations/configurationStores.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +4 -5
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/keyValues.d.ts +76 -0
  41. package/dist-esm/src/operations/keyValues.d.ts.map +1 -0
  42. package/dist-esm/src/operations/keyValues.js +284 -0
  43. package/dist-esm/src/operations/keyValues.js.map +1 -0
  44. package/dist-esm/src/operations/operations.d.ts +39 -0
  45. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/operations.js +147 -0
  47. package/dist-esm/src/operations/operations.js.map +1 -0
  48. package/dist-esm/src/operations/privateEndpointConnections.d.ts +84 -0
  49. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  50. package/dist-esm/src/operations/privateEndpointConnections.js +350 -0
  51. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  52. package/dist-esm/src/operations/privateLinkResources.d.ts +47 -0
  53. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  54. package/dist-esm/src/operations/privateLinkResources.js +170 -0
  55. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/configurationStores.d.ts +86 -0
  57. package/dist-esm/src/operationsInterfaces/configurationStores.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/configurationStores.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/configurationStores.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  61. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  63. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/keyValues.d.ts +50 -0
  65. package/dist-esm/src/operationsInterfaces/keyValues.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/keyValues.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/keyValues.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/operations.d.ts +18 -0
  69. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +58 -0
  73. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
  77. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  80. package/dist-esm/test/sampleTest.d.ts +2 -0
  81. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  82. package/dist-esm/test/sampleTest.js +40 -0
  83. package/dist-esm/test/sampleTest.js.map +1 -0
  84. package/package.json +65 -31
  85. package/review/arm-appconfiguration.api.md +665 -0
  86. package/rollup.config.js +181 -30
  87. package/src/appConfigurationManagementClient.ts +82 -35
  88. package/src/index.ts +12 -0
  89. package/src/lroImpl.ts +34 -0
  90. package/src/models/index.ts +680 -893
  91. package/src/models/mappers.ts +657 -367
  92. package/src/models/parameters.ts +126 -44
  93. package/src/operations/configurationStores.ts +657 -495
  94. package/src/operations/index.ts +4 -5
  95. package/src/operations/keyValues.ts +396 -0
  96. package/src/operations/operations.ts +113 -123
  97. package/src/operations/privateEndpointConnections.ts +350 -186
  98. package/src/operations/privateLinkResources.ts +162 -126
  99. package/src/operationsInterfaces/configurationStores.ts +168 -0
  100. package/src/operationsInterfaces/index.ts +13 -0
  101. package/src/operationsInterfaces/keyValues.ts +91 -0
  102. package/src/operationsInterfaces/operations.ts +38 -0
  103. package/src/operationsInterfaces/privateEndpointConnections.ts +111 -0
  104. package/src/operationsInterfaces/privateLinkResources.ts +44 -0
  105. package/tsconfig.json +3 -3
  106. package/types/arm-appconfiguration.d.ts +1171 -0
  107. package/types/tsdoc-metadata.json +11 -0
  108. package/dist/arm-appconfiguration.js +0 -2213
  109. package/dist/arm-appconfiguration.js.map +0 -1
  110. package/dist/arm-appconfiguration.min.js +0 -1
  111. package/dist/arm-appconfiguration.min.js.map +0 -1
  112. package/esm/appConfigurationManagementClient.d.ts +0 -21
  113. package/esm/appConfigurationManagementClient.d.ts.map +0 -1
  114. package/esm/appConfigurationManagementClient.js +0 -36
  115. package/esm/appConfigurationManagementClient.js.map +0 -1
  116. package/esm/appConfigurationManagementClientContext.d.ts +0 -16
  117. package/esm/appConfigurationManagementClientContext.d.ts.map +0 -1
  118. package/esm/appConfigurationManagementClientContext.js +0 -56
  119. package/esm/appConfigurationManagementClientContext.js.map +0 -1
  120. package/esm/models/configurationStoresMappers.d.ts +0 -2
  121. package/esm/models/configurationStoresMappers.d.ts.map +0 -1
  122. package/esm/models/configurationStoresMappers.js +0 -9
  123. package/esm/models/configurationStoresMappers.js.map +0 -1
  124. package/esm/models/index.d.ts +0 -1073
  125. package/esm/models/index.d.ts.map +0 -1
  126. package/esm/models/index.js +0 -8
  127. package/esm/models/index.js.map +0 -1
  128. package/esm/models/mappers.d.ts +0 -31
  129. package/esm/models/mappers.d.ts.map +0 -1
  130. package/esm/models/mappers.js.map +0 -1
  131. package/esm/models/operationsMappers.d.ts +0 -2
  132. package/esm/models/operationsMappers.d.ts.map +0 -1
  133. package/esm/models/operationsMappers.js +0 -9
  134. package/esm/models/operationsMappers.js.map +0 -1
  135. package/esm/models/parameters.d.ts +0 -11
  136. package/esm/models/parameters.d.ts.map +0 -1
  137. package/esm/models/parameters.js +0 -108
  138. package/esm/models/parameters.js.map +0 -1
  139. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  140. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  141. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  142. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  143. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  144. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  145. package/esm/models/privateLinkResourcesMappers.js +0 -9
  146. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  147. package/esm/operations/configurationStores.d.ts +0 -243
  148. package/esm/operations/configurationStores.d.ts.map +0 -1
  149. package/esm/operations/configurationStores.js +0 -466
  150. package/esm/operations/configurationStores.js.map +0 -1
  151. package/esm/operations/index.d.ts.map +0 -1
  152. package/esm/operations/index.js.map +0 -1
  153. package/esm/operations/operations.d.ts +0 -67
  154. package/esm/operations/operations.d.ts.map +0 -1
  155. package/esm/operations/operations.js +0 -111
  156. package/esm/operations/operations.js.map +0 -1
  157. package/esm/operations/privateEndpointConnections.d.ts +0 -117
  158. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  159. package/esm/operations/privateEndpointConnections.js +0 -236
  160. package/esm/operations/privateEndpointConnections.js.map +0 -1
  161. package/esm/operations/privateLinkResources.d.ts +0 -76
  162. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  163. package/esm/operations/privateLinkResources.js +0 -117
  164. package/esm/operations/privateLinkResources.js.map +0 -1
  165. package/src/appConfigurationManagementClientContext.ts +0 -62
  166. package/src/models/configurationStoresMappers.ts +0 -30
  167. package/src/models/operationsMappers.ts +0 -16
  168. package/src/models/privateEndpointConnectionsMappers.ts +0 -24
  169. package/src/models/privateLinkResourcesMappers.ts +0 -13
@@ -2,4 +2,5 @@ export * from "./configurationStores";
2
2
  export * from "./operations";
3
3
  export * from "./privateEndpointConnections";
4
4
  export * from "./privateLinkResources";
5
+ export * from "./keyValues";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC"}
@@ -1,14 +1,13 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
  export * from "./configurationStores";
11
9
  export * from "./operations";
12
10
  export * from "./privateEndpointConnections";
13
11
  export * from "./privateLinkResources";
12
+ export * from "./keyValues";
14
13
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,76 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { KeyValues } from "../operationsInterfaces";
3
+ import { AppConfigurationManagementClient } from "../appConfigurationManagementClient";
4
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
5
+ import { KeyValue, KeyValuesListByConfigurationStoreOptionalParams, KeyValuesGetOptionalParams, KeyValuesGetResponse, KeyValuesCreateOrUpdateOptionalParams, KeyValuesCreateOrUpdateResponse, KeyValuesDeleteOptionalParams } from "../models";
6
+ /** Class containing KeyValues operations. */
7
+ export declare class KeyValuesImpl implements KeyValues {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class KeyValues class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: AppConfigurationManagementClient);
14
+ /**
15
+ * Lists the key-values for a given configuration store.
16
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
17
+ * @param configStoreName The name of the configuration store.
18
+ * @param options The options parameters.
19
+ */
20
+ listByConfigurationStore(resourceGroupName: string, configStoreName: string, options?: KeyValuesListByConfigurationStoreOptionalParams): PagedAsyncIterableIterator<KeyValue>;
21
+ private listByConfigurationStorePagingPage;
22
+ private listByConfigurationStorePagingAll;
23
+ /**
24
+ * Lists the key-values for a given configuration store.
25
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
26
+ * @param configStoreName The name of the configuration store.
27
+ * @param options The options parameters.
28
+ */
29
+ private _listByConfigurationStore;
30
+ /**
31
+ * Gets the properties of the specified key-value.
32
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
33
+ * @param configStoreName The name of the configuration store.
34
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
35
+ * character. Label is optional.
36
+ * @param options The options parameters.
37
+ */
38
+ get(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: KeyValuesGetOptionalParams): Promise<KeyValuesGetResponse>;
39
+ /**
40
+ * Creates a key-value.
41
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
42
+ * @param configStoreName The name of the configuration store.
43
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
44
+ * character. Label is optional.
45
+ * @param options The options parameters.
46
+ */
47
+ createOrUpdate(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: KeyValuesCreateOrUpdateOptionalParams): Promise<KeyValuesCreateOrUpdateResponse>;
48
+ /**
49
+ * Deletes a key-value.
50
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
51
+ * @param configStoreName The name of the configuration store.
52
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
53
+ * character. Label is optional.
54
+ * @param options The options parameters.
55
+ */
56
+ beginDelete(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: KeyValuesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
57
+ /**
58
+ * Deletes a key-value.
59
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
60
+ * @param configStoreName The name of the configuration store.
61
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
62
+ * character. Label is optional.
63
+ * @param options The options parameters.
64
+ */
65
+ beginDeleteAndWait(resourceGroupName: string, configStoreName: string, keyValueName: string, options?: KeyValuesDeleteOptionalParams): Promise<void>;
66
+ /**
67
+ * ListByConfigurationStoreNext
68
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
69
+ * @param configStoreName The name of the configuration store.
70
+ * @param nextLink The nextLink from the previous successful call to the ListByConfigurationStore
71
+ * method.
72
+ * @param options The options parameters.
73
+ */
74
+ private _listByConfigurationStoreNext;
75
+ }
76
+ //# sourceMappingURL=keyValues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyValues.d.ts","sourceRoot":"","sources":["../../../src/operations/keyValues.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,QAAQ,EAER,+CAA+C,EAE/C,0BAA0B,EAC1B,oBAAoB,EACpB,qCAAqC,EACrC,+BAA+B,EAC/B,6BAA6B,EAE9B,MAAM,WAAW,CAAC;AAGnB,6CAA6C;AAC7C,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmC;IAE1D;;;OAGG;gBACS,MAAM,EAAE,gCAAgC;IAIpD;;;;;OAKG;IACI,wBAAwB,CAC7B,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,+CAA+C,GACxD,0BAA0B,CAAC,QAAQ,CAAC;YAuBxB,kCAAkC;YAwBlC,iCAAiC;IAchD;;;;;OAKG;IACH,OAAO,CAAC,yBAAyB;IAWjC;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC;IAOhC;;;;;;;OAOG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;IAO3C;;;;;;;OAOG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAmDtD;;;;;;;OAOG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,IAAI,CAAC;IAUhB;;;;;;;OAOG;IACH,OAAO,CAAC,6BAA6B;CAWtC"}
@@ -0,0 +1,284 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing KeyValues operations. */
16
+ export class KeyValuesImpl {
17
+ /**
18
+ * Initialize a new instance of the class KeyValues class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Lists the key-values for a given configuration store.
26
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
27
+ * @param configStoreName The name of the configuration store.
28
+ * @param options The options parameters.
29
+ */
30
+ listByConfigurationStore(resourceGroupName, configStoreName, options) {
31
+ const iter = this.listByConfigurationStorePagingAll(resourceGroupName, configStoreName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options);
41
+ }
42
+ };
43
+ }
44
+ listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options) {
45
+ return __asyncGenerator(this, arguments, function* listByConfigurationStorePagingPage_1() {
46
+ let result = yield __await(this._listByConfigurationStore(resourceGroupName, configStoreName, options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listByConfigurationStoreNext(resourceGroupName, configStoreName, continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listByConfigurationStorePagingAll(resourceGroupName, configStoreName, options) {
57
+ return __asyncGenerator(this, arguments, function* listByConfigurationStorePagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
61
+ const page = _c.value;
62
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
+ }
64
+ }
65
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
+ finally {
67
+ try {
68
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
69
+ }
70
+ finally { if (e_1) throw e_1.error; }
71
+ }
72
+ });
73
+ }
74
+ /**
75
+ * Lists the key-values for a given configuration store.
76
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
77
+ * @param configStoreName The name of the configuration store.
78
+ * @param options The options parameters.
79
+ */
80
+ _listByConfigurationStore(resourceGroupName, configStoreName, options) {
81
+ return this.client.sendOperationRequest({ resourceGroupName, configStoreName, options }, listByConfigurationStoreOperationSpec);
82
+ }
83
+ /**
84
+ * Gets the properties of the specified key-value.
85
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
86
+ * @param configStoreName The name of the configuration store.
87
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
88
+ * character. Label is optional.
89
+ * @param options The options parameters.
90
+ */
91
+ get(resourceGroupName, configStoreName, keyValueName, options) {
92
+ return this.client.sendOperationRequest({ resourceGroupName, configStoreName, keyValueName, options }, getOperationSpec);
93
+ }
94
+ /**
95
+ * Creates a key-value.
96
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
97
+ * @param configStoreName The name of the configuration store.
98
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
99
+ * character. Label is optional.
100
+ * @param options The options parameters.
101
+ */
102
+ createOrUpdate(resourceGroupName, configStoreName, keyValueName, options) {
103
+ return this.client.sendOperationRequest({ resourceGroupName, configStoreName, keyValueName, options }, createOrUpdateOperationSpec);
104
+ }
105
+ /**
106
+ * Deletes a key-value.
107
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
108
+ * @param configStoreName The name of the configuration store.
109
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
110
+ * character. Label is optional.
111
+ * @param options The options parameters.
112
+ */
113
+ beginDelete(resourceGroupName, configStoreName, keyValueName, options) {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
116
+ return this.client.sendOperationRequest(args, spec);
117
+ });
118
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
119
+ var _a;
120
+ let currentRawResponse = undefined;
121
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
122
+ const callback = (rawResponse, flatResponse) => {
123
+ currentRawResponse = rawResponse;
124
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
125
+ };
126
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
127
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
128
+ return {
129
+ flatResponse,
130
+ rawResponse: {
131
+ statusCode: currentRawResponse.status,
132
+ body: currentRawResponse.parsedBody,
133
+ headers: currentRawResponse.headers.toJSON()
134
+ }
135
+ };
136
+ });
137
+ const lro = new LroImpl(sendOperation, { resourceGroupName, configStoreName, keyValueName, options }, deleteOperationSpec);
138
+ return new LroEngine(lro, {
139
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
140
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
141
+ });
142
+ });
143
+ }
144
+ /**
145
+ * Deletes a key-value.
146
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
147
+ * @param configStoreName The name of the configuration store.
148
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
149
+ * character. Label is optional.
150
+ * @param options The options parameters.
151
+ */
152
+ beginDeleteAndWait(resourceGroupName, configStoreName, keyValueName, options) {
153
+ return __awaiter(this, void 0, void 0, function* () {
154
+ const poller = yield this.beginDelete(resourceGroupName, configStoreName, keyValueName, options);
155
+ return poller.pollUntilDone();
156
+ });
157
+ }
158
+ /**
159
+ * ListByConfigurationStoreNext
160
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
161
+ * @param configStoreName The name of the configuration store.
162
+ * @param nextLink The nextLink from the previous successful call to the ListByConfigurationStore
163
+ * method.
164
+ * @param options The options parameters.
165
+ */
166
+ _listByConfigurationStoreNext(resourceGroupName, configStoreName, nextLink, options) {
167
+ return this.client.sendOperationRequest({ resourceGroupName, configStoreName, nextLink, options }, listByConfigurationStoreNextOperationSpec);
168
+ }
169
+ }
170
+ // Operation Specifications
171
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
172
+ const listByConfigurationStoreOperationSpec = {
173
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues",
174
+ httpMethod: "GET",
175
+ responses: {
176
+ 200: {
177
+ bodyMapper: Mappers.KeyValueListResult
178
+ },
179
+ default: {
180
+ bodyMapper: Mappers.ErrorResponse
181
+ }
182
+ },
183
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken],
184
+ urlParameters: [
185
+ Parameters.$host,
186
+ Parameters.subscriptionId,
187
+ Parameters.resourceGroupName,
188
+ Parameters.configStoreName
189
+ ],
190
+ headerParameters: [Parameters.accept],
191
+ serializer
192
+ };
193
+ const getOperationSpec = {
194
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}",
195
+ httpMethod: "GET",
196
+ responses: {
197
+ 200: {
198
+ bodyMapper: Mappers.KeyValue
199
+ },
200
+ default: {
201
+ bodyMapper: Mappers.ErrorResponse
202
+ }
203
+ },
204
+ queryParameters: [Parameters.apiVersion],
205
+ urlParameters: [
206
+ Parameters.$host,
207
+ Parameters.subscriptionId,
208
+ Parameters.resourceGroupName,
209
+ Parameters.configStoreName,
210
+ Parameters.keyValueName
211
+ ],
212
+ headerParameters: [Parameters.accept],
213
+ serializer
214
+ };
215
+ const createOrUpdateOperationSpec = {
216
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}",
217
+ httpMethod: "PUT",
218
+ responses: {
219
+ 200: {
220
+ bodyMapper: Mappers.KeyValue
221
+ },
222
+ default: {
223
+ bodyMapper: Mappers.ErrorResponse
224
+ }
225
+ },
226
+ requestBody: Parameters.keyValueParameters,
227
+ queryParameters: [Parameters.apiVersion],
228
+ urlParameters: [
229
+ Parameters.$host,
230
+ Parameters.subscriptionId,
231
+ Parameters.resourceGroupName,
232
+ Parameters.configStoreName,
233
+ Parameters.keyValueName
234
+ ],
235
+ headerParameters: [Parameters.accept, Parameters.contentType],
236
+ mediaType: "json",
237
+ serializer
238
+ };
239
+ const deleteOperationSpec = {
240
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}",
241
+ httpMethod: "DELETE",
242
+ responses: {
243
+ 200: {},
244
+ 201: {},
245
+ 202: {},
246
+ 204: {},
247
+ default: {
248
+ bodyMapper: Mappers.ErrorResponse
249
+ }
250
+ },
251
+ queryParameters: [Parameters.apiVersion],
252
+ urlParameters: [
253
+ Parameters.$host,
254
+ Parameters.subscriptionId,
255
+ Parameters.resourceGroupName,
256
+ Parameters.configStoreName,
257
+ Parameters.keyValueName
258
+ ],
259
+ headerParameters: [Parameters.accept],
260
+ serializer
261
+ };
262
+ const listByConfigurationStoreNextOperationSpec = {
263
+ path: "{nextLink}",
264
+ httpMethod: "GET",
265
+ responses: {
266
+ 200: {
267
+ bodyMapper: Mappers.KeyValueListResult
268
+ },
269
+ default: {
270
+ bodyMapper: Mappers.ErrorResponse
271
+ }
272
+ },
273
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken],
274
+ urlParameters: [
275
+ Parameters.$host,
276
+ Parameters.subscriptionId,
277
+ Parameters.resourceGroupName,
278
+ Parameters.configStoreName,
279
+ Parameters.nextLink
280
+ ],
281
+ headerParameters: [Parameters.accept],
282
+ serializer
283
+ };
284
+ //# sourceMappingURL=keyValues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E,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,eAAe;QAC1B,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yCAAyC,GAA6B;IAC1E,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,eAAe;QAC1B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces";
3
+ import { AppConfigurationManagementClient } from "../appConfigurationManagementClient";
4
+ import { OperationDefinition, OperationsListOptionalParams, CheckNameAvailabilityParameters, OperationsCheckNameAvailabilityOptionalParams, OperationsCheckNameAvailabilityResponse } from "../models";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AppConfigurationManagementClient);
13
+ /**
14
+ * Lists the operations available from this provider.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<OperationDefinition>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Checks whether the configuration store name is available for use.
22
+ * @param checkNameAvailabilityParameters The object containing information for the availability
23
+ * request.
24
+ * @param options The options parameters.
25
+ */
26
+ checkNameAvailability(checkNameAvailabilityParameters: CheckNameAvailabilityParameters, options?: OperationsCheckNameAvailabilityOptionalParams): Promise<OperationsCheckNameAvailabilityResponse>;
27
+ /**
28
+ * Lists the operations available from this provider.
29
+ * @param options The options parameters.
30
+ */
31
+ private _list;
32
+ /**
33
+ * ListNext
34
+ * @param nextLink The nextLink from the previous successful call to the List method.
35
+ * @param options The options parameters.
36
+ */
37
+ private _listNext;
38
+ }
39
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAC5B,+BAA+B,EAC/B,6CAA6C,EAC7C,uCAAuC,EAGxC,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmC;IAE1D;;;OAGG;gBACS,MAAM,EAAE,gCAAgC;IAIpD;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,mBAAmB,CAAC;YAenC,cAAc;YAad,aAAa;IAQ5B;;;;;OAKG;IACH,qBAAqB,CACnB,+BAA+B,EAAE,+BAA+B,EAChE,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC;IAOnD;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,147 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing Operations operations. */
14
+ export class OperationsImpl {
15
+ /**
16
+ * Initialize a new instance of the class Operations class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Lists the operations available from this provider.
24
+ * @param options The options parameters.
25
+ */
26
+ list(options) {
27
+ const iter = this.listPagingAll(options);
28
+ return {
29
+ next() {
30
+ return iter.next();
31
+ },
32
+ [Symbol.asyncIterator]() {
33
+ return this;
34
+ },
35
+ byPage: () => {
36
+ return this.listPagingPage(options);
37
+ }
38
+ };
39
+ }
40
+ listPagingPage(options) {
41
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
42
+ let result = yield __await(this._list(options));
43
+ yield yield __await(result.value || []);
44
+ let continuationToken = result.nextLink;
45
+ while (continuationToken) {
46
+ result = yield __await(this._listNext(continuationToken, options));
47
+ continuationToken = result.nextLink;
48
+ yield yield __await(result.value || []);
49
+ }
50
+ });
51
+ }
52
+ listPagingAll(options) {
53
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
54
+ var e_1, _a;
55
+ try {
56
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
57
+ const page = _c.value;
58
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
59
+ }
60
+ }
61
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
62
+ finally {
63
+ try {
64
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
65
+ }
66
+ finally { if (e_1) throw e_1.error; }
67
+ }
68
+ });
69
+ }
70
+ /**
71
+ * Checks whether the configuration store name is available for use.
72
+ * @param checkNameAvailabilityParameters The object containing information for the availability
73
+ * request.
74
+ * @param options The options parameters.
75
+ */
76
+ checkNameAvailability(checkNameAvailabilityParameters, options) {
77
+ return this.client.sendOperationRequest({ checkNameAvailabilityParameters, options }, checkNameAvailabilityOperationSpec);
78
+ }
79
+ /**
80
+ * Lists the operations available from this provider.
81
+ * @param options The options parameters.
82
+ */
83
+ _list(options) {
84
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
85
+ }
86
+ /**
87
+ * ListNext
88
+ * @param nextLink The nextLink from the previous successful call to the List method.
89
+ * @param options The options parameters.
90
+ */
91
+ _listNext(nextLink, options) {
92
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
93
+ }
94
+ }
95
+ // Operation Specifications
96
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
97
+ const checkNameAvailabilityOperationSpec = {
98
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/checkNameAvailability",
99
+ httpMethod: "POST",
100
+ responses: {
101
+ 200: {
102
+ bodyMapper: Mappers.NameAvailabilityStatus
103
+ },
104
+ default: {
105
+ bodyMapper: Mappers.ErrorResponse
106
+ }
107
+ },
108
+ requestBody: Parameters.checkNameAvailabilityParameters,
109
+ queryParameters: [Parameters.apiVersion],
110
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
111
+ headerParameters: [Parameters.accept, Parameters.contentType],
112
+ mediaType: "json",
113
+ serializer
114
+ };
115
+ const listOperationSpec = {
116
+ path: "/providers/Microsoft.AppConfiguration/operations",
117
+ httpMethod: "GET",
118
+ responses: {
119
+ 200: {
120
+ bodyMapper: Mappers.OperationDefinitionListResult
121
+ },
122
+ default: {
123
+ bodyMapper: Mappers.ErrorResponse
124
+ }
125
+ },
126
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken],
127
+ urlParameters: [Parameters.$host],
128
+ headerParameters: [Parameters.accept],
129
+ serializer
130
+ };
131
+ const listNextOperationSpec = {
132
+ path: "{nextLink}",
133
+ httpMethod: "GET",
134
+ responses: {
135
+ 200: {
136
+ bodyMapper: Mappers.OperationDefinitionListResult
137
+ },
138
+ default: {
139
+ bodyMapper: Mappers.ErrorResponse
140
+ }
141
+ },
142
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken],
143
+ urlParameters: [Parameters.$host, Parameters.nextLink],
144
+ headerParameters: [Parameters.accept],
145
+ serializer
146
+ };
147
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAanD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAwC;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,I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