@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.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +72 -75
- package/dist/index.js +3105 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/appConfigurationManagementClient.d.ts +22 -0
- package/dist-esm/src/appConfigurationManagementClient.d.ts.map +1 -0
- package/dist-esm/src/appConfigurationManagementClient.js +55 -0
- package/dist-esm/src/appConfigurationManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +826 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +59 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +38 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +588 -313
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +20 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +162 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/configurationStores.d.ts +139 -0
- package/dist-esm/src/operations/configurationStores.d.ts.map +1 -0
- package/dist-esm/src/operations/configurationStores.js +655 -0
- package/dist-esm/src/operations/configurationStores.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +4 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/keyValues.d.ts +76 -0
- package/dist-esm/src/operations/keyValues.d.ts.map +1 -0
- package/dist-esm/src/operations/keyValues.js +284 -0
- package/dist-esm/src/operations/keyValues.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +39 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +147 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +84 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +350 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +47 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +170 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurationStores.d.ts +86 -0
- package/dist-esm/src/operationsInterfaces/configurationStores.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurationStores.js +9 -0
- package/dist-esm/src/operationsInterfaces/configurationStores.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/keyValues.d.ts +50 -0
- package/dist-esm/src/operationsInterfaces/keyValues.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/keyValues.js +9 -0
- package/dist-esm/src/operationsInterfaces/keyValues.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +18 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +58 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -31
- package/review/arm-appconfiguration.api.md +665 -0
- package/rollup.config.js +181 -30
- package/src/appConfigurationManagementClient.ts +82 -35
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +680 -893
- package/src/models/mappers.ts +657 -367
- package/src/models/parameters.ts +126 -44
- package/src/operations/configurationStores.ts +657 -495
- package/src/operations/index.ts +4 -5
- package/src/operations/keyValues.ts +396 -0
- package/src/operations/operations.ts +113 -123
- package/src/operations/privateEndpointConnections.ts +350 -186
- package/src/operations/privateLinkResources.ts +162 -126
- package/src/operationsInterfaces/configurationStores.ts +168 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/keyValues.ts +91 -0
- package/src/operationsInterfaces/operations.ts +38 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +111 -0
- package/src/operationsInterfaces/privateLinkResources.ts +44 -0
- package/tsconfig.json +3 -3
- package/types/arm-appconfiguration.d.ts +1171 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-appconfiguration.js +0 -2213
- package/dist/arm-appconfiguration.js.map +0 -1
- package/dist/arm-appconfiguration.min.js +0 -1
- package/dist/arm-appconfiguration.min.js.map +0 -1
- package/esm/appConfigurationManagementClient.d.ts +0 -21
- package/esm/appConfigurationManagementClient.d.ts.map +0 -1
- package/esm/appConfigurationManagementClient.js +0 -36
- package/esm/appConfigurationManagementClient.js.map +0 -1
- package/esm/appConfigurationManagementClientContext.d.ts +0 -16
- package/esm/appConfigurationManagementClientContext.d.ts.map +0 -1
- package/esm/appConfigurationManagementClientContext.js +0 -56
- package/esm/appConfigurationManagementClientContext.js.map +0 -1
- package/esm/models/configurationStoresMappers.d.ts +0 -2
- package/esm/models/configurationStoresMappers.d.ts.map +0 -1
- package/esm/models/configurationStoresMappers.js +0 -9
- package/esm/models/configurationStoresMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1073
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -31
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -11
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -108
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/operations/configurationStores.d.ts +0 -243
- package/esm/operations/configurationStores.d.ts.map +0 -1
- package/esm/operations/configurationStores.js +0 -466
- package/esm/operations/configurationStores.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -67
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -111
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -117
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -236
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -76
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -117
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/src/appConfigurationManagementClientContext.ts +0 -62
- package/src/models/configurationStoresMappers.ts +0 -30
- package/src/models/operationsMappers.ts +0 -16
- package/src/models/privateEndpointConnectionsMappers.ts +0 -24
- package/src/models/privateLinkResourcesMappers.ts +0 -13
package/src/operations/index.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
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
|
+
};
|