@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
@@ -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
 
11
9
  export * from "./configurationStores";
12
10
  export * from "./operations";
13
11
  export * from "./privateEndpointConnections";
14
12
  export * from "./privateLinkResources";
13
+ export * from "./keyValues";
@@ -0,0 +1,396 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { KeyValues } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { AppConfigurationManagementClient } from "../appConfigurationManagementClient";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ KeyValue,
19
+ KeyValuesListByConfigurationStoreNextOptionalParams,
20
+ KeyValuesListByConfigurationStoreOptionalParams,
21
+ KeyValuesListByConfigurationStoreResponse,
22
+ KeyValuesGetOptionalParams,
23
+ KeyValuesGetResponse,
24
+ KeyValuesCreateOrUpdateOptionalParams,
25
+ KeyValuesCreateOrUpdateResponse,
26
+ KeyValuesDeleteOptionalParams,
27
+ KeyValuesListByConfigurationStoreNextResponse
28
+ } from "../models";
29
+
30
+ /// <reference lib="esnext.asynciterable" />
31
+ /** Class containing KeyValues operations. */
32
+ export class KeyValuesImpl implements KeyValues {
33
+ private readonly client: AppConfigurationManagementClient;
34
+
35
+ /**
36
+ * Initialize a new instance of the class KeyValues class.
37
+ * @param client Reference to the service client
38
+ */
39
+ constructor(client: AppConfigurationManagementClient) {
40
+ this.client = client;
41
+ }
42
+
43
+ /**
44
+ * Lists the key-values for a given configuration store.
45
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
46
+ * @param configStoreName The name of the configuration store.
47
+ * @param options The options parameters.
48
+ */
49
+ public listByConfigurationStore(
50
+ resourceGroupName: string,
51
+ configStoreName: string,
52
+ options?: KeyValuesListByConfigurationStoreOptionalParams
53
+ ): PagedAsyncIterableIterator<KeyValue> {
54
+ const iter = this.listByConfigurationStorePagingAll(
55
+ resourceGroupName,
56
+ configStoreName,
57
+ options
58
+ );
59
+ return {
60
+ next() {
61
+ return iter.next();
62
+ },
63
+ [Symbol.asyncIterator]() {
64
+ return this;
65
+ },
66
+ byPage: () => {
67
+ return this.listByConfigurationStorePagingPage(
68
+ resourceGroupName,
69
+ configStoreName,
70
+ options
71
+ );
72
+ }
73
+ };
74
+ }
75
+
76
+ private async *listByConfigurationStorePagingPage(
77
+ resourceGroupName: string,
78
+ configStoreName: string,
79
+ options?: KeyValuesListByConfigurationStoreOptionalParams
80
+ ): AsyncIterableIterator<KeyValue[]> {
81
+ let result = await this._listByConfigurationStore(
82
+ resourceGroupName,
83
+ configStoreName,
84
+ options
85
+ );
86
+ yield result.value || [];
87
+ let continuationToken = result.nextLink;
88
+ while (continuationToken) {
89
+ result = await this._listByConfigurationStoreNext(
90
+ resourceGroupName,
91
+ configStoreName,
92
+ continuationToken,
93
+ options
94
+ );
95
+ continuationToken = result.nextLink;
96
+ yield result.value || [];
97
+ }
98
+ }
99
+
100
+ private async *listByConfigurationStorePagingAll(
101
+ resourceGroupName: string,
102
+ configStoreName: string,
103
+ options?: KeyValuesListByConfigurationStoreOptionalParams
104
+ ): AsyncIterableIterator<KeyValue> {
105
+ for await (const page of this.listByConfigurationStorePagingPage(
106
+ resourceGroupName,
107
+ configStoreName,
108
+ options
109
+ )) {
110
+ yield* page;
111
+ }
112
+ }
113
+
114
+ /**
115
+ * Lists the key-values for a given configuration store.
116
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
117
+ * @param configStoreName The name of the configuration store.
118
+ * @param options The options parameters.
119
+ */
120
+ private _listByConfigurationStore(
121
+ resourceGroupName: string,
122
+ configStoreName: string,
123
+ options?: KeyValuesListByConfigurationStoreOptionalParams
124
+ ): Promise<KeyValuesListByConfigurationStoreResponse> {
125
+ return this.client.sendOperationRequest(
126
+ { resourceGroupName, configStoreName, options },
127
+ listByConfigurationStoreOperationSpec
128
+ );
129
+ }
130
+
131
+ /**
132
+ * Gets the properties of the specified key-value.
133
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
134
+ * @param configStoreName The name of the configuration store.
135
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
136
+ * character. Label is optional.
137
+ * @param options The options parameters.
138
+ */
139
+ get(
140
+ resourceGroupName: string,
141
+ configStoreName: string,
142
+ keyValueName: string,
143
+ options?: KeyValuesGetOptionalParams
144
+ ): Promise<KeyValuesGetResponse> {
145
+ return this.client.sendOperationRequest(
146
+ { resourceGroupName, configStoreName, keyValueName, options },
147
+ getOperationSpec
148
+ );
149
+ }
150
+
151
+ /**
152
+ * Creates a key-value.
153
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
154
+ * @param configStoreName The name of the configuration store.
155
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
156
+ * character. Label is optional.
157
+ * @param options The options parameters.
158
+ */
159
+ createOrUpdate(
160
+ resourceGroupName: string,
161
+ configStoreName: string,
162
+ keyValueName: string,
163
+ options?: KeyValuesCreateOrUpdateOptionalParams
164
+ ): Promise<KeyValuesCreateOrUpdateResponse> {
165
+ return this.client.sendOperationRequest(
166
+ { resourceGroupName, configStoreName, keyValueName, options },
167
+ createOrUpdateOperationSpec
168
+ );
169
+ }
170
+
171
+ /**
172
+ * Deletes a key-value.
173
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
174
+ * @param configStoreName The name of the configuration store.
175
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
176
+ * character. Label is optional.
177
+ * @param options The options parameters.
178
+ */
179
+ async beginDelete(
180
+ resourceGroupName: string,
181
+ configStoreName: string,
182
+ keyValueName: string,
183
+ options?: KeyValuesDeleteOptionalParams
184
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
185
+ const directSendOperation = async (
186
+ args: coreClient.OperationArguments,
187
+ spec: coreClient.OperationSpec
188
+ ): Promise<void> => {
189
+ return this.client.sendOperationRequest(args, spec);
190
+ };
191
+ const sendOperation = async (
192
+ args: coreClient.OperationArguments,
193
+ spec: coreClient.OperationSpec
194
+ ) => {
195
+ let currentRawResponse:
196
+ | coreClient.FullOperationResponse
197
+ | undefined = undefined;
198
+ const providedCallback = args.options?.onResponse;
199
+ const callback: coreClient.RawResponseCallback = (
200
+ rawResponse: coreClient.FullOperationResponse,
201
+ flatResponse: unknown
202
+ ) => {
203
+ currentRawResponse = rawResponse;
204
+ providedCallback?.(rawResponse, flatResponse);
205
+ };
206
+ const updatedArgs = {
207
+ ...args,
208
+ options: {
209
+ ...args.options,
210
+ onResponse: callback
211
+ }
212
+ };
213
+ const flatResponse = await directSendOperation(updatedArgs, spec);
214
+ return {
215
+ flatResponse,
216
+ rawResponse: {
217
+ statusCode: currentRawResponse!.status,
218
+ body: currentRawResponse!.parsedBody,
219
+ headers: currentRawResponse!.headers.toJSON()
220
+ }
221
+ };
222
+ };
223
+
224
+ const lro = new LroImpl(
225
+ sendOperation,
226
+ { resourceGroupName, configStoreName, keyValueName, options },
227
+ deleteOperationSpec
228
+ );
229
+ return new LroEngine(lro, {
230
+ resumeFrom: options?.resumeFrom,
231
+ intervalInMs: options?.updateIntervalInMs
232
+ });
233
+ }
234
+
235
+ /**
236
+ * Deletes a key-value.
237
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
238
+ * @param configStoreName The name of the configuration store.
239
+ * @param keyValueName Identifier of key and label combination. Key and label are joined by $
240
+ * character. Label is optional.
241
+ * @param options The options parameters.
242
+ */
243
+ async beginDeleteAndWait(
244
+ resourceGroupName: string,
245
+ configStoreName: string,
246
+ keyValueName: string,
247
+ options?: KeyValuesDeleteOptionalParams
248
+ ): Promise<void> {
249
+ const poller = await this.beginDelete(
250
+ resourceGroupName,
251
+ configStoreName,
252
+ keyValueName,
253
+ options
254
+ );
255
+ return poller.pollUntilDone();
256
+ }
257
+
258
+ /**
259
+ * ListByConfigurationStoreNext
260
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
261
+ * @param configStoreName The name of the configuration store.
262
+ * @param nextLink The nextLink from the previous successful call to the ListByConfigurationStore
263
+ * method.
264
+ * @param options The options parameters.
265
+ */
266
+ private _listByConfigurationStoreNext(
267
+ resourceGroupName: string,
268
+ configStoreName: string,
269
+ nextLink: string,
270
+ options?: KeyValuesListByConfigurationStoreNextOptionalParams
271
+ ): Promise<KeyValuesListByConfigurationStoreNextResponse> {
272
+ return this.client.sendOperationRequest(
273
+ { resourceGroupName, configStoreName, nextLink, options },
274
+ listByConfigurationStoreNextOperationSpec
275
+ );
276
+ }
277
+ }
278
+ // Operation Specifications
279
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
280
+
281
+ const listByConfigurationStoreOperationSpec: coreClient.OperationSpec = {
282
+ path:
283
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues",
284
+ httpMethod: "GET",
285
+ responses: {
286
+ 200: {
287
+ bodyMapper: Mappers.KeyValueListResult
288
+ },
289
+ default: {
290
+ bodyMapper: Mappers.ErrorResponse
291
+ }
292
+ },
293
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken],
294
+ urlParameters: [
295
+ Parameters.$host,
296
+ Parameters.subscriptionId,
297
+ Parameters.resourceGroupName,
298
+ Parameters.configStoreName
299
+ ],
300
+ headerParameters: [Parameters.accept],
301
+ serializer
302
+ };
303
+ const getOperationSpec: coreClient.OperationSpec = {
304
+ path:
305
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}",
306
+ httpMethod: "GET",
307
+ responses: {
308
+ 200: {
309
+ bodyMapper: Mappers.KeyValue
310
+ },
311
+ default: {
312
+ bodyMapper: Mappers.ErrorResponse
313
+ }
314
+ },
315
+ queryParameters: [Parameters.apiVersion],
316
+ urlParameters: [
317
+ Parameters.$host,
318
+ Parameters.subscriptionId,
319
+ Parameters.resourceGroupName,
320
+ Parameters.configStoreName,
321
+ Parameters.keyValueName
322
+ ],
323
+ headerParameters: [Parameters.accept],
324
+ serializer
325
+ };
326
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
327
+ path:
328
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}",
329
+ httpMethod: "PUT",
330
+ responses: {
331
+ 200: {
332
+ bodyMapper: Mappers.KeyValue
333
+ },
334
+ default: {
335
+ bodyMapper: Mappers.ErrorResponse
336
+ }
337
+ },
338
+ requestBody: Parameters.keyValueParameters,
339
+ queryParameters: [Parameters.apiVersion],
340
+ urlParameters: [
341
+ Parameters.$host,
342
+ Parameters.subscriptionId,
343
+ Parameters.resourceGroupName,
344
+ Parameters.configStoreName,
345
+ Parameters.keyValueName
346
+ ],
347
+ headerParameters: [Parameters.accept, Parameters.contentType],
348
+ mediaType: "json",
349
+ serializer
350
+ };
351
+ const deleteOperationSpec: coreClient.OperationSpec = {
352
+ path:
353
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}",
354
+ httpMethod: "DELETE",
355
+ responses: {
356
+ 200: {},
357
+ 201: {},
358
+ 202: {},
359
+ 204: {},
360
+ default: {
361
+ bodyMapper: Mappers.ErrorResponse
362
+ }
363
+ },
364
+ queryParameters: [Parameters.apiVersion],
365
+ urlParameters: [
366
+ Parameters.$host,
367
+ Parameters.subscriptionId,
368
+ Parameters.resourceGroupName,
369
+ Parameters.configStoreName,
370
+ Parameters.keyValueName
371
+ ],
372
+ headerParameters: [Parameters.accept],
373
+ serializer
374
+ };
375
+ const listByConfigurationStoreNextOperationSpec: coreClient.OperationSpec = {
376
+ path: "{nextLink}",
377
+ httpMethod: "GET",
378
+ responses: {
379
+ 200: {
380
+ bodyMapper: Mappers.KeyValueListResult
381
+ },
382
+ default: {
383
+ bodyMapper: Mappers.ErrorResponse
384
+ }
385
+ },
386
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken],
387
+ urlParameters: [
388
+ Parameters.$host,
389
+ Parameters.subscriptionId,
390
+ Parameters.resourceGroupName,
391
+ Parameters.configStoreName,
392
+ Parameters.nextLink
393
+ ],
394
+ headerParameters: [Parameters.accept],
395
+ serializer
396
+ };