@azure/arm-appconfiguration 2.0.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/LICENSE.txt +1 -1
- package/README.md +70 -80
- 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 +464 -547
- 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 +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- 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/{src/models/privateLinkResourcesMappers.ts → dist-esm/src/operationsInterfaces/configurationStores.js} +2 -8
- 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/{esm/models/index.js → dist-esm/src/operationsInterfaces/keyValues.js} +2 -1
- 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/{esm/models/privateLinkResourcesMappers.js → dist-esm/src/operationsInterfaces/operations.js} +2 -2
- 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 -32
- package/review/arm-appconfiguration.api.md +665 -0
- package/rollup.config.js +181 -30
- package/src/appConfigurationManagementClient.ts +80 -40
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +644 -1242
- package/src/models/mappers.ts +467 -557
- package/src/models/parameters.ts +119 -46
- package/src/operations/configurationStores.ts +638 -419
- package/src/operations/index.ts +1 -2
- package/src/operations/keyValues.ts +266 -209
- package/src/operations/operations.ts +108 -121
- package/src/operations/privateEndpointConnections.ts +343 -181
- package/src/operations/privateLinkResources.ts +157 -123
- 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 -2849
- 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 -28
- package/esm/appConfigurationManagementClient.d.ts.map +0 -1
- package/esm/appConfigurationManagementClient.js +0 -41
- package/esm/appConfigurationManagementClient.js.map +0 -1
- package/esm/appConfigurationManagementClientContext.d.ts +0 -22
- package/esm/appConfigurationManagementClientContext.d.ts.map +0 -1
- package/esm/appConfigurationManagementClientContext.js +0 -60
- 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 -1433
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/keyValuesMappers.d.ts +0 -2
- package/esm/models/keyValuesMappers.d.ts.map +0 -1
- package/esm/models/keyValuesMappers.js +0 -9
- package/esm/models/keyValuesMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -42
- 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 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -117
- 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.map +0 -1
- package/esm/operations/configurationStores.d.ts +0 -219
- package/esm/operations/configurationStores.d.ts.map +0 -1
- package/esm/operations/configurationStores.js +0 -441
- 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/keyValues.d.ts +0 -127
- package/esm/operations/keyValues.d.ts.map +0 -1
- package/esm/operations/keyValues.js +0 -216
- package/esm/operations/keyValues.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 -114
- 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 -238
- 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 -119
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/src/appConfigurationManagementClientContext.ts +0 -67
- package/src/models/configurationStoresMappers.ts +0 -35
- package/src/models/keyValuesMappers.ts +0 -31
- package/src/models/operationsMappers.ts +0 -23
- package/src/models/privateEndpointConnectionsMappers.ts +0 -31
package/dist/index.js
ADDED
|
@@ -0,0 +1,3105 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
var coreLro = require('@azure/core-lro');
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*
|
|
13
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
|
+
*/
|
|
16
|
+
(function (KnownIdentityType) {
|
|
17
|
+
KnownIdentityType["None"] = "None";
|
|
18
|
+
KnownIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
19
|
+
KnownIdentityType["UserAssigned"] = "UserAssigned";
|
|
20
|
+
KnownIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned, UserAssigned";
|
|
21
|
+
})(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
|
|
22
|
+
(function (KnownProvisioningState) {
|
|
23
|
+
KnownProvisioningState["Creating"] = "Creating";
|
|
24
|
+
KnownProvisioningState["Updating"] = "Updating";
|
|
25
|
+
KnownProvisioningState["Deleting"] = "Deleting";
|
|
26
|
+
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
27
|
+
KnownProvisioningState["Failed"] = "Failed";
|
|
28
|
+
KnownProvisioningState["Canceled"] = "Canceled";
|
|
29
|
+
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
30
|
+
(function (KnownConnectionStatus) {
|
|
31
|
+
KnownConnectionStatus["Pending"] = "Pending";
|
|
32
|
+
KnownConnectionStatus["Approved"] = "Approved";
|
|
33
|
+
KnownConnectionStatus["Rejected"] = "Rejected";
|
|
34
|
+
KnownConnectionStatus["Disconnected"] = "Disconnected";
|
|
35
|
+
})(exports.KnownConnectionStatus || (exports.KnownConnectionStatus = {}));
|
|
36
|
+
(function (KnownActionsRequired) {
|
|
37
|
+
KnownActionsRequired["None"] = "None";
|
|
38
|
+
KnownActionsRequired["Recreate"] = "Recreate";
|
|
39
|
+
})(exports.KnownActionsRequired || (exports.KnownActionsRequired = {}));
|
|
40
|
+
(function (KnownPublicNetworkAccess) {
|
|
41
|
+
KnownPublicNetworkAccess["Enabled"] = "Enabled";
|
|
42
|
+
KnownPublicNetworkAccess["Disabled"] = "Disabled";
|
|
43
|
+
})(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
|
|
44
|
+
(function (KnownCreatedByType) {
|
|
45
|
+
KnownCreatedByType["User"] = "User";
|
|
46
|
+
KnownCreatedByType["Application"] = "Application";
|
|
47
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
48
|
+
KnownCreatedByType["Key"] = "Key";
|
|
49
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
50
|
+
(function (KnownConfigurationResourceType) {
|
|
51
|
+
KnownConfigurationResourceType["MicrosoftAppConfigurationConfigurationStores"] = "Microsoft.AppConfiguration/configurationStores";
|
|
52
|
+
})(exports.KnownConfigurationResourceType || (exports.KnownConfigurationResourceType = {}));
|
|
53
|
+
|
|
54
|
+
/*
|
|
55
|
+
* Copyright (c) Microsoft Corporation.
|
|
56
|
+
* Licensed under the MIT License.
|
|
57
|
+
*
|
|
58
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
59
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
60
|
+
*/
|
|
61
|
+
const ConfigurationStoreListResult = {
|
|
62
|
+
type: {
|
|
63
|
+
name: "Composite",
|
|
64
|
+
className: "ConfigurationStoreListResult",
|
|
65
|
+
modelProperties: {
|
|
66
|
+
value: {
|
|
67
|
+
serializedName: "value",
|
|
68
|
+
type: {
|
|
69
|
+
name: "Sequence",
|
|
70
|
+
element: {
|
|
71
|
+
type: {
|
|
72
|
+
name: "Composite",
|
|
73
|
+
className: "ConfigurationStore"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
nextLink: {
|
|
79
|
+
serializedName: "nextLink",
|
|
80
|
+
type: {
|
|
81
|
+
name: "String"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const ResourceIdentity = {
|
|
88
|
+
type: {
|
|
89
|
+
name: "Composite",
|
|
90
|
+
className: "ResourceIdentity",
|
|
91
|
+
modelProperties: {
|
|
92
|
+
type: {
|
|
93
|
+
serializedName: "type",
|
|
94
|
+
type: {
|
|
95
|
+
name: "String"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
userAssignedIdentities: {
|
|
99
|
+
serializedName: "userAssignedIdentities",
|
|
100
|
+
type: {
|
|
101
|
+
name: "Dictionary",
|
|
102
|
+
value: { type: { name: "Composite", className: "UserIdentity" } }
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
principalId: {
|
|
106
|
+
serializedName: "principalId",
|
|
107
|
+
readOnly: true,
|
|
108
|
+
type: {
|
|
109
|
+
name: "String"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
tenantId: {
|
|
113
|
+
serializedName: "tenantId",
|
|
114
|
+
readOnly: true,
|
|
115
|
+
type: {
|
|
116
|
+
name: "String"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
const UserIdentity = {
|
|
123
|
+
type: {
|
|
124
|
+
name: "Composite",
|
|
125
|
+
className: "UserIdentity",
|
|
126
|
+
modelProperties: {
|
|
127
|
+
principalId: {
|
|
128
|
+
serializedName: "principalId",
|
|
129
|
+
readOnly: true,
|
|
130
|
+
type: {
|
|
131
|
+
name: "String"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
clientId: {
|
|
135
|
+
serializedName: "clientId",
|
|
136
|
+
readOnly: true,
|
|
137
|
+
type: {
|
|
138
|
+
name: "String"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
const EncryptionProperties = {
|
|
145
|
+
type: {
|
|
146
|
+
name: "Composite",
|
|
147
|
+
className: "EncryptionProperties",
|
|
148
|
+
modelProperties: {
|
|
149
|
+
keyVaultProperties: {
|
|
150
|
+
serializedName: "keyVaultProperties",
|
|
151
|
+
type: {
|
|
152
|
+
name: "Composite",
|
|
153
|
+
className: "KeyVaultProperties"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
const KeyVaultProperties = {
|
|
160
|
+
type: {
|
|
161
|
+
name: "Composite",
|
|
162
|
+
className: "KeyVaultProperties",
|
|
163
|
+
modelProperties: {
|
|
164
|
+
keyIdentifier: {
|
|
165
|
+
serializedName: "keyIdentifier",
|
|
166
|
+
type: {
|
|
167
|
+
name: "String"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
identityClientId: {
|
|
171
|
+
serializedName: "identityClientId",
|
|
172
|
+
type: {
|
|
173
|
+
name: "String"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
const PrivateEndpointConnectionReference = {
|
|
180
|
+
type: {
|
|
181
|
+
name: "Composite",
|
|
182
|
+
className: "PrivateEndpointConnectionReference",
|
|
183
|
+
modelProperties: {
|
|
184
|
+
id: {
|
|
185
|
+
serializedName: "id",
|
|
186
|
+
readOnly: true,
|
|
187
|
+
type: {
|
|
188
|
+
name: "String"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
name: {
|
|
192
|
+
serializedName: "name",
|
|
193
|
+
readOnly: true,
|
|
194
|
+
type: {
|
|
195
|
+
name: "String"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
type: {
|
|
199
|
+
serializedName: "type",
|
|
200
|
+
readOnly: true,
|
|
201
|
+
type: {
|
|
202
|
+
name: "String"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
provisioningState: {
|
|
206
|
+
serializedName: "properties.provisioningState",
|
|
207
|
+
readOnly: true,
|
|
208
|
+
type: {
|
|
209
|
+
name: "String"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
privateEndpoint: {
|
|
213
|
+
serializedName: "properties.privateEndpoint",
|
|
214
|
+
type: {
|
|
215
|
+
name: "Composite",
|
|
216
|
+
className: "PrivateEndpoint"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
privateLinkServiceConnectionState: {
|
|
220
|
+
serializedName: "properties.privateLinkServiceConnectionState",
|
|
221
|
+
type: {
|
|
222
|
+
name: "Composite",
|
|
223
|
+
className: "PrivateLinkServiceConnectionState"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
const PrivateEndpoint = {
|
|
230
|
+
type: {
|
|
231
|
+
name: "Composite",
|
|
232
|
+
className: "PrivateEndpoint",
|
|
233
|
+
modelProperties: {
|
|
234
|
+
id: {
|
|
235
|
+
serializedName: "id",
|
|
236
|
+
type: {
|
|
237
|
+
name: "String"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
const PrivateLinkServiceConnectionState = {
|
|
244
|
+
type: {
|
|
245
|
+
name: "Composite",
|
|
246
|
+
className: "PrivateLinkServiceConnectionState",
|
|
247
|
+
modelProperties: {
|
|
248
|
+
status: {
|
|
249
|
+
serializedName: "status",
|
|
250
|
+
type: {
|
|
251
|
+
name: "String"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
description: {
|
|
255
|
+
serializedName: "description",
|
|
256
|
+
type: {
|
|
257
|
+
name: "String"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
actionsRequired: {
|
|
261
|
+
serializedName: "actionsRequired",
|
|
262
|
+
readOnly: true,
|
|
263
|
+
type: {
|
|
264
|
+
name: "String"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
const Sku = {
|
|
271
|
+
type: {
|
|
272
|
+
name: "Composite",
|
|
273
|
+
className: "Sku",
|
|
274
|
+
modelProperties: {
|
|
275
|
+
name: {
|
|
276
|
+
serializedName: "name",
|
|
277
|
+
required: true,
|
|
278
|
+
type: {
|
|
279
|
+
name: "String"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
const SystemData = {
|
|
286
|
+
type: {
|
|
287
|
+
name: "Composite",
|
|
288
|
+
className: "SystemData",
|
|
289
|
+
modelProperties: {
|
|
290
|
+
createdBy: {
|
|
291
|
+
serializedName: "createdBy",
|
|
292
|
+
type: {
|
|
293
|
+
name: "String"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
createdByType: {
|
|
297
|
+
serializedName: "createdByType",
|
|
298
|
+
type: {
|
|
299
|
+
name: "String"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
createdAt: {
|
|
303
|
+
serializedName: "createdAt",
|
|
304
|
+
type: {
|
|
305
|
+
name: "DateTime"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
lastModifiedBy: {
|
|
309
|
+
serializedName: "lastModifiedBy",
|
|
310
|
+
type: {
|
|
311
|
+
name: "String"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
lastModifiedByType: {
|
|
315
|
+
serializedName: "lastModifiedByType",
|
|
316
|
+
type: {
|
|
317
|
+
name: "String"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
lastModifiedAt: {
|
|
321
|
+
serializedName: "lastModifiedAt",
|
|
322
|
+
type: {
|
|
323
|
+
name: "DateTime"
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
const Resource = {
|
|
330
|
+
type: {
|
|
331
|
+
name: "Composite",
|
|
332
|
+
className: "Resource",
|
|
333
|
+
modelProperties: {
|
|
334
|
+
id: {
|
|
335
|
+
serializedName: "id",
|
|
336
|
+
readOnly: true,
|
|
337
|
+
type: {
|
|
338
|
+
name: "String"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
name: {
|
|
342
|
+
serializedName: "name",
|
|
343
|
+
readOnly: true,
|
|
344
|
+
type: {
|
|
345
|
+
name: "String"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
type: {
|
|
349
|
+
serializedName: "type",
|
|
350
|
+
readOnly: true,
|
|
351
|
+
type: {
|
|
352
|
+
name: "String"
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
const ErrorResponse = {
|
|
359
|
+
type: {
|
|
360
|
+
name: "Composite",
|
|
361
|
+
className: "ErrorResponse",
|
|
362
|
+
modelProperties: {
|
|
363
|
+
error: {
|
|
364
|
+
serializedName: "error",
|
|
365
|
+
type: {
|
|
366
|
+
name: "Composite",
|
|
367
|
+
className: "ErrorDetails"
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
const ErrorDetails = {
|
|
374
|
+
type: {
|
|
375
|
+
name: "Composite",
|
|
376
|
+
className: "ErrorDetails",
|
|
377
|
+
modelProperties: {
|
|
378
|
+
code: {
|
|
379
|
+
serializedName: "code",
|
|
380
|
+
readOnly: true,
|
|
381
|
+
type: {
|
|
382
|
+
name: "String"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
message: {
|
|
386
|
+
serializedName: "message",
|
|
387
|
+
readOnly: true,
|
|
388
|
+
type: {
|
|
389
|
+
name: "String"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
additionalInfo: {
|
|
393
|
+
serializedName: "additionalInfo",
|
|
394
|
+
readOnly: true,
|
|
395
|
+
type: {
|
|
396
|
+
name: "Sequence",
|
|
397
|
+
element: {
|
|
398
|
+
type: {
|
|
399
|
+
name: "Composite",
|
|
400
|
+
className: "ErrorAdditionalInfo"
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
const ErrorAdditionalInfo = {
|
|
409
|
+
type: {
|
|
410
|
+
name: "Composite",
|
|
411
|
+
className: "ErrorAdditionalInfo",
|
|
412
|
+
modelProperties: {
|
|
413
|
+
type: {
|
|
414
|
+
serializedName: "type",
|
|
415
|
+
readOnly: true,
|
|
416
|
+
type: {
|
|
417
|
+
name: "String"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
info: {
|
|
421
|
+
serializedName: "info",
|
|
422
|
+
readOnly: true,
|
|
423
|
+
type: {
|
|
424
|
+
name: "Dictionary",
|
|
425
|
+
value: { type: { name: "any" } }
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
const ConfigurationStoreUpdateParameters = {
|
|
432
|
+
type: {
|
|
433
|
+
name: "Composite",
|
|
434
|
+
className: "ConfigurationStoreUpdateParameters",
|
|
435
|
+
modelProperties: {
|
|
436
|
+
identity: {
|
|
437
|
+
serializedName: "identity",
|
|
438
|
+
type: {
|
|
439
|
+
name: "Composite",
|
|
440
|
+
className: "ResourceIdentity"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
sku: {
|
|
444
|
+
serializedName: "sku",
|
|
445
|
+
type: {
|
|
446
|
+
name: "Composite",
|
|
447
|
+
className: "Sku"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
tags: {
|
|
451
|
+
serializedName: "tags",
|
|
452
|
+
type: {
|
|
453
|
+
name: "Dictionary",
|
|
454
|
+
value: { type: { name: "String" } }
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
encryption: {
|
|
458
|
+
serializedName: "properties.encryption",
|
|
459
|
+
type: {
|
|
460
|
+
name: "Composite",
|
|
461
|
+
className: "EncryptionProperties"
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
disableLocalAuth: {
|
|
465
|
+
serializedName: "properties.disableLocalAuth",
|
|
466
|
+
type: {
|
|
467
|
+
name: "Boolean"
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
publicNetworkAccess: {
|
|
471
|
+
serializedName: "properties.publicNetworkAccess",
|
|
472
|
+
type: {
|
|
473
|
+
name: "String"
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
const CheckNameAvailabilityParameters = {
|
|
480
|
+
type: {
|
|
481
|
+
name: "Composite",
|
|
482
|
+
className: "CheckNameAvailabilityParameters",
|
|
483
|
+
modelProperties: {
|
|
484
|
+
name: {
|
|
485
|
+
serializedName: "name",
|
|
486
|
+
required: true,
|
|
487
|
+
type: {
|
|
488
|
+
name: "String"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
type: {
|
|
492
|
+
serializedName: "type",
|
|
493
|
+
required: true,
|
|
494
|
+
type: {
|
|
495
|
+
name: "String"
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
};
|
|
501
|
+
const NameAvailabilityStatus = {
|
|
502
|
+
type: {
|
|
503
|
+
name: "Composite",
|
|
504
|
+
className: "NameAvailabilityStatus",
|
|
505
|
+
modelProperties: {
|
|
506
|
+
nameAvailable: {
|
|
507
|
+
serializedName: "nameAvailable",
|
|
508
|
+
readOnly: true,
|
|
509
|
+
type: {
|
|
510
|
+
name: "Boolean"
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
message: {
|
|
514
|
+
serializedName: "message",
|
|
515
|
+
readOnly: true,
|
|
516
|
+
type: {
|
|
517
|
+
name: "String"
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
reason: {
|
|
521
|
+
serializedName: "reason",
|
|
522
|
+
readOnly: true,
|
|
523
|
+
type: {
|
|
524
|
+
name: "String"
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
const ApiKeyListResult = {
|
|
531
|
+
type: {
|
|
532
|
+
name: "Composite",
|
|
533
|
+
className: "ApiKeyListResult",
|
|
534
|
+
modelProperties: {
|
|
535
|
+
value: {
|
|
536
|
+
serializedName: "value",
|
|
537
|
+
type: {
|
|
538
|
+
name: "Sequence",
|
|
539
|
+
element: {
|
|
540
|
+
type: {
|
|
541
|
+
name: "Composite",
|
|
542
|
+
className: "ApiKey"
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
nextLink: {
|
|
548
|
+
serializedName: "nextLink",
|
|
549
|
+
type: {
|
|
550
|
+
name: "String"
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
const ApiKey = {
|
|
557
|
+
type: {
|
|
558
|
+
name: "Composite",
|
|
559
|
+
className: "ApiKey",
|
|
560
|
+
modelProperties: {
|
|
561
|
+
id: {
|
|
562
|
+
serializedName: "id",
|
|
563
|
+
readOnly: true,
|
|
564
|
+
type: {
|
|
565
|
+
name: "String"
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
name: {
|
|
569
|
+
serializedName: "name",
|
|
570
|
+
readOnly: true,
|
|
571
|
+
type: {
|
|
572
|
+
name: "String"
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
value: {
|
|
576
|
+
serializedName: "value",
|
|
577
|
+
readOnly: true,
|
|
578
|
+
type: {
|
|
579
|
+
name: "String"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
connectionString: {
|
|
583
|
+
serializedName: "connectionString",
|
|
584
|
+
readOnly: true,
|
|
585
|
+
type: {
|
|
586
|
+
name: "String"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
lastModified: {
|
|
590
|
+
serializedName: "lastModified",
|
|
591
|
+
readOnly: true,
|
|
592
|
+
type: {
|
|
593
|
+
name: "DateTime"
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
readOnly: {
|
|
597
|
+
serializedName: "readOnly",
|
|
598
|
+
readOnly: true,
|
|
599
|
+
type: {
|
|
600
|
+
name: "Boolean"
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
const RegenerateKeyParameters = {
|
|
607
|
+
type: {
|
|
608
|
+
name: "Composite",
|
|
609
|
+
className: "RegenerateKeyParameters",
|
|
610
|
+
modelProperties: {
|
|
611
|
+
id: {
|
|
612
|
+
serializedName: "id",
|
|
613
|
+
type: {
|
|
614
|
+
name: "String"
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
const OperationDefinitionListResult = {
|
|
621
|
+
type: {
|
|
622
|
+
name: "Composite",
|
|
623
|
+
className: "OperationDefinitionListResult",
|
|
624
|
+
modelProperties: {
|
|
625
|
+
value: {
|
|
626
|
+
serializedName: "value",
|
|
627
|
+
type: {
|
|
628
|
+
name: "Sequence",
|
|
629
|
+
element: {
|
|
630
|
+
type: {
|
|
631
|
+
name: "Composite",
|
|
632
|
+
className: "OperationDefinition"
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
nextLink: {
|
|
638
|
+
serializedName: "nextLink",
|
|
639
|
+
type: {
|
|
640
|
+
name: "String"
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
};
|
|
646
|
+
const OperationDefinition = {
|
|
647
|
+
type: {
|
|
648
|
+
name: "Composite",
|
|
649
|
+
className: "OperationDefinition",
|
|
650
|
+
modelProperties: {
|
|
651
|
+
name: {
|
|
652
|
+
serializedName: "name",
|
|
653
|
+
type: {
|
|
654
|
+
name: "String"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
isDataAction: {
|
|
658
|
+
serializedName: "isDataAction",
|
|
659
|
+
type: {
|
|
660
|
+
name: "Boolean"
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
display: {
|
|
664
|
+
serializedName: "display",
|
|
665
|
+
type: {
|
|
666
|
+
name: "Composite",
|
|
667
|
+
className: "OperationDefinitionDisplay"
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
origin: {
|
|
671
|
+
serializedName: "origin",
|
|
672
|
+
type: {
|
|
673
|
+
name: "String"
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
properties: {
|
|
677
|
+
serializedName: "properties",
|
|
678
|
+
type: {
|
|
679
|
+
name: "Composite",
|
|
680
|
+
className: "OperationProperties"
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
const OperationDefinitionDisplay = {
|
|
687
|
+
type: {
|
|
688
|
+
name: "Composite",
|
|
689
|
+
className: "OperationDefinitionDisplay",
|
|
690
|
+
modelProperties: {
|
|
691
|
+
provider: {
|
|
692
|
+
serializedName: "provider",
|
|
693
|
+
readOnly: true,
|
|
694
|
+
type: {
|
|
695
|
+
name: "String"
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
resource: {
|
|
699
|
+
serializedName: "resource",
|
|
700
|
+
type: {
|
|
701
|
+
name: "String"
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
operation: {
|
|
705
|
+
serializedName: "operation",
|
|
706
|
+
type: {
|
|
707
|
+
name: "String"
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
description: {
|
|
711
|
+
serializedName: "description",
|
|
712
|
+
type: {
|
|
713
|
+
name: "String"
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
};
|
|
719
|
+
const OperationProperties = {
|
|
720
|
+
type: {
|
|
721
|
+
name: "Composite",
|
|
722
|
+
className: "OperationProperties",
|
|
723
|
+
modelProperties: {
|
|
724
|
+
serviceSpecification: {
|
|
725
|
+
serializedName: "serviceSpecification",
|
|
726
|
+
type: {
|
|
727
|
+
name: "Composite",
|
|
728
|
+
className: "ServiceSpecification"
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
};
|
|
734
|
+
const ServiceSpecification = {
|
|
735
|
+
type: {
|
|
736
|
+
name: "Composite",
|
|
737
|
+
className: "ServiceSpecification",
|
|
738
|
+
modelProperties: {
|
|
739
|
+
logSpecifications: {
|
|
740
|
+
serializedName: "logSpecifications",
|
|
741
|
+
type: {
|
|
742
|
+
name: "Sequence",
|
|
743
|
+
element: {
|
|
744
|
+
type: {
|
|
745
|
+
name: "Composite",
|
|
746
|
+
className: "LogSpecification"
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
metricSpecifications: {
|
|
752
|
+
serializedName: "metricSpecifications",
|
|
753
|
+
type: {
|
|
754
|
+
name: "Sequence",
|
|
755
|
+
element: {
|
|
756
|
+
type: {
|
|
757
|
+
name: "Composite",
|
|
758
|
+
className: "MetricSpecification"
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
};
|
|
766
|
+
const LogSpecification = {
|
|
767
|
+
type: {
|
|
768
|
+
name: "Composite",
|
|
769
|
+
className: "LogSpecification",
|
|
770
|
+
modelProperties: {
|
|
771
|
+
name: {
|
|
772
|
+
serializedName: "name",
|
|
773
|
+
type: {
|
|
774
|
+
name: "String"
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
displayName: {
|
|
778
|
+
serializedName: "displayName",
|
|
779
|
+
type: {
|
|
780
|
+
name: "String"
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
blobDuration: {
|
|
784
|
+
serializedName: "blobDuration",
|
|
785
|
+
type: {
|
|
786
|
+
name: "String"
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
};
|
|
792
|
+
const MetricSpecification = {
|
|
793
|
+
type: {
|
|
794
|
+
name: "Composite",
|
|
795
|
+
className: "MetricSpecification",
|
|
796
|
+
modelProperties: {
|
|
797
|
+
name: {
|
|
798
|
+
serializedName: "name",
|
|
799
|
+
type: {
|
|
800
|
+
name: "String"
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
displayName: {
|
|
804
|
+
serializedName: "displayName",
|
|
805
|
+
type: {
|
|
806
|
+
name: "String"
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
displayDescription: {
|
|
810
|
+
serializedName: "displayDescription",
|
|
811
|
+
type: {
|
|
812
|
+
name: "String"
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
unit: {
|
|
816
|
+
serializedName: "unit",
|
|
817
|
+
type: {
|
|
818
|
+
name: "String"
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
aggregationType: {
|
|
822
|
+
serializedName: "aggregationType",
|
|
823
|
+
type: {
|
|
824
|
+
name: "String"
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
internalMetricName: {
|
|
828
|
+
serializedName: "internalMetricName",
|
|
829
|
+
type: {
|
|
830
|
+
name: "String"
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
dimensions: {
|
|
834
|
+
serializedName: "dimensions",
|
|
835
|
+
type: {
|
|
836
|
+
name: "Sequence",
|
|
837
|
+
element: {
|
|
838
|
+
type: {
|
|
839
|
+
name: "Composite",
|
|
840
|
+
className: "MetricDimension"
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
fillGapWithZero: {
|
|
846
|
+
serializedName: "fillGapWithZero",
|
|
847
|
+
type: {
|
|
848
|
+
name: "Boolean"
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
const MetricDimension = {
|
|
855
|
+
type: {
|
|
856
|
+
name: "Composite",
|
|
857
|
+
className: "MetricDimension",
|
|
858
|
+
modelProperties: {
|
|
859
|
+
name: {
|
|
860
|
+
serializedName: "name",
|
|
861
|
+
type: {
|
|
862
|
+
name: "String"
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
displayName: {
|
|
866
|
+
serializedName: "displayName",
|
|
867
|
+
type: {
|
|
868
|
+
name: "String"
|
|
869
|
+
}
|
|
870
|
+
},
|
|
871
|
+
internalName: {
|
|
872
|
+
serializedName: "internalName",
|
|
873
|
+
type: {
|
|
874
|
+
name: "String"
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
};
|
|
880
|
+
const PrivateEndpointConnectionListResult = {
|
|
881
|
+
type: {
|
|
882
|
+
name: "Composite",
|
|
883
|
+
className: "PrivateEndpointConnectionListResult",
|
|
884
|
+
modelProperties: {
|
|
885
|
+
value: {
|
|
886
|
+
serializedName: "value",
|
|
887
|
+
type: {
|
|
888
|
+
name: "Sequence",
|
|
889
|
+
element: {
|
|
890
|
+
type: {
|
|
891
|
+
name: "Composite",
|
|
892
|
+
className: "PrivateEndpointConnection"
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
nextLink: {
|
|
898
|
+
serializedName: "nextLink",
|
|
899
|
+
type: {
|
|
900
|
+
name: "String"
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
};
|
|
906
|
+
const PrivateEndpointConnection = {
|
|
907
|
+
type: {
|
|
908
|
+
name: "Composite",
|
|
909
|
+
className: "PrivateEndpointConnection",
|
|
910
|
+
modelProperties: {
|
|
911
|
+
id: {
|
|
912
|
+
serializedName: "id",
|
|
913
|
+
readOnly: true,
|
|
914
|
+
type: {
|
|
915
|
+
name: "String"
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
name: {
|
|
919
|
+
serializedName: "name",
|
|
920
|
+
readOnly: true,
|
|
921
|
+
type: {
|
|
922
|
+
name: "String"
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
type: {
|
|
926
|
+
serializedName: "type",
|
|
927
|
+
readOnly: true,
|
|
928
|
+
type: {
|
|
929
|
+
name: "String"
|
|
930
|
+
}
|
|
931
|
+
},
|
|
932
|
+
provisioningState: {
|
|
933
|
+
serializedName: "properties.provisioningState",
|
|
934
|
+
readOnly: true,
|
|
935
|
+
type: {
|
|
936
|
+
name: "String"
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
privateEndpoint: {
|
|
940
|
+
serializedName: "properties.privateEndpoint",
|
|
941
|
+
type: {
|
|
942
|
+
name: "Composite",
|
|
943
|
+
className: "PrivateEndpoint"
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
privateLinkServiceConnectionState: {
|
|
947
|
+
serializedName: "properties.privateLinkServiceConnectionState",
|
|
948
|
+
type: {
|
|
949
|
+
name: "Composite",
|
|
950
|
+
className: "PrivateLinkServiceConnectionState"
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
};
|
|
956
|
+
const PrivateLinkResourceListResult = {
|
|
957
|
+
type: {
|
|
958
|
+
name: "Composite",
|
|
959
|
+
className: "PrivateLinkResourceListResult",
|
|
960
|
+
modelProperties: {
|
|
961
|
+
value: {
|
|
962
|
+
serializedName: "value",
|
|
963
|
+
type: {
|
|
964
|
+
name: "Sequence",
|
|
965
|
+
element: {
|
|
966
|
+
type: {
|
|
967
|
+
name: "Composite",
|
|
968
|
+
className: "PrivateLinkResource"
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
},
|
|
973
|
+
nextLink: {
|
|
974
|
+
serializedName: "nextLink",
|
|
975
|
+
type: {
|
|
976
|
+
name: "String"
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
};
|
|
982
|
+
const PrivateLinkResource = {
|
|
983
|
+
type: {
|
|
984
|
+
name: "Composite",
|
|
985
|
+
className: "PrivateLinkResource",
|
|
986
|
+
modelProperties: {
|
|
987
|
+
id: {
|
|
988
|
+
serializedName: "id",
|
|
989
|
+
readOnly: true,
|
|
990
|
+
type: {
|
|
991
|
+
name: "String"
|
|
992
|
+
}
|
|
993
|
+
},
|
|
994
|
+
name: {
|
|
995
|
+
serializedName: "name",
|
|
996
|
+
readOnly: true,
|
|
997
|
+
type: {
|
|
998
|
+
name: "String"
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
type: {
|
|
1002
|
+
serializedName: "type",
|
|
1003
|
+
readOnly: true,
|
|
1004
|
+
type: {
|
|
1005
|
+
name: "String"
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
groupId: {
|
|
1009
|
+
serializedName: "properties.groupId",
|
|
1010
|
+
readOnly: true,
|
|
1011
|
+
type: {
|
|
1012
|
+
name: "String"
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
1015
|
+
requiredMembers: {
|
|
1016
|
+
serializedName: "properties.requiredMembers",
|
|
1017
|
+
readOnly: true,
|
|
1018
|
+
type: {
|
|
1019
|
+
name: "Sequence",
|
|
1020
|
+
element: {
|
|
1021
|
+
type: {
|
|
1022
|
+
name: "String"
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
requiredZoneNames: {
|
|
1028
|
+
serializedName: "properties.requiredZoneNames",
|
|
1029
|
+
readOnly: true,
|
|
1030
|
+
type: {
|
|
1031
|
+
name: "Sequence",
|
|
1032
|
+
element: {
|
|
1033
|
+
type: {
|
|
1034
|
+
name: "String"
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
};
|
|
1042
|
+
const KeyValueListResult = {
|
|
1043
|
+
type: {
|
|
1044
|
+
name: "Composite",
|
|
1045
|
+
className: "KeyValueListResult",
|
|
1046
|
+
modelProperties: {
|
|
1047
|
+
value: {
|
|
1048
|
+
serializedName: "value",
|
|
1049
|
+
type: {
|
|
1050
|
+
name: "Sequence",
|
|
1051
|
+
element: {
|
|
1052
|
+
type: {
|
|
1053
|
+
name: "Composite",
|
|
1054
|
+
className: "KeyValue"
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
},
|
|
1059
|
+
nextLink: {
|
|
1060
|
+
serializedName: "nextLink",
|
|
1061
|
+
type: {
|
|
1062
|
+
name: "String"
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
};
|
|
1068
|
+
const KeyValue = {
|
|
1069
|
+
type: {
|
|
1070
|
+
name: "Composite",
|
|
1071
|
+
className: "KeyValue",
|
|
1072
|
+
modelProperties: {
|
|
1073
|
+
id: {
|
|
1074
|
+
serializedName: "id",
|
|
1075
|
+
readOnly: true,
|
|
1076
|
+
type: {
|
|
1077
|
+
name: "String"
|
|
1078
|
+
}
|
|
1079
|
+
},
|
|
1080
|
+
name: {
|
|
1081
|
+
serializedName: "name",
|
|
1082
|
+
readOnly: true,
|
|
1083
|
+
type: {
|
|
1084
|
+
name: "String"
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
type: {
|
|
1088
|
+
serializedName: "type",
|
|
1089
|
+
readOnly: true,
|
|
1090
|
+
type: {
|
|
1091
|
+
name: "String"
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
key: {
|
|
1095
|
+
serializedName: "properties.key",
|
|
1096
|
+
readOnly: true,
|
|
1097
|
+
type: {
|
|
1098
|
+
name: "String"
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
label: {
|
|
1102
|
+
serializedName: "properties.label",
|
|
1103
|
+
readOnly: true,
|
|
1104
|
+
type: {
|
|
1105
|
+
name: "String"
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
value: {
|
|
1109
|
+
serializedName: "properties.value",
|
|
1110
|
+
type: {
|
|
1111
|
+
name: "String"
|
|
1112
|
+
}
|
|
1113
|
+
},
|
|
1114
|
+
contentType: {
|
|
1115
|
+
serializedName: "properties.contentType",
|
|
1116
|
+
type: {
|
|
1117
|
+
name: "String"
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
eTag: {
|
|
1121
|
+
serializedName: "properties.eTag",
|
|
1122
|
+
readOnly: true,
|
|
1123
|
+
type: {
|
|
1124
|
+
name: "String"
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
lastModified: {
|
|
1128
|
+
serializedName: "properties.lastModified",
|
|
1129
|
+
readOnly: true,
|
|
1130
|
+
type: {
|
|
1131
|
+
name: "DateTime"
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
locked: {
|
|
1135
|
+
serializedName: "properties.locked",
|
|
1136
|
+
readOnly: true,
|
|
1137
|
+
type: {
|
|
1138
|
+
name: "Boolean"
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
tags: {
|
|
1142
|
+
serializedName: "properties.tags",
|
|
1143
|
+
type: {
|
|
1144
|
+
name: "Dictionary",
|
|
1145
|
+
value: { type: { name: "String" } }
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
};
|
|
1151
|
+
const TrackedResource = {
|
|
1152
|
+
type: {
|
|
1153
|
+
name: "Composite",
|
|
1154
|
+
className: "TrackedResource",
|
|
1155
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
1156
|
+
serializedName: "tags",
|
|
1157
|
+
type: {
|
|
1158
|
+
name: "Dictionary",
|
|
1159
|
+
value: { type: { name: "String" } }
|
|
1160
|
+
}
|
|
1161
|
+
}, location: {
|
|
1162
|
+
serializedName: "location",
|
|
1163
|
+
required: true,
|
|
1164
|
+
type: {
|
|
1165
|
+
name: "String"
|
|
1166
|
+
}
|
|
1167
|
+
} })
|
|
1168
|
+
}
|
|
1169
|
+
};
|
|
1170
|
+
const ConfigurationStore = {
|
|
1171
|
+
type: {
|
|
1172
|
+
name: "Composite",
|
|
1173
|
+
className: "ConfigurationStore",
|
|
1174
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
|
|
1175
|
+
serializedName: "identity",
|
|
1176
|
+
type: {
|
|
1177
|
+
name: "Composite",
|
|
1178
|
+
className: "ResourceIdentity"
|
|
1179
|
+
}
|
|
1180
|
+
}, sku: {
|
|
1181
|
+
serializedName: "sku",
|
|
1182
|
+
type: {
|
|
1183
|
+
name: "Composite",
|
|
1184
|
+
className: "Sku"
|
|
1185
|
+
}
|
|
1186
|
+
}, systemData: {
|
|
1187
|
+
serializedName: "systemData",
|
|
1188
|
+
type: {
|
|
1189
|
+
name: "Composite",
|
|
1190
|
+
className: "SystemData"
|
|
1191
|
+
}
|
|
1192
|
+
}, provisioningState: {
|
|
1193
|
+
serializedName: "properties.provisioningState",
|
|
1194
|
+
readOnly: true,
|
|
1195
|
+
type: {
|
|
1196
|
+
name: "String"
|
|
1197
|
+
}
|
|
1198
|
+
}, creationDate: {
|
|
1199
|
+
serializedName: "properties.creationDate",
|
|
1200
|
+
readOnly: true,
|
|
1201
|
+
type: {
|
|
1202
|
+
name: "DateTime"
|
|
1203
|
+
}
|
|
1204
|
+
}, endpoint: {
|
|
1205
|
+
serializedName: "properties.endpoint",
|
|
1206
|
+
readOnly: true,
|
|
1207
|
+
type: {
|
|
1208
|
+
name: "String"
|
|
1209
|
+
}
|
|
1210
|
+
}, encryption: {
|
|
1211
|
+
serializedName: "properties.encryption",
|
|
1212
|
+
type: {
|
|
1213
|
+
name: "Composite",
|
|
1214
|
+
className: "EncryptionProperties"
|
|
1215
|
+
}
|
|
1216
|
+
}, privateEndpointConnections: {
|
|
1217
|
+
serializedName: "properties.privateEndpointConnections",
|
|
1218
|
+
readOnly: true,
|
|
1219
|
+
type: {
|
|
1220
|
+
name: "Sequence",
|
|
1221
|
+
element: {
|
|
1222
|
+
type: {
|
|
1223
|
+
name: "Composite",
|
|
1224
|
+
className: "PrivateEndpointConnectionReference"
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
}, publicNetworkAccess: {
|
|
1229
|
+
serializedName: "properties.publicNetworkAccess",
|
|
1230
|
+
type: {
|
|
1231
|
+
name: "String"
|
|
1232
|
+
}
|
|
1233
|
+
}, disableLocalAuth: {
|
|
1234
|
+
serializedName: "properties.disableLocalAuth",
|
|
1235
|
+
type: {
|
|
1236
|
+
name: "Boolean"
|
|
1237
|
+
}
|
|
1238
|
+
} })
|
|
1239
|
+
}
|
|
1240
|
+
};
|
|
1241
|
+
|
|
1242
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1243
|
+
__proto__: null,
|
|
1244
|
+
ConfigurationStoreListResult: ConfigurationStoreListResult,
|
|
1245
|
+
ResourceIdentity: ResourceIdentity,
|
|
1246
|
+
UserIdentity: UserIdentity,
|
|
1247
|
+
EncryptionProperties: EncryptionProperties,
|
|
1248
|
+
KeyVaultProperties: KeyVaultProperties,
|
|
1249
|
+
PrivateEndpointConnectionReference: PrivateEndpointConnectionReference,
|
|
1250
|
+
PrivateEndpoint: PrivateEndpoint,
|
|
1251
|
+
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
1252
|
+
Sku: Sku,
|
|
1253
|
+
SystemData: SystemData,
|
|
1254
|
+
Resource: Resource,
|
|
1255
|
+
ErrorResponse: ErrorResponse,
|
|
1256
|
+
ErrorDetails: ErrorDetails,
|
|
1257
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1258
|
+
ConfigurationStoreUpdateParameters: ConfigurationStoreUpdateParameters,
|
|
1259
|
+
CheckNameAvailabilityParameters: CheckNameAvailabilityParameters,
|
|
1260
|
+
NameAvailabilityStatus: NameAvailabilityStatus,
|
|
1261
|
+
ApiKeyListResult: ApiKeyListResult,
|
|
1262
|
+
ApiKey: ApiKey,
|
|
1263
|
+
RegenerateKeyParameters: RegenerateKeyParameters,
|
|
1264
|
+
OperationDefinitionListResult: OperationDefinitionListResult,
|
|
1265
|
+
OperationDefinition: OperationDefinition,
|
|
1266
|
+
OperationDefinitionDisplay: OperationDefinitionDisplay,
|
|
1267
|
+
OperationProperties: OperationProperties,
|
|
1268
|
+
ServiceSpecification: ServiceSpecification,
|
|
1269
|
+
LogSpecification: LogSpecification,
|
|
1270
|
+
MetricSpecification: MetricSpecification,
|
|
1271
|
+
MetricDimension: MetricDimension,
|
|
1272
|
+
PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
|
|
1273
|
+
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
1274
|
+
PrivateLinkResourceListResult: PrivateLinkResourceListResult,
|
|
1275
|
+
PrivateLinkResource: PrivateLinkResource,
|
|
1276
|
+
KeyValueListResult: KeyValueListResult,
|
|
1277
|
+
KeyValue: KeyValue,
|
|
1278
|
+
TrackedResource: TrackedResource,
|
|
1279
|
+
ConfigurationStore: ConfigurationStore
|
|
1280
|
+
});
|
|
1281
|
+
|
|
1282
|
+
/*
|
|
1283
|
+
* Copyright (c) Microsoft Corporation.
|
|
1284
|
+
* Licensed under the MIT License.
|
|
1285
|
+
*
|
|
1286
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1287
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1288
|
+
*/
|
|
1289
|
+
const accept = {
|
|
1290
|
+
parameterPath: "accept",
|
|
1291
|
+
mapper: {
|
|
1292
|
+
defaultValue: "application/json",
|
|
1293
|
+
isConstant: true,
|
|
1294
|
+
serializedName: "Accept",
|
|
1295
|
+
type: {
|
|
1296
|
+
name: "String"
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
};
|
|
1300
|
+
const $host = {
|
|
1301
|
+
parameterPath: "$host",
|
|
1302
|
+
mapper: {
|
|
1303
|
+
serializedName: "$host",
|
|
1304
|
+
required: true,
|
|
1305
|
+
type: {
|
|
1306
|
+
name: "String"
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
skipEncoding: true
|
|
1310
|
+
};
|
|
1311
|
+
const subscriptionId = {
|
|
1312
|
+
parameterPath: "subscriptionId",
|
|
1313
|
+
mapper: {
|
|
1314
|
+
serializedName: "subscriptionId",
|
|
1315
|
+
required: true,
|
|
1316
|
+
type: {
|
|
1317
|
+
name: "String"
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
};
|
|
1321
|
+
const apiVersion = {
|
|
1322
|
+
parameterPath: "apiVersion",
|
|
1323
|
+
mapper: {
|
|
1324
|
+
defaultValue: "2021-03-01-preview",
|
|
1325
|
+
isConstant: true,
|
|
1326
|
+
serializedName: "api-version",
|
|
1327
|
+
type: {
|
|
1328
|
+
name: "String"
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
};
|
|
1332
|
+
const skipToken = {
|
|
1333
|
+
parameterPath: ["options", "skipToken"],
|
|
1334
|
+
mapper: {
|
|
1335
|
+
serializedName: "$skipToken",
|
|
1336
|
+
type: {
|
|
1337
|
+
name: "String"
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
};
|
|
1341
|
+
const resourceGroupName = {
|
|
1342
|
+
parameterPath: "resourceGroupName",
|
|
1343
|
+
mapper: {
|
|
1344
|
+
serializedName: "resourceGroupName",
|
|
1345
|
+
required: true,
|
|
1346
|
+
type: {
|
|
1347
|
+
name: "String"
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
};
|
|
1351
|
+
const configStoreName = {
|
|
1352
|
+
parameterPath: "configStoreName",
|
|
1353
|
+
mapper: {
|
|
1354
|
+
constraints: {
|
|
1355
|
+
Pattern: new RegExp("^[a-zA-Z0-9_-]*$"),
|
|
1356
|
+
MaxLength: 50,
|
|
1357
|
+
MinLength: 5
|
|
1358
|
+
},
|
|
1359
|
+
serializedName: "configStoreName",
|
|
1360
|
+
required: true,
|
|
1361
|
+
type: {
|
|
1362
|
+
name: "String"
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
};
|
|
1366
|
+
const contentType = {
|
|
1367
|
+
parameterPath: ["options", "contentType"],
|
|
1368
|
+
mapper: {
|
|
1369
|
+
defaultValue: "application/json",
|
|
1370
|
+
isConstant: true,
|
|
1371
|
+
serializedName: "Content-Type",
|
|
1372
|
+
type: {
|
|
1373
|
+
name: "String"
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
};
|
|
1377
|
+
const configStoreCreationParameters = {
|
|
1378
|
+
parameterPath: "configStoreCreationParameters",
|
|
1379
|
+
mapper: ConfigurationStore
|
|
1380
|
+
};
|
|
1381
|
+
const configStoreUpdateParameters = {
|
|
1382
|
+
parameterPath: "configStoreUpdateParameters",
|
|
1383
|
+
mapper: ConfigurationStoreUpdateParameters
|
|
1384
|
+
};
|
|
1385
|
+
const regenerateKeyParameters = {
|
|
1386
|
+
parameterPath: "regenerateKeyParameters",
|
|
1387
|
+
mapper: RegenerateKeyParameters
|
|
1388
|
+
};
|
|
1389
|
+
const nextLink = {
|
|
1390
|
+
parameterPath: "nextLink",
|
|
1391
|
+
mapper: {
|
|
1392
|
+
serializedName: "nextLink",
|
|
1393
|
+
required: true,
|
|
1394
|
+
type: {
|
|
1395
|
+
name: "String"
|
|
1396
|
+
}
|
|
1397
|
+
},
|
|
1398
|
+
skipEncoding: true
|
|
1399
|
+
};
|
|
1400
|
+
const checkNameAvailabilityParameters = {
|
|
1401
|
+
parameterPath: "checkNameAvailabilityParameters",
|
|
1402
|
+
mapper: CheckNameAvailabilityParameters
|
|
1403
|
+
};
|
|
1404
|
+
const privateEndpointConnectionName = {
|
|
1405
|
+
parameterPath: "privateEndpointConnectionName",
|
|
1406
|
+
mapper: {
|
|
1407
|
+
serializedName: "privateEndpointConnectionName",
|
|
1408
|
+
required: true,
|
|
1409
|
+
type: {
|
|
1410
|
+
name: "String"
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
};
|
|
1414
|
+
const privateEndpointConnection = {
|
|
1415
|
+
parameterPath: "privateEndpointConnection",
|
|
1416
|
+
mapper: PrivateEndpointConnection
|
|
1417
|
+
};
|
|
1418
|
+
const groupName = {
|
|
1419
|
+
parameterPath: "groupName",
|
|
1420
|
+
mapper: {
|
|
1421
|
+
serializedName: "groupName",
|
|
1422
|
+
required: true,
|
|
1423
|
+
type: {
|
|
1424
|
+
name: "String"
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
};
|
|
1428
|
+
const keyValueName = {
|
|
1429
|
+
parameterPath: "keyValueName",
|
|
1430
|
+
mapper: {
|
|
1431
|
+
serializedName: "keyValueName",
|
|
1432
|
+
required: true,
|
|
1433
|
+
type: {
|
|
1434
|
+
name: "String"
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
};
|
|
1438
|
+
const keyValueParameters = {
|
|
1439
|
+
parameterPath: ["options", "keyValueParameters"],
|
|
1440
|
+
mapper: KeyValue
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
/*
|
|
1444
|
+
* Copyright (c) Microsoft Corporation.
|
|
1445
|
+
* Licensed under the MIT License.
|
|
1446
|
+
*
|
|
1447
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1448
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1449
|
+
*/
|
|
1450
|
+
class LroImpl {
|
|
1451
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
1452
|
+
this.sendOperationFn = sendOperationFn;
|
|
1453
|
+
this.args = args;
|
|
1454
|
+
this.spec = spec;
|
|
1455
|
+
this.requestPath = requestPath;
|
|
1456
|
+
this.requestMethod = requestMethod;
|
|
1457
|
+
}
|
|
1458
|
+
sendInitialRequest() {
|
|
1459
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1460
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1463
|
+
sendPollRequest(path) {
|
|
1464
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1465
|
+
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1466
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1467
|
+
});
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
/*
|
|
1472
|
+
* Copyright (c) Microsoft Corporation.
|
|
1473
|
+
* Licensed under the MIT License.
|
|
1474
|
+
*
|
|
1475
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1476
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1477
|
+
*/
|
|
1478
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1479
|
+
/** Class containing ConfigurationStores operations. */
|
|
1480
|
+
class ConfigurationStoresImpl {
|
|
1481
|
+
/**
|
|
1482
|
+
* Initialize a new instance of the class ConfigurationStores class.
|
|
1483
|
+
* @param client Reference to the service client
|
|
1484
|
+
*/
|
|
1485
|
+
constructor(client) {
|
|
1486
|
+
this.client = client;
|
|
1487
|
+
}
|
|
1488
|
+
/**
|
|
1489
|
+
* Lists the configuration stores for a given subscription.
|
|
1490
|
+
* @param options The options parameters.
|
|
1491
|
+
*/
|
|
1492
|
+
list(options) {
|
|
1493
|
+
const iter = this.listPagingAll(options);
|
|
1494
|
+
return {
|
|
1495
|
+
next() {
|
|
1496
|
+
return iter.next();
|
|
1497
|
+
},
|
|
1498
|
+
[Symbol.asyncIterator]() {
|
|
1499
|
+
return this;
|
|
1500
|
+
},
|
|
1501
|
+
byPage: () => {
|
|
1502
|
+
return this.listPagingPage(options);
|
|
1503
|
+
}
|
|
1504
|
+
};
|
|
1505
|
+
}
|
|
1506
|
+
listPagingPage(options) {
|
|
1507
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1508
|
+
let result = yield tslib.__await(this._list(options));
|
|
1509
|
+
yield yield tslib.__await(result.value || []);
|
|
1510
|
+
let continuationToken = result.nextLink;
|
|
1511
|
+
while (continuationToken) {
|
|
1512
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1513
|
+
continuationToken = result.nextLink;
|
|
1514
|
+
yield yield tslib.__await(result.value || []);
|
|
1515
|
+
}
|
|
1516
|
+
});
|
|
1517
|
+
}
|
|
1518
|
+
listPagingAll(options) {
|
|
1519
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1520
|
+
var e_1, _a;
|
|
1521
|
+
try {
|
|
1522
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1523
|
+
const page = _c.value;
|
|
1524
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1528
|
+
finally {
|
|
1529
|
+
try {
|
|
1530
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1531
|
+
}
|
|
1532
|
+
finally { if (e_1) throw e_1.error; }
|
|
1533
|
+
}
|
|
1534
|
+
});
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* Lists the configuration stores for a given resource group.
|
|
1538
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
1539
|
+
* @param options The options parameters.
|
|
1540
|
+
*/
|
|
1541
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
1542
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1543
|
+
return {
|
|
1544
|
+
next() {
|
|
1545
|
+
return iter.next();
|
|
1546
|
+
},
|
|
1547
|
+
[Symbol.asyncIterator]() {
|
|
1548
|
+
return this;
|
|
1549
|
+
},
|
|
1550
|
+
byPage: () => {
|
|
1551
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
1552
|
+
}
|
|
1553
|
+
};
|
|
1554
|
+
}
|
|
1555
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1556
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1557
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1558
|
+
yield yield tslib.__await(result.value || []);
|
|
1559
|
+
let continuationToken = result.nextLink;
|
|
1560
|
+
while (continuationToken) {
|
|
1561
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1562
|
+
continuationToken = result.nextLink;
|
|
1563
|
+
yield yield tslib.__await(result.value || []);
|
|
1564
|
+
}
|
|
1565
|
+
});
|
|
1566
|
+
}
|
|
1567
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1568
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1569
|
+
var e_2, _a;
|
|
1570
|
+
try {
|
|
1571
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1572
|
+
const page = _c.value;
|
|
1573
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1577
|
+
finally {
|
|
1578
|
+
try {
|
|
1579
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1580
|
+
}
|
|
1581
|
+
finally { if (e_2) throw e_2.error; }
|
|
1582
|
+
}
|
|
1583
|
+
});
|
|
1584
|
+
}
|
|
1585
|
+
/**
|
|
1586
|
+
* Lists the access key for the specified configuration store.
|
|
1587
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
1588
|
+
* @param configStoreName The name of the configuration store.
|
|
1589
|
+
* @param options The options parameters.
|
|
1590
|
+
*/
|
|
1591
|
+
listKeys(resourceGroupName, configStoreName, options) {
|
|
1592
|
+
const iter = this.listKeysPagingAll(resourceGroupName, configStoreName, options);
|
|
1593
|
+
return {
|
|
1594
|
+
next() {
|
|
1595
|
+
return iter.next();
|
|
1596
|
+
},
|
|
1597
|
+
[Symbol.asyncIterator]() {
|
|
1598
|
+
return this;
|
|
1599
|
+
},
|
|
1600
|
+
byPage: () => {
|
|
1601
|
+
return this.listKeysPagingPage(resourceGroupName, configStoreName, options);
|
|
1602
|
+
}
|
|
1603
|
+
};
|
|
1604
|
+
}
|
|
1605
|
+
listKeysPagingPage(resourceGroupName, configStoreName, options) {
|
|
1606
|
+
return tslib.__asyncGenerator(this, arguments, function* listKeysPagingPage_1() {
|
|
1607
|
+
let result = yield tslib.__await(this._listKeys(resourceGroupName, configStoreName, options));
|
|
1608
|
+
yield yield tslib.__await(result.value || []);
|
|
1609
|
+
let continuationToken = result.nextLink;
|
|
1610
|
+
while (continuationToken) {
|
|
1611
|
+
result = yield tslib.__await(this._listKeysNext(resourceGroupName, configStoreName, continuationToken, options));
|
|
1612
|
+
continuationToken = result.nextLink;
|
|
1613
|
+
yield yield tslib.__await(result.value || []);
|
|
1614
|
+
}
|
|
1615
|
+
});
|
|
1616
|
+
}
|
|
1617
|
+
listKeysPagingAll(resourceGroupName, configStoreName, options) {
|
|
1618
|
+
return tslib.__asyncGenerator(this, arguments, function* listKeysPagingAll_1() {
|
|
1619
|
+
var e_3, _a;
|
|
1620
|
+
try {
|
|
1621
|
+
for (var _b = tslib.__asyncValues(this.listKeysPagingPage(resourceGroupName, configStoreName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1622
|
+
const page = _c.value;
|
|
1623
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1627
|
+
finally {
|
|
1628
|
+
try {
|
|
1629
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1630
|
+
}
|
|
1631
|
+
finally { if (e_3) throw e_3.error; }
|
|
1632
|
+
}
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* Lists the configuration stores for a given subscription.
|
|
1637
|
+
* @param options The options parameters.
|
|
1638
|
+
*/
|
|
1639
|
+
_list(options) {
|
|
1640
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1641
|
+
}
|
|
1642
|
+
/**
|
|
1643
|
+
* Lists the configuration stores for a given resource group.
|
|
1644
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
1645
|
+
* @param options The options parameters.
|
|
1646
|
+
*/
|
|
1647
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
1648
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1649
|
+
}
|
|
1650
|
+
/**
|
|
1651
|
+
* Gets the properties of the specified configuration store.
|
|
1652
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
1653
|
+
* @param configStoreName The name of the configuration store.
|
|
1654
|
+
* @param options The options parameters.
|
|
1655
|
+
*/
|
|
1656
|
+
get(resourceGroupName, configStoreName, options) {
|
|
1657
|
+
return this.client.sendOperationRequest({ resourceGroupName, configStoreName, options }, getOperationSpec);
|
|
1658
|
+
}
|
|
1659
|
+
/**
|
|
1660
|
+
* Creates a configuration store with the specified parameters.
|
|
1661
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
1662
|
+
* @param configStoreName The name of the configuration store.
|
|
1663
|
+
* @param configStoreCreationParameters The parameters for creating a configuration store.
|
|
1664
|
+
* @param options The options parameters.
|
|
1665
|
+
*/
|
|
1666
|
+
beginCreate(resourceGroupName, configStoreName, configStoreCreationParameters, options) {
|
|
1667
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1668
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1669
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1670
|
+
});
|
|
1671
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1672
|
+
var _a;
|
|
1673
|
+
let currentRawResponse = undefined;
|
|
1674
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1675
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1676
|
+
currentRawResponse = rawResponse;
|
|
1677
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1678
|
+
};
|
|
1679
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1680
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1681
|
+
return {
|
|
1682
|
+
flatResponse,
|
|
1683
|
+
rawResponse: {
|
|
1684
|
+
statusCode: currentRawResponse.status,
|
|
1685
|
+
body: currentRawResponse.parsedBody,
|
|
1686
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1687
|
+
}
|
|
1688
|
+
};
|
|
1689
|
+
});
|
|
1690
|
+
const lro = new LroImpl(sendOperation, {
|
|
1691
|
+
resourceGroupName,
|
|
1692
|
+
configStoreName,
|
|
1693
|
+
configStoreCreationParameters,
|
|
1694
|
+
options
|
|
1695
|
+
}, createOperationSpec);
|
|
1696
|
+
return new coreLro.LroEngine(lro, {
|
|
1697
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1698
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1699
|
+
});
|
|
1700
|
+
});
|
|
1701
|
+
}
|
|
1702
|
+
/**
|
|
1703
|
+
* Creates a configuration store with the specified parameters.
|
|
1704
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
1705
|
+
* @param configStoreName The name of the configuration store.
|
|
1706
|
+
* @param configStoreCreationParameters The parameters for creating a configuration store.
|
|
1707
|
+
* @param options The options parameters.
|
|
1708
|
+
*/
|
|
1709
|
+
beginCreateAndWait(resourceGroupName, configStoreName, configStoreCreationParameters, options) {
|
|
1710
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1711
|
+
const poller = yield this.beginCreate(resourceGroupName, configStoreName, configStoreCreationParameters, options);
|
|
1712
|
+
return poller.pollUntilDone();
|
|
1713
|
+
});
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* Deletes a configuration store.
|
|
1717
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
1718
|
+
* @param configStoreName The name of the configuration store.
|
|
1719
|
+
* @param options The options parameters.
|
|
1720
|
+
*/
|
|
1721
|
+
beginDelete(resourceGroupName, configStoreName, options) {
|
|
1722
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1723
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1724
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1725
|
+
});
|
|
1726
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1727
|
+
var _a;
|
|
1728
|
+
let currentRawResponse = undefined;
|
|
1729
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1730
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1731
|
+
currentRawResponse = rawResponse;
|
|
1732
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1733
|
+
};
|
|
1734
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1735
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1736
|
+
return {
|
|
1737
|
+
flatResponse,
|
|
1738
|
+
rawResponse: {
|
|
1739
|
+
statusCode: currentRawResponse.status,
|
|
1740
|
+
body: currentRawResponse.parsedBody,
|
|
1741
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1742
|
+
}
|
|
1743
|
+
};
|
|
1744
|
+
});
|
|
1745
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, configStoreName, options }, deleteOperationSpec);
|
|
1746
|
+
return new coreLro.LroEngine(lro, {
|
|
1747
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1748
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1749
|
+
});
|
|
1750
|
+
});
|
|
1751
|
+
}
|
|
1752
|
+
/**
|
|
1753
|
+
* Deletes a configuration store.
|
|
1754
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
1755
|
+
* @param configStoreName The name of the configuration store.
|
|
1756
|
+
* @param options The options parameters.
|
|
1757
|
+
*/
|
|
1758
|
+
beginDeleteAndWait(resourceGroupName, configStoreName, options) {
|
|
1759
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1760
|
+
const poller = yield this.beginDelete(resourceGroupName, configStoreName, options);
|
|
1761
|
+
return poller.pollUntilDone();
|
|
1762
|
+
});
|
|
1763
|
+
}
|
|
1764
|
+
/**
|
|
1765
|
+
* Updates a configuration store with the specified parameters.
|
|
1766
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
1767
|
+
* @param configStoreName The name of the configuration store.
|
|
1768
|
+
* @param configStoreUpdateParameters The parameters for updating a configuration store.
|
|
1769
|
+
* @param options The options parameters.
|
|
1770
|
+
*/
|
|
1771
|
+
beginUpdate(resourceGroupName, configStoreName, configStoreUpdateParameters, options) {
|
|
1772
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1773
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1774
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1775
|
+
});
|
|
1776
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1777
|
+
var _a;
|
|
1778
|
+
let currentRawResponse = undefined;
|
|
1779
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1780
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1781
|
+
currentRawResponse = rawResponse;
|
|
1782
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1783
|
+
};
|
|
1784
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1785
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1786
|
+
return {
|
|
1787
|
+
flatResponse,
|
|
1788
|
+
rawResponse: {
|
|
1789
|
+
statusCode: currentRawResponse.status,
|
|
1790
|
+
body: currentRawResponse.parsedBody,
|
|
1791
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1792
|
+
}
|
|
1793
|
+
};
|
|
1794
|
+
});
|
|
1795
|
+
const lro = new LroImpl(sendOperation, {
|
|
1796
|
+
resourceGroupName,
|
|
1797
|
+
configStoreName,
|
|
1798
|
+
configStoreUpdateParameters,
|
|
1799
|
+
options
|
|
1800
|
+
}, updateOperationSpec);
|
|
1801
|
+
return new coreLro.LroEngine(lro, {
|
|
1802
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1803
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
1804
|
+
});
|
|
1805
|
+
});
|
|
1806
|
+
}
|
|
1807
|
+
/**
|
|
1808
|
+
* Updates a configuration store with the specified parameters.
|
|
1809
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
1810
|
+
* @param configStoreName The name of the configuration store.
|
|
1811
|
+
* @param configStoreUpdateParameters The parameters for updating a configuration store.
|
|
1812
|
+
* @param options The options parameters.
|
|
1813
|
+
*/
|
|
1814
|
+
beginUpdateAndWait(resourceGroupName, configStoreName, configStoreUpdateParameters, options) {
|
|
1815
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1816
|
+
const poller = yield this.beginUpdate(resourceGroupName, configStoreName, configStoreUpdateParameters, options);
|
|
1817
|
+
return poller.pollUntilDone();
|
|
1818
|
+
});
|
|
1819
|
+
}
|
|
1820
|
+
/**
|
|
1821
|
+
* Lists the access key for the specified configuration store.
|
|
1822
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
1823
|
+
* @param configStoreName The name of the configuration store.
|
|
1824
|
+
* @param options The options parameters.
|
|
1825
|
+
*/
|
|
1826
|
+
_listKeys(resourceGroupName, configStoreName, options) {
|
|
1827
|
+
return this.client.sendOperationRequest({ resourceGroupName, configStoreName, options }, listKeysOperationSpec);
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* Regenerates an access key for the specified configuration store.
|
|
1831
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
1832
|
+
* @param configStoreName The name of the configuration store.
|
|
1833
|
+
* @param regenerateKeyParameters The parameters for regenerating an access key.
|
|
1834
|
+
* @param options The options parameters.
|
|
1835
|
+
*/
|
|
1836
|
+
regenerateKey(resourceGroupName, configStoreName, regenerateKeyParameters, options) {
|
|
1837
|
+
return this.client.sendOperationRequest({ resourceGroupName, configStoreName, regenerateKeyParameters, options }, regenerateKeyOperationSpec);
|
|
1838
|
+
}
|
|
1839
|
+
/**
|
|
1840
|
+
* ListNext
|
|
1841
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1842
|
+
* @param options The options parameters.
|
|
1843
|
+
*/
|
|
1844
|
+
_listNext(nextLink, options) {
|
|
1845
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* ListByResourceGroupNext
|
|
1849
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
1850
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1851
|
+
* @param options The options parameters.
|
|
1852
|
+
*/
|
|
1853
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1854
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1855
|
+
}
|
|
1856
|
+
/**
|
|
1857
|
+
* ListKeysNext
|
|
1858
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
1859
|
+
* @param configStoreName The name of the configuration store.
|
|
1860
|
+
* @param nextLink The nextLink from the previous successful call to the ListKeys method.
|
|
1861
|
+
* @param options The options parameters.
|
|
1862
|
+
*/
|
|
1863
|
+
_listKeysNext(resourceGroupName, configStoreName, nextLink, options) {
|
|
1864
|
+
return this.client.sendOperationRequest({ resourceGroupName, configStoreName, nextLink, options }, listKeysNextOperationSpec);
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
// Operation Specifications
|
|
1868
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1869
|
+
const listOperationSpec = {
|
|
1870
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/configurationStores",
|
|
1871
|
+
httpMethod: "GET",
|
|
1872
|
+
responses: {
|
|
1873
|
+
200: {
|
|
1874
|
+
bodyMapper: ConfigurationStoreListResult
|
|
1875
|
+
},
|
|
1876
|
+
default: {
|
|
1877
|
+
bodyMapper: ErrorResponse
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
queryParameters: [apiVersion, skipToken],
|
|
1881
|
+
urlParameters: [$host, subscriptionId],
|
|
1882
|
+
headerParameters: [accept],
|
|
1883
|
+
serializer
|
|
1884
|
+
};
|
|
1885
|
+
const listByResourceGroupOperationSpec = {
|
|
1886
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores",
|
|
1887
|
+
httpMethod: "GET",
|
|
1888
|
+
responses: {
|
|
1889
|
+
200: {
|
|
1890
|
+
bodyMapper: ConfigurationStoreListResult
|
|
1891
|
+
},
|
|
1892
|
+
default: {
|
|
1893
|
+
bodyMapper: ErrorResponse
|
|
1894
|
+
}
|
|
1895
|
+
},
|
|
1896
|
+
queryParameters: [apiVersion, skipToken],
|
|
1897
|
+
urlParameters: [
|
|
1898
|
+
$host,
|
|
1899
|
+
subscriptionId,
|
|
1900
|
+
resourceGroupName
|
|
1901
|
+
],
|
|
1902
|
+
headerParameters: [accept],
|
|
1903
|
+
serializer
|
|
1904
|
+
};
|
|
1905
|
+
const getOperationSpec = {
|
|
1906
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}",
|
|
1907
|
+
httpMethod: "GET",
|
|
1908
|
+
responses: {
|
|
1909
|
+
200: {
|
|
1910
|
+
bodyMapper: ConfigurationStore
|
|
1911
|
+
},
|
|
1912
|
+
default: {
|
|
1913
|
+
bodyMapper: ErrorResponse
|
|
1914
|
+
}
|
|
1915
|
+
},
|
|
1916
|
+
queryParameters: [apiVersion],
|
|
1917
|
+
urlParameters: [
|
|
1918
|
+
$host,
|
|
1919
|
+
subscriptionId,
|
|
1920
|
+
resourceGroupName,
|
|
1921
|
+
configStoreName
|
|
1922
|
+
],
|
|
1923
|
+
headerParameters: [accept],
|
|
1924
|
+
serializer
|
|
1925
|
+
};
|
|
1926
|
+
const createOperationSpec = {
|
|
1927
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}",
|
|
1928
|
+
httpMethod: "PUT",
|
|
1929
|
+
responses: {
|
|
1930
|
+
200: {
|
|
1931
|
+
bodyMapper: ConfigurationStore
|
|
1932
|
+
},
|
|
1933
|
+
201: {
|
|
1934
|
+
bodyMapper: ConfigurationStore
|
|
1935
|
+
},
|
|
1936
|
+
202: {
|
|
1937
|
+
bodyMapper: ConfigurationStore
|
|
1938
|
+
},
|
|
1939
|
+
204: {
|
|
1940
|
+
bodyMapper: ConfigurationStore
|
|
1941
|
+
},
|
|
1942
|
+
default: {
|
|
1943
|
+
bodyMapper: ErrorResponse
|
|
1944
|
+
}
|
|
1945
|
+
},
|
|
1946
|
+
requestBody: configStoreCreationParameters,
|
|
1947
|
+
queryParameters: [apiVersion],
|
|
1948
|
+
urlParameters: [
|
|
1949
|
+
$host,
|
|
1950
|
+
subscriptionId,
|
|
1951
|
+
resourceGroupName,
|
|
1952
|
+
configStoreName
|
|
1953
|
+
],
|
|
1954
|
+
headerParameters: [accept, contentType],
|
|
1955
|
+
mediaType: "json",
|
|
1956
|
+
serializer
|
|
1957
|
+
};
|
|
1958
|
+
const deleteOperationSpec = {
|
|
1959
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}",
|
|
1960
|
+
httpMethod: "DELETE",
|
|
1961
|
+
responses: {
|
|
1962
|
+
200: {},
|
|
1963
|
+
201: {},
|
|
1964
|
+
202: {},
|
|
1965
|
+
204: {},
|
|
1966
|
+
default: {
|
|
1967
|
+
bodyMapper: ErrorResponse
|
|
1968
|
+
}
|
|
1969
|
+
},
|
|
1970
|
+
queryParameters: [apiVersion],
|
|
1971
|
+
urlParameters: [
|
|
1972
|
+
$host,
|
|
1973
|
+
subscriptionId,
|
|
1974
|
+
resourceGroupName,
|
|
1975
|
+
configStoreName
|
|
1976
|
+
],
|
|
1977
|
+
headerParameters: [accept],
|
|
1978
|
+
serializer
|
|
1979
|
+
};
|
|
1980
|
+
const updateOperationSpec = {
|
|
1981
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}",
|
|
1982
|
+
httpMethod: "PATCH",
|
|
1983
|
+
responses: {
|
|
1984
|
+
200: {
|
|
1985
|
+
bodyMapper: ConfigurationStore
|
|
1986
|
+
},
|
|
1987
|
+
201: {
|
|
1988
|
+
bodyMapper: ConfigurationStore
|
|
1989
|
+
},
|
|
1990
|
+
202: {
|
|
1991
|
+
bodyMapper: ConfigurationStore
|
|
1992
|
+
},
|
|
1993
|
+
204: {
|
|
1994
|
+
bodyMapper: ConfigurationStore
|
|
1995
|
+
},
|
|
1996
|
+
default: {
|
|
1997
|
+
bodyMapper: ErrorResponse
|
|
1998
|
+
}
|
|
1999
|
+
},
|
|
2000
|
+
requestBody: configStoreUpdateParameters,
|
|
2001
|
+
queryParameters: [apiVersion],
|
|
2002
|
+
urlParameters: [
|
|
2003
|
+
$host,
|
|
2004
|
+
subscriptionId,
|
|
2005
|
+
resourceGroupName,
|
|
2006
|
+
configStoreName
|
|
2007
|
+
],
|
|
2008
|
+
headerParameters: [accept, contentType],
|
|
2009
|
+
mediaType: "json",
|
|
2010
|
+
serializer
|
|
2011
|
+
};
|
|
2012
|
+
const listKeysOperationSpec = {
|
|
2013
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeys",
|
|
2014
|
+
httpMethod: "POST",
|
|
2015
|
+
responses: {
|
|
2016
|
+
200: {
|
|
2017
|
+
bodyMapper: ApiKeyListResult
|
|
2018
|
+
},
|
|
2019
|
+
default: {
|
|
2020
|
+
bodyMapper: ErrorResponse
|
|
2021
|
+
}
|
|
2022
|
+
},
|
|
2023
|
+
queryParameters: [apiVersion, skipToken],
|
|
2024
|
+
urlParameters: [
|
|
2025
|
+
$host,
|
|
2026
|
+
subscriptionId,
|
|
2027
|
+
resourceGroupName,
|
|
2028
|
+
configStoreName
|
|
2029
|
+
],
|
|
2030
|
+
headerParameters: [accept],
|
|
2031
|
+
serializer
|
|
2032
|
+
};
|
|
2033
|
+
const regenerateKeyOperationSpec = {
|
|
2034
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/regenerateKey",
|
|
2035
|
+
httpMethod: "POST",
|
|
2036
|
+
responses: {
|
|
2037
|
+
200: {
|
|
2038
|
+
bodyMapper: ApiKey
|
|
2039
|
+
},
|
|
2040
|
+
default: {
|
|
2041
|
+
bodyMapper: ErrorResponse
|
|
2042
|
+
}
|
|
2043
|
+
},
|
|
2044
|
+
requestBody: regenerateKeyParameters,
|
|
2045
|
+
queryParameters: [apiVersion],
|
|
2046
|
+
urlParameters: [
|
|
2047
|
+
$host,
|
|
2048
|
+
subscriptionId,
|
|
2049
|
+
resourceGroupName,
|
|
2050
|
+
configStoreName
|
|
2051
|
+
],
|
|
2052
|
+
headerParameters: [accept, contentType],
|
|
2053
|
+
mediaType: "json",
|
|
2054
|
+
serializer
|
|
2055
|
+
};
|
|
2056
|
+
const listNextOperationSpec = {
|
|
2057
|
+
path: "{nextLink}",
|
|
2058
|
+
httpMethod: "GET",
|
|
2059
|
+
responses: {
|
|
2060
|
+
200: {
|
|
2061
|
+
bodyMapper: ConfigurationStoreListResult
|
|
2062
|
+
},
|
|
2063
|
+
default: {
|
|
2064
|
+
bodyMapper: ErrorResponse
|
|
2065
|
+
}
|
|
2066
|
+
},
|
|
2067
|
+
queryParameters: [apiVersion, skipToken],
|
|
2068
|
+
urlParameters: [
|
|
2069
|
+
$host,
|
|
2070
|
+
subscriptionId,
|
|
2071
|
+
nextLink
|
|
2072
|
+
],
|
|
2073
|
+
headerParameters: [accept],
|
|
2074
|
+
serializer
|
|
2075
|
+
};
|
|
2076
|
+
const listByResourceGroupNextOperationSpec = {
|
|
2077
|
+
path: "{nextLink}",
|
|
2078
|
+
httpMethod: "GET",
|
|
2079
|
+
responses: {
|
|
2080
|
+
200: {
|
|
2081
|
+
bodyMapper: ConfigurationStoreListResult
|
|
2082
|
+
},
|
|
2083
|
+
default: {
|
|
2084
|
+
bodyMapper: ErrorResponse
|
|
2085
|
+
}
|
|
2086
|
+
},
|
|
2087
|
+
queryParameters: [apiVersion, skipToken],
|
|
2088
|
+
urlParameters: [
|
|
2089
|
+
$host,
|
|
2090
|
+
subscriptionId,
|
|
2091
|
+
resourceGroupName,
|
|
2092
|
+
nextLink
|
|
2093
|
+
],
|
|
2094
|
+
headerParameters: [accept],
|
|
2095
|
+
serializer
|
|
2096
|
+
};
|
|
2097
|
+
const listKeysNextOperationSpec = {
|
|
2098
|
+
path: "{nextLink}",
|
|
2099
|
+
httpMethod: "GET",
|
|
2100
|
+
responses: {
|
|
2101
|
+
200: {
|
|
2102
|
+
bodyMapper: ApiKeyListResult
|
|
2103
|
+
},
|
|
2104
|
+
default: {
|
|
2105
|
+
bodyMapper: ErrorResponse
|
|
2106
|
+
}
|
|
2107
|
+
},
|
|
2108
|
+
queryParameters: [apiVersion, skipToken],
|
|
2109
|
+
urlParameters: [
|
|
2110
|
+
$host,
|
|
2111
|
+
subscriptionId,
|
|
2112
|
+
resourceGroupName,
|
|
2113
|
+
configStoreName,
|
|
2114
|
+
nextLink
|
|
2115
|
+
],
|
|
2116
|
+
headerParameters: [accept],
|
|
2117
|
+
serializer
|
|
2118
|
+
};
|
|
2119
|
+
|
|
2120
|
+
/*
|
|
2121
|
+
* Copyright (c) Microsoft Corporation.
|
|
2122
|
+
* Licensed under the MIT License.
|
|
2123
|
+
*
|
|
2124
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2125
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2126
|
+
*/
|
|
2127
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2128
|
+
/** Class containing Operations operations. */
|
|
2129
|
+
class OperationsImpl {
|
|
2130
|
+
/**
|
|
2131
|
+
* Initialize a new instance of the class Operations class.
|
|
2132
|
+
* @param client Reference to the service client
|
|
2133
|
+
*/
|
|
2134
|
+
constructor(client) {
|
|
2135
|
+
this.client = client;
|
|
2136
|
+
}
|
|
2137
|
+
/**
|
|
2138
|
+
* Lists the operations available from this provider.
|
|
2139
|
+
* @param options The options parameters.
|
|
2140
|
+
*/
|
|
2141
|
+
list(options) {
|
|
2142
|
+
const iter = this.listPagingAll(options);
|
|
2143
|
+
return {
|
|
2144
|
+
next() {
|
|
2145
|
+
return iter.next();
|
|
2146
|
+
},
|
|
2147
|
+
[Symbol.asyncIterator]() {
|
|
2148
|
+
return this;
|
|
2149
|
+
},
|
|
2150
|
+
byPage: () => {
|
|
2151
|
+
return this.listPagingPage(options);
|
|
2152
|
+
}
|
|
2153
|
+
};
|
|
2154
|
+
}
|
|
2155
|
+
listPagingPage(options) {
|
|
2156
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2157
|
+
let result = yield tslib.__await(this._list(options));
|
|
2158
|
+
yield yield tslib.__await(result.value || []);
|
|
2159
|
+
let continuationToken = result.nextLink;
|
|
2160
|
+
while (continuationToken) {
|
|
2161
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2162
|
+
continuationToken = result.nextLink;
|
|
2163
|
+
yield yield tslib.__await(result.value || []);
|
|
2164
|
+
}
|
|
2165
|
+
});
|
|
2166
|
+
}
|
|
2167
|
+
listPagingAll(options) {
|
|
2168
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2169
|
+
var e_1, _a;
|
|
2170
|
+
try {
|
|
2171
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2172
|
+
const page = _c.value;
|
|
2173
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2177
|
+
finally {
|
|
2178
|
+
try {
|
|
2179
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2180
|
+
}
|
|
2181
|
+
finally { if (e_1) throw e_1.error; }
|
|
2182
|
+
}
|
|
2183
|
+
});
|
|
2184
|
+
}
|
|
2185
|
+
/**
|
|
2186
|
+
* Checks whether the configuration store name is available for use.
|
|
2187
|
+
* @param checkNameAvailabilityParameters The object containing information for the availability
|
|
2188
|
+
* request.
|
|
2189
|
+
* @param options The options parameters.
|
|
2190
|
+
*/
|
|
2191
|
+
checkNameAvailability(checkNameAvailabilityParameters, options) {
|
|
2192
|
+
return this.client.sendOperationRequest({ checkNameAvailabilityParameters, options }, checkNameAvailabilityOperationSpec);
|
|
2193
|
+
}
|
|
2194
|
+
/**
|
|
2195
|
+
* Lists the operations available from this provider.
|
|
2196
|
+
* @param options The options parameters.
|
|
2197
|
+
*/
|
|
2198
|
+
_list(options) {
|
|
2199
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
2200
|
+
}
|
|
2201
|
+
/**
|
|
2202
|
+
* ListNext
|
|
2203
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2204
|
+
* @param options The options parameters.
|
|
2205
|
+
*/
|
|
2206
|
+
_listNext(nextLink, options) {
|
|
2207
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
// Operation Specifications
|
|
2211
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2212
|
+
const checkNameAvailabilityOperationSpec = {
|
|
2213
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/checkNameAvailability",
|
|
2214
|
+
httpMethod: "POST",
|
|
2215
|
+
responses: {
|
|
2216
|
+
200: {
|
|
2217
|
+
bodyMapper: NameAvailabilityStatus
|
|
2218
|
+
},
|
|
2219
|
+
default: {
|
|
2220
|
+
bodyMapper: ErrorResponse
|
|
2221
|
+
}
|
|
2222
|
+
},
|
|
2223
|
+
requestBody: checkNameAvailabilityParameters,
|
|
2224
|
+
queryParameters: [apiVersion],
|
|
2225
|
+
urlParameters: [$host, subscriptionId],
|
|
2226
|
+
headerParameters: [accept, contentType],
|
|
2227
|
+
mediaType: "json",
|
|
2228
|
+
serializer: serializer$1
|
|
2229
|
+
};
|
|
2230
|
+
const listOperationSpec$1 = {
|
|
2231
|
+
path: "/providers/Microsoft.AppConfiguration/operations",
|
|
2232
|
+
httpMethod: "GET",
|
|
2233
|
+
responses: {
|
|
2234
|
+
200: {
|
|
2235
|
+
bodyMapper: OperationDefinitionListResult
|
|
2236
|
+
},
|
|
2237
|
+
default: {
|
|
2238
|
+
bodyMapper: ErrorResponse
|
|
2239
|
+
}
|
|
2240
|
+
},
|
|
2241
|
+
queryParameters: [apiVersion, skipToken],
|
|
2242
|
+
urlParameters: [$host],
|
|
2243
|
+
headerParameters: [accept],
|
|
2244
|
+
serializer: serializer$1
|
|
2245
|
+
};
|
|
2246
|
+
const listNextOperationSpec$1 = {
|
|
2247
|
+
path: "{nextLink}",
|
|
2248
|
+
httpMethod: "GET",
|
|
2249
|
+
responses: {
|
|
2250
|
+
200: {
|
|
2251
|
+
bodyMapper: OperationDefinitionListResult
|
|
2252
|
+
},
|
|
2253
|
+
default: {
|
|
2254
|
+
bodyMapper: ErrorResponse
|
|
2255
|
+
}
|
|
2256
|
+
},
|
|
2257
|
+
queryParameters: [apiVersion, skipToken],
|
|
2258
|
+
urlParameters: [$host, nextLink],
|
|
2259
|
+
headerParameters: [accept],
|
|
2260
|
+
serializer: serializer$1
|
|
2261
|
+
};
|
|
2262
|
+
|
|
2263
|
+
/*
|
|
2264
|
+
* Copyright (c) Microsoft Corporation.
|
|
2265
|
+
* Licensed under the MIT License.
|
|
2266
|
+
*
|
|
2267
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2268
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2269
|
+
*/
|
|
2270
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2271
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
2272
|
+
class PrivateEndpointConnectionsImpl {
|
|
2273
|
+
/**
|
|
2274
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
2275
|
+
* @param client Reference to the service client
|
|
2276
|
+
*/
|
|
2277
|
+
constructor(client) {
|
|
2278
|
+
this.client = client;
|
|
2279
|
+
}
|
|
2280
|
+
/**
|
|
2281
|
+
* Lists all private endpoint connections for a configuration store.
|
|
2282
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2283
|
+
* @param configStoreName The name of the configuration store.
|
|
2284
|
+
* @param options The options parameters.
|
|
2285
|
+
*/
|
|
2286
|
+
listByConfigurationStore(resourceGroupName, configStoreName, options) {
|
|
2287
|
+
const iter = this.listByConfigurationStorePagingAll(resourceGroupName, configStoreName, options);
|
|
2288
|
+
return {
|
|
2289
|
+
next() {
|
|
2290
|
+
return iter.next();
|
|
2291
|
+
},
|
|
2292
|
+
[Symbol.asyncIterator]() {
|
|
2293
|
+
return this;
|
|
2294
|
+
},
|
|
2295
|
+
byPage: () => {
|
|
2296
|
+
return this.listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options);
|
|
2297
|
+
}
|
|
2298
|
+
};
|
|
2299
|
+
}
|
|
2300
|
+
listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options) {
|
|
2301
|
+
return tslib.__asyncGenerator(this, arguments, function* listByConfigurationStorePagingPage_1() {
|
|
2302
|
+
let result = yield tslib.__await(this._listByConfigurationStore(resourceGroupName, configStoreName, options));
|
|
2303
|
+
yield yield tslib.__await(result.value || []);
|
|
2304
|
+
let continuationToken = result.nextLink;
|
|
2305
|
+
while (continuationToken) {
|
|
2306
|
+
result = yield tslib.__await(this._listByConfigurationStoreNext(resourceGroupName, configStoreName, continuationToken, options));
|
|
2307
|
+
continuationToken = result.nextLink;
|
|
2308
|
+
yield yield tslib.__await(result.value || []);
|
|
2309
|
+
}
|
|
2310
|
+
});
|
|
2311
|
+
}
|
|
2312
|
+
listByConfigurationStorePagingAll(resourceGroupName, configStoreName, options) {
|
|
2313
|
+
return tslib.__asyncGenerator(this, arguments, function* listByConfigurationStorePagingAll_1() {
|
|
2314
|
+
var e_1, _a;
|
|
2315
|
+
try {
|
|
2316
|
+
for (var _b = tslib.__asyncValues(this.listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2317
|
+
const page = _c.value;
|
|
2318
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2322
|
+
finally {
|
|
2323
|
+
try {
|
|
2324
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2325
|
+
}
|
|
2326
|
+
finally { if (e_1) throw e_1.error; }
|
|
2327
|
+
}
|
|
2328
|
+
});
|
|
2329
|
+
}
|
|
2330
|
+
/**
|
|
2331
|
+
* Lists all private endpoint connections for a configuration store.
|
|
2332
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2333
|
+
* @param configStoreName The name of the configuration store.
|
|
2334
|
+
* @param options The options parameters.
|
|
2335
|
+
*/
|
|
2336
|
+
_listByConfigurationStore(resourceGroupName, configStoreName, options) {
|
|
2337
|
+
return this.client.sendOperationRequest({ resourceGroupName, configStoreName, options }, listByConfigurationStoreOperationSpec);
|
|
2338
|
+
}
|
|
2339
|
+
/**
|
|
2340
|
+
* Gets the specified private endpoint connection associated with the configuration store.
|
|
2341
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2342
|
+
* @param configStoreName The name of the configuration store.
|
|
2343
|
+
* @param privateEndpointConnectionName Private endpoint connection name
|
|
2344
|
+
* @param options The options parameters.
|
|
2345
|
+
*/
|
|
2346
|
+
get(resourceGroupName, configStoreName, privateEndpointConnectionName, options) {
|
|
2347
|
+
return this.client.sendOperationRequest({
|
|
2348
|
+
resourceGroupName,
|
|
2349
|
+
configStoreName,
|
|
2350
|
+
privateEndpointConnectionName,
|
|
2351
|
+
options
|
|
2352
|
+
}, getOperationSpec$1);
|
|
2353
|
+
}
|
|
2354
|
+
/**
|
|
2355
|
+
* Update the state of the specified private endpoint connection associated with the configuration
|
|
2356
|
+
* store.
|
|
2357
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2358
|
+
* @param configStoreName The name of the configuration store.
|
|
2359
|
+
* @param privateEndpointConnectionName Private endpoint connection name
|
|
2360
|
+
* @param privateEndpointConnection The private endpoint connection properties.
|
|
2361
|
+
* @param options The options parameters.
|
|
2362
|
+
*/
|
|
2363
|
+
beginCreateOrUpdate(resourceGroupName, configStoreName, privateEndpointConnectionName, privateEndpointConnection, options) {
|
|
2364
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2365
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2366
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2367
|
+
});
|
|
2368
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2369
|
+
var _a;
|
|
2370
|
+
let currentRawResponse = undefined;
|
|
2371
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2372
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2373
|
+
currentRawResponse = rawResponse;
|
|
2374
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2375
|
+
};
|
|
2376
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2377
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2378
|
+
return {
|
|
2379
|
+
flatResponse,
|
|
2380
|
+
rawResponse: {
|
|
2381
|
+
statusCode: currentRawResponse.status,
|
|
2382
|
+
body: currentRawResponse.parsedBody,
|
|
2383
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2384
|
+
}
|
|
2385
|
+
};
|
|
2386
|
+
});
|
|
2387
|
+
const lro = new LroImpl(sendOperation, {
|
|
2388
|
+
resourceGroupName,
|
|
2389
|
+
configStoreName,
|
|
2390
|
+
privateEndpointConnectionName,
|
|
2391
|
+
privateEndpointConnection,
|
|
2392
|
+
options
|
|
2393
|
+
}, createOrUpdateOperationSpec);
|
|
2394
|
+
return new coreLro.LroEngine(lro, {
|
|
2395
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2396
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2397
|
+
});
|
|
2398
|
+
});
|
|
2399
|
+
}
|
|
2400
|
+
/**
|
|
2401
|
+
* Update the state of the specified private endpoint connection associated with the configuration
|
|
2402
|
+
* store.
|
|
2403
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2404
|
+
* @param configStoreName The name of the configuration store.
|
|
2405
|
+
* @param privateEndpointConnectionName Private endpoint connection name
|
|
2406
|
+
* @param privateEndpointConnection The private endpoint connection properties.
|
|
2407
|
+
* @param options The options parameters.
|
|
2408
|
+
*/
|
|
2409
|
+
beginCreateOrUpdateAndWait(resourceGroupName, configStoreName, privateEndpointConnectionName, privateEndpointConnection, options) {
|
|
2410
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2411
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, configStoreName, privateEndpointConnectionName, privateEndpointConnection, options);
|
|
2412
|
+
return poller.pollUntilDone();
|
|
2413
|
+
});
|
|
2414
|
+
}
|
|
2415
|
+
/**
|
|
2416
|
+
* Deletes a private endpoint connection.
|
|
2417
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2418
|
+
* @param configStoreName The name of the configuration store.
|
|
2419
|
+
* @param privateEndpointConnectionName Private endpoint connection name
|
|
2420
|
+
* @param options The options parameters.
|
|
2421
|
+
*/
|
|
2422
|
+
beginDelete(resourceGroupName, configStoreName, privateEndpointConnectionName, options) {
|
|
2423
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2424
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2425
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2426
|
+
});
|
|
2427
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2428
|
+
var _a;
|
|
2429
|
+
let currentRawResponse = undefined;
|
|
2430
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2431
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2432
|
+
currentRawResponse = rawResponse;
|
|
2433
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2434
|
+
};
|
|
2435
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2436
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2437
|
+
return {
|
|
2438
|
+
flatResponse,
|
|
2439
|
+
rawResponse: {
|
|
2440
|
+
statusCode: currentRawResponse.status,
|
|
2441
|
+
body: currentRawResponse.parsedBody,
|
|
2442
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2443
|
+
}
|
|
2444
|
+
};
|
|
2445
|
+
});
|
|
2446
|
+
const lro = new LroImpl(sendOperation, {
|
|
2447
|
+
resourceGroupName,
|
|
2448
|
+
configStoreName,
|
|
2449
|
+
privateEndpointConnectionName,
|
|
2450
|
+
options
|
|
2451
|
+
}, deleteOperationSpec$1);
|
|
2452
|
+
return new coreLro.LroEngine(lro, {
|
|
2453
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2454
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2455
|
+
});
|
|
2456
|
+
});
|
|
2457
|
+
}
|
|
2458
|
+
/**
|
|
2459
|
+
* Deletes a private endpoint connection.
|
|
2460
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2461
|
+
* @param configStoreName The name of the configuration store.
|
|
2462
|
+
* @param privateEndpointConnectionName Private endpoint connection name
|
|
2463
|
+
* @param options The options parameters.
|
|
2464
|
+
*/
|
|
2465
|
+
beginDeleteAndWait(resourceGroupName, configStoreName, privateEndpointConnectionName, options) {
|
|
2466
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2467
|
+
const poller = yield this.beginDelete(resourceGroupName, configStoreName, privateEndpointConnectionName, options);
|
|
2468
|
+
return poller.pollUntilDone();
|
|
2469
|
+
});
|
|
2470
|
+
}
|
|
2471
|
+
/**
|
|
2472
|
+
* ListByConfigurationStoreNext
|
|
2473
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2474
|
+
* @param configStoreName The name of the configuration store.
|
|
2475
|
+
* @param nextLink The nextLink from the previous successful call to the ListByConfigurationStore
|
|
2476
|
+
* method.
|
|
2477
|
+
* @param options The options parameters.
|
|
2478
|
+
*/
|
|
2479
|
+
_listByConfigurationStoreNext(resourceGroupName, configStoreName, nextLink, options) {
|
|
2480
|
+
return this.client.sendOperationRequest({ resourceGroupName, configStoreName, nextLink, options }, listByConfigurationStoreNextOperationSpec);
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
// Operation Specifications
|
|
2484
|
+
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2485
|
+
const listByConfigurationStoreOperationSpec = {
|
|
2486
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections",
|
|
2487
|
+
httpMethod: "GET",
|
|
2488
|
+
responses: {
|
|
2489
|
+
200: {
|
|
2490
|
+
bodyMapper: PrivateEndpointConnectionListResult
|
|
2491
|
+
},
|
|
2492
|
+
default: {
|
|
2493
|
+
bodyMapper: ErrorResponse
|
|
2494
|
+
}
|
|
2495
|
+
},
|
|
2496
|
+
queryParameters: [apiVersion],
|
|
2497
|
+
urlParameters: [
|
|
2498
|
+
$host,
|
|
2499
|
+
subscriptionId,
|
|
2500
|
+
resourceGroupName,
|
|
2501
|
+
configStoreName
|
|
2502
|
+
],
|
|
2503
|
+
headerParameters: [accept],
|
|
2504
|
+
serializer: serializer$2
|
|
2505
|
+
};
|
|
2506
|
+
const getOperationSpec$1 = {
|
|
2507
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2508
|
+
httpMethod: "GET",
|
|
2509
|
+
responses: {
|
|
2510
|
+
200: {
|
|
2511
|
+
bodyMapper: PrivateEndpointConnection
|
|
2512
|
+
},
|
|
2513
|
+
default: {
|
|
2514
|
+
bodyMapper: ErrorResponse
|
|
2515
|
+
}
|
|
2516
|
+
},
|
|
2517
|
+
queryParameters: [apiVersion],
|
|
2518
|
+
urlParameters: [
|
|
2519
|
+
$host,
|
|
2520
|
+
subscriptionId,
|
|
2521
|
+
resourceGroupName,
|
|
2522
|
+
configStoreName,
|
|
2523
|
+
privateEndpointConnectionName
|
|
2524
|
+
],
|
|
2525
|
+
headerParameters: [accept],
|
|
2526
|
+
serializer: serializer$2
|
|
2527
|
+
};
|
|
2528
|
+
const createOrUpdateOperationSpec = {
|
|
2529
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2530
|
+
httpMethod: "PUT",
|
|
2531
|
+
responses: {
|
|
2532
|
+
200: {
|
|
2533
|
+
bodyMapper: PrivateEndpointConnection
|
|
2534
|
+
},
|
|
2535
|
+
201: {
|
|
2536
|
+
bodyMapper: PrivateEndpointConnection
|
|
2537
|
+
},
|
|
2538
|
+
202: {
|
|
2539
|
+
bodyMapper: PrivateEndpointConnection
|
|
2540
|
+
},
|
|
2541
|
+
204: {
|
|
2542
|
+
bodyMapper: PrivateEndpointConnection
|
|
2543
|
+
},
|
|
2544
|
+
default: {
|
|
2545
|
+
bodyMapper: ErrorResponse
|
|
2546
|
+
}
|
|
2547
|
+
},
|
|
2548
|
+
requestBody: privateEndpointConnection,
|
|
2549
|
+
queryParameters: [apiVersion],
|
|
2550
|
+
urlParameters: [
|
|
2551
|
+
$host,
|
|
2552
|
+
subscriptionId,
|
|
2553
|
+
resourceGroupName,
|
|
2554
|
+
configStoreName,
|
|
2555
|
+
privateEndpointConnectionName
|
|
2556
|
+
],
|
|
2557
|
+
headerParameters: [accept, contentType],
|
|
2558
|
+
mediaType: "json",
|
|
2559
|
+
serializer: serializer$2
|
|
2560
|
+
};
|
|
2561
|
+
const deleteOperationSpec$1 = {
|
|
2562
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2563
|
+
httpMethod: "DELETE",
|
|
2564
|
+
responses: {
|
|
2565
|
+
200: {},
|
|
2566
|
+
201: {},
|
|
2567
|
+
202: {},
|
|
2568
|
+
204: {},
|
|
2569
|
+
default: {
|
|
2570
|
+
bodyMapper: ErrorResponse
|
|
2571
|
+
}
|
|
2572
|
+
},
|
|
2573
|
+
queryParameters: [apiVersion],
|
|
2574
|
+
urlParameters: [
|
|
2575
|
+
$host,
|
|
2576
|
+
subscriptionId,
|
|
2577
|
+
resourceGroupName,
|
|
2578
|
+
configStoreName,
|
|
2579
|
+
privateEndpointConnectionName
|
|
2580
|
+
],
|
|
2581
|
+
headerParameters: [accept],
|
|
2582
|
+
serializer: serializer$2
|
|
2583
|
+
};
|
|
2584
|
+
const listByConfigurationStoreNextOperationSpec = {
|
|
2585
|
+
path: "{nextLink}",
|
|
2586
|
+
httpMethod: "GET",
|
|
2587
|
+
responses: {
|
|
2588
|
+
200: {
|
|
2589
|
+
bodyMapper: PrivateEndpointConnectionListResult
|
|
2590
|
+
},
|
|
2591
|
+
default: {
|
|
2592
|
+
bodyMapper: ErrorResponse
|
|
2593
|
+
}
|
|
2594
|
+
},
|
|
2595
|
+
queryParameters: [apiVersion],
|
|
2596
|
+
urlParameters: [
|
|
2597
|
+
$host,
|
|
2598
|
+
subscriptionId,
|
|
2599
|
+
resourceGroupName,
|
|
2600
|
+
configStoreName,
|
|
2601
|
+
nextLink
|
|
2602
|
+
],
|
|
2603
|
+
headerParameters: [accept],
|
|
2604
|
+
serializer: serializer$2
|
|
2605
|
+
};
|
|
2606
|
+
|
|
2607
|
+
/*
|
|
2608
|
+
* Copyright (c) Microsoft Corporation.
|
|
2609
|
+
* Licensed under the MIT License.
|
|
2610
|
+
*
|
|
2611
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2612
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2613
|
+
*/
|
|
2614
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2615
|
+
/** Class containing PrivateLinkResources operations. */
|
|
2616
|
+
class PrivateLinkResourcesImpl {
|
|
2617
|
+
/**
|
|
2618
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
2619
|
+
* @param client Reference to the service client
|
|
2620
|
+
*/
|
|
2621
|
+
constructor(client) {
|
|
2622
|
+
this.client = client;
|
|
2623
|
+
}
|
|
2624
|
+
/**
|
|
2625
|
+
* Gets the private link resources that need to be created for a configuration store.
|
|
2626
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2627
|
+
* @param configStoreName The name of the configuration store.
|
|
2628
|
+
* @param options The options parameters.
|
|
2629
|
+
*/
|
|
2630
|
+
listByConfigurationStore(resourceGroupName, configStoreName, options) {
|
|
2631
|
+
const iter = this.listByConfigurationStorePagingAll(resourceGroupName, configStoreName, options);
|
|
2632
|
+
return {
|
|
2633
|
+
next() {
|
|
2634
|
+
return iter.next();
|
|
2635
|
+
},
|
|
2636
|
+
[Symbol.asyncIterator]() {
|
|
2637
|
+
return this;
|
|
2638
|
+
},
|
|
2639
|
+
byPage: () => {
|
|
2640
|
+
return this.listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options);
|
|
2641
|
+
}
|
|
2642
|
+
};
|
|
2643
|
+
}
|
|
2644
|
+
listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options) {
|
|
2645
|
+
return tslib.__asyncGenerator(this, arguments, function* listByConfigurationStorePagingPage_1() {
|
|
2646
|
+
let result = yield tslib.__await(this._listByConfigurationStore(resourceGroupName, configStoreName, options));
|
|
2647
|
+
yield yield tslib.__await(result.value || []);
|
|
2648
|
+
let continuationToken = result.nextLink;
|
|
2649
|
+
while (continuationToken) {
|
|
2650
|
+
result = yield tslib.__await(this._listByConfigurationStoreNext(resourceGroupName, configStoreName, continuationToken, options));
|
|
2651
|
+
continuationToken = result.nextLink;
|
|
2652
|
+
yield yield tslib.__await(result.value || []);
|
|
2653
|
+
}
|
|
2654
|
+
});
|
|
2655
|
+
}
|
|
2656
|
+
listByConfigurationStorePagingAll(resourceGroupName, configStoreName, options) {
|
|
2657
|
+
return tslib.__asyncGenerator(this, arguments, function* listByConfigurationStorePagingAll_1() {
|
|
2658
|
+
var e_1, _a;
|
|
2659
|
+
try {
|
|
2660
|
+
for (var _b = tslib.__asyncValues(this.listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2661
|
+
const page = _c.value;
|
|
2662
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2665
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2666
|
+
finally {
|
|
2667
|
+
try {
|
|
2668
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2669
|
+
}
|
|
2670
|
+
finally { if (e_1) throw e_1.error; }
|
|
2671
|
+
}
|
|
2672
|
+
});
|
|
2673
|
+
}
|
|
2674
|
+
/**
|
|
2675
|
+
* Gets the private link resources that need to be created for a configuration store.
|
|
2676
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2677
|
+
* @param configStoreName The name of the configuration store.
|
|
2678
|
+
* @param options The options parameters.
|
|
2679
|
+
*/
|
|
2680
|
+
_listByConfigurationStore(resourceGroupName, configStoreName, options) {
|
|
2681
|
+
return this.client.sendOperationRequest({ resourceGroupName, configStoreName, options }, listByConfigurationStoreOperationSpec$1);
|
|
2682
|
+
}
|
|
2683
|
+
/**
|
|
2684
|
+
* Gets a private link resource that need to be created for a configuration store.
|
|
2685
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2686
|
+
* @param configStoreName The name of the configuration store.
|
|
2687
|
+
* @param groupName The name of the private link resource group.
|
|
2688
|
+
* @param options The options parameters.
|
|
2689
|
+
*/
|
|
2690
|
+
get(resourceGroupName, configStoreName, groupName, options) {
|
|
2691
|
+
return this.client.sendOperationRequest({ resourceGroupName, configStoreName, groupName, options }, getOperationSpec$2);
|
|
2692
|
+
}
|
|
2693
|
+
/**
|
|
2694
|
+
* ListByConfigurationStoreNext
|
|
2695
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2696
|
+
* @param configStoreName The name of the configuration store.
|
|
2697
|
+
* @param nextLink The nextLink from the previous successful call to the ListByConfigurationStore
|
|
2698
|
+
* method.
|
|
2699
|
+
* @param options The options parameters.
|
|
2700
|
+
*/
|
|
2701
|
+
_listByConfigurationStoreNext(resourceGroupName, configStoreName, nextLink, options) {
|
|
2702
|
+
return this.client.sendOperationRequest({ resourceGroupName, configStoreName, nextLink, options }, listByConfigurationStoreNextOperationSpec$1);
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
// Operation Specifications
|
|
2706
|
+
const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2707
|
+
const listByConfigurationStoreOperationSpec$1 = {
|
|
2708
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources",
|
|
2709
|
+
httpMethod: "GET",
|
|
2710
|
+
responses: {
|
|
2711
|
+
200: {
|
|
2712
|
+
bodyMapper: PrivateLinkResourceListResult
|
|
2713
|
+
},
|
|
2714
|
+
default: {
|
|
2715
|
+
bodyMapper: ErrorResponse
|
|
2716
|
+
}
|
|
2717
|
+
},
|
|
2718
|
+
queryParameters: [apiVersion],
|
|
2719
|
+
urlParameters: [
|
|
2720
|
+
$host,
|
|
2721
|
+
subscriptionId,
|
|
2722
|
+
resourceGroupName,
|
|
2723
|
+
configStoreName
|
|
2724
|
+
],
|
|
2725
|
+
headerParameters: [accept],
|
|
2726
|
+
serializer: serializer$3
|
|
2727
|
+
};
|
|
2728
|
+
const getOperationSpec$2 = {
|
|
2729
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources/{groupName}",
|
|
2730
|
+
httpMethod: "GET",
|
|
2731
|
+
responses: {
|
|
2732
|
+
200: {
|
|
2733
|
+
bodyMapper: PrivateLinkResource
|
|
2734
|
+
},
|
|
2735
|
+
default: {
|
|
2736
|
+
bodyMapper: ErrorResponse
|
|
2737
|
+
}
|
|
2738
|
+
},
|
|
2739
|
+
queryParameters: [apiVersion],
|
|
2740
|
+
urlParameters: [
|
|
2741
|
+
$host,
|
|
2742
|
+
subscriptionId,
|
|
2743
|
+
resourceGroupName,
|
|
2744
|
+
configStoreName,
|
|
2745
|
+
groupName
|
|
2746
|
+
],
|
|
2747
|
+
headerParameters: [accept],
|
|
2748
|
+
serializer: serializer$3
|
|
2749
|
+
};
|
|
2750
|
+
const listByConfigurationStoreNextOperationSpec$1 = {
|
|
2751
|
+
path: "{nextLink}",
|
|
2752
|
+
httpMethod: "GET",
|
|
2753
|
+
responses: {
|
|
2754
|
+
200: {
|
|
2755
|
+
bodyMapper: PrivateLinkResourceListResult
|
|
2756
|
+
},
|
|
2757
|
+
default: {
|
|
2758
|
+
bodyMapper: ErrorResponse
|
|
2759
|
+
}
|
|
2760
|
+
},
|
|
2761
|
+
queryParameters: [apiVersion],
|
|
2762
|
+
urlParameters: [
|
|
2763
|
+
$host,
|
|
2764
|
+
subscriptionId,
|
|
2765
|
+
resourceGroupName,
|
|
2766
|
+
configStoreName,
|
|
2767
|
+
nextLink
|
|
2768
|
+
],
|
|
2769
|
+
headerParameters: [accept],
|
|
2770
|
+
serializer: serializer$3
|
|
2771
|
+
};
|
|
2772
|
+
|
|
2773
|
+
/*
|
|
2774
|
+
* Copyright (c) Microsoft Corporation.
|
|
2775
|
+
* Licensed under the MIT License.
|
|
2776
|
+
*
|
|
2777
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2778
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2779
|
+
*/
|
|
2780
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2781
|
+
/** Class containing KeyValues operations. */
|
|
2782
|
+
class KeyValuesImpl {
|
|
2783
|
+
/**
|
|
2784
|
+
* Initialize a new instance of the class KeyValues class.
|
|
2785
|
+
* @param client Reference to the service client
|
|
2786
|
+
*/
|
|
2787
|
+
constructor(client) {
|
|
2788
|
+
this.client = client;
|
|
2789
|
+
}
|
|
2790
|
+
/**
|
|
2791
|
+
* Lists the key-values for a given configuration store.
|
|
2792
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2793
|
+
* @param configStoreName The name of the configuration store.
|
|
2794
|
+
* @param options The options parameters.
|
|
2795
|
+
*/
|
|
2796
|
+
listByConfigurationStore(resourceGroupName, configStoreName, options) {
|
|
2797
|
+
const iter = this.listByConfigurationStorePagingAll(resourceGroupName, configStoreName, options);
|
|
2798
|
+
return {
|
|
2799
|
+
next() {
|
|
2800
|
+
return iter.next();
|
|
2801
|
+
},
|
|
2802
|
+
[Symbol.asyncIterator]() {
|
|
2803
|
+
return this;
|
|
2804
|
+
},
|
|
2805
|
+
byPage: () => {
|
|
2806
|
+
return this.listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options);
|
|
2807
|
+
}
|
|
2808
|
+
};
|
|
2809
|
+
}
|
|
2810
|
+
listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options) {
|
|
2811
|
+
return tslib.__asyncGenerator(this, arguments, function* listByConfigurationStorePagingPage_1() {
|
|
2812
|
+
let result = yield tslib.__await(this._listByConfigurationStore(resourceGroupName, configStoreName, options));
|
|
2813
|
+
yield yield tslib.__await(result.value || []);
|
|
2814
|
+
let continuationToken = result.nextLink;
|
|
2815
|
+
while (continuationToken) {
|
|
2816
|
+
result = yield tslib.__await(this._listByConfigurationStoreNext(resourceGroupName, configStoreName, continuationToken, options));
|
|
2817
|
+
continuationToken = result.nextLink;
|
|
2818
|
+
yield yield tslib.__await(result.value || []);
|
|
2819
|
+
}
|
|
2820
|
+
});
|
|
2821
|
+
}
|
|
2822
|
+
listByConfigurationStorePagingAll(resourceGroupName, configStoreName, options) {
|
|
2823
|
+
return tslib.__asyncGenerator(this, arguments, function* listByConfigurationStorePagingAll_1() {
|
|
2824
|
+
var e_1, _a;
|
|
2825
|
+
try {
|
|
2826
|
+
for (var _b = tslib.__asyncValues(this.listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2827
|
+
const page = _c.value;
|
|
2828
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2832
|
+
finally {
|
|
2833
|
+
try {
|
|
2834
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2835
|
+
}
|
|
2836
|
+
finally { if (e_1) throw e_1.error; }
|
|
2837
|
+
}
|
|
2838
|
+
});
|
|
2839
|
+
}
|
|
2840
|
+
/**
|
|
2841
|
+
* Lists the key-values for a given configuration store.
|
|
2842
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2843
|
+
* @param configStoreName The name of the configuration store.
|
|
2844
|
+
* @param options The options parameters.
|
|
2845
|
+
*/
|
|
2846
|
+
_listByConfigurationStore(resourceGroupName, configStoreName, options) {
|
|
2847
|
+
return this.client.sendOperationRequest({ resourceGroupName, configStoreName, options }, listByConfigurationStoreOperationSpec$2);
|
|
2848
|
+
}
|
|
2849
|
+
/**
|
|
2850
|
+
* Gets the properties of the specified key-value.
|
|
2851
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2852
|
+
* @param configStoreName The name of the configuration store.
|
|
2853
|
+
* @param keyValueName Identifier of key and label combination. Key and label are joined by $
|
|
2854
|
+
* character. Label is optional.
|
|
2855
|
+
* @param options The options parameters.
|
|
2856
|
+
*/
|
|
2857
|
+
get(resourceGroupName, configStoreName, keyValueName, options) {
|
|
2858
|
+
return this.client.sendOperationRequest({ resourceGroupName, configStoreName, keyValueName, options }, getOperationSpec$3);
|
|
2859
|
+
}
|
|
2860
|
+
/**
|
|
2861
|
+
* Creates a key-value.
|
|
2862
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2863
|
+
* @param configStoreName The name of the configuration store.
|
|
2864
|
+
* @param keyValueName Identifier of key and label combination. Key and label are joined by $
|
|
2865
|
+
* character. Label is optional.
|
|
2866
|
+
* @param options The options parameters.
|
|
2867
|
+
*/
|
|
2868
|
+
createOrUpdate(resourceGroupName, configStoreName, keyValueName, options) {
|
|
2869
|
+
return this.client.sendOperationRequest({ resourceGroupName, configStoreName, keyValueName, options }, createOrUpdateOperationSpec$1);
|
|
2870
|
+
}
|
|
2871
|
+
/**
|
|
2872
|
+
* Deletes a key-value.
|
|
2873
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2874
|
+
* @param configStoreName The name of the configuration store.
|
|
2875
|
+
* @param keyValueName Identifier of key and label combination. Key and label are joined by $
|
|
2876
|
+
* character. Label is optional.
|
|
2877
|
+
* @param options The options parameters.
|
|
2878
|
+
*/
|
|
2879
|
+
beginDelete(resourceGroupName, configStoreName, keyValueName, options) {
|
|
2880
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2881
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2882
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2883
|
+
});
|
|
2884
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2885
|
+
var _a;
|
|
2886
|
+
let currentRawResponse = undefined;
|
|
2887
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2888
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2889
|
+
currentRawResponse = rawResponse;
|
|
2890
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2891
|
+
};
|
|
2892
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2893
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2894
|
+
return {
|
|
2895
|
+
flatResponse,
|
|
2896
|
+
rawResponse: {
|
|
2897
|
+
statusCode: currentRawResponse.status,
|
|
2898
|
+
body: currentRawResponse.parsedBody,
|
|
2899
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2900
|
+
}
|
|
2901
|
+
};
|
|
2902
|
+
});
|
|
2903
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, configStoreName, keyValueName, options }, deleteOperationSpec$2);
|
|
2904
|
+
return new coreLro.LroEngine(lro, {
|
|
2905
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2906
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2907
|
+
});
|
|
2908
|
+
});
|
|
2909
|
+
}
|
|
2910
|
+
/**
|
|
2911
|
+
* Deletes a key-value.
|
|
2912
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2913
|
+
* @param configStoreName The name of the configuration store.
|
|
2914
|
+
* @param keyValueName Identifier of key and label combination. Key and label are joined by $
|
|
2915
|
+
* character. Label is optional.
|
|
2916
|
+
* @param options The options parameters.
|
|
2917
|
+
*/
|
|
2918
|
+
beginDeleteAndWait(resourceGroupName, configStoreName, keyValueName, options) {
|
|
2919
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2920
|
+
const poller = yield this.beginDelete(resourceGroupName, configStoreName, keyValueName, options);
|
|
2921
|
+
return poller.pollUntilDone();
|
|
2922
|
+
});
|
|
2923
|
+
}
|
|
2924
|
+
/**
|
|
2925
|
+
* ListByConfigurationStoreNext
|
|
2926
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
2927
|
+
* @param configStoreName The name of the configuration store.
|
|
2928
|
+
* @param nextLink The nextLink from the previous successful call to the ListByConfigurationStore
|
|
2929
|
+
* method.
|
|
2930
|
+
* @param options The options parameters.
|
|
2931
|
+
*/
|
|
2932
|
+
_listByConfigurationStoreNext(resourceGroupName, configStoreName, nextLink, options) {
|
|
2933
|
+
return this.client.sendOperationRequest({ resourceGroupName, configStoreName, nextLink, options }, listByConfigurationStoreNextOperationSpec$2);
|
|
2934
|
+
}
|
|
2935
|
+
}
|
|
2936
|
+
// Operation Specifications
|
|
2937
|
+
const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2938
|
+
const listByConfigurationStoreOperationSpec$2 = {
|
|
2939
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues",
|
|
2940
|
+
httpMethod: "GET",
|
|
2941
|
+
responses: {
|
|
2942
|
+
200: {
|
|
2943
|
+
bodyMapper: KeyValueListResult
|
|
2944
|
+
},
|
|
2945
|
+
default: {
|
|
2946
|
+
bodyMapper: ErrorResponse
|
|
2947
|
+
}
|
|
2948
|
+
},
|
|
2949
|
+
queryParameters: [apiVersion, skipToken],
|
|
2950
|
+
urlParameters: [
|
|
2951
|
+
$host,
|
|
2952
|
+
subscriptionId,
|
|
2953
|
+
resourceGroupName,
|
|
2954
|
+
configStoreName
|
|
2955
|
+
],
|
|
2956
|
+
headerParameters: [accept],
|
|
2957
|
+
serializer: serializer$4
|
|
2958
|
+
};
|
|
2959
|
+
const getOperationSpec$3 = {
|
|
2960
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}",
|
|
2961
|
+
httpMethod: "GET",
|
|
2962
|
+
responses: {
|
|
2963
|
+
200: {
|
|
2964
|
+
bodyMapper: KeyValue
|
|
2965
|
+
},
|
|
2966
|
+
default: {
|
|
2967
|
+
bodyMapper: ErrorResponse
|
|
2968
|
+
}
|
|
2969
|
+
},
|
|
2970
|
+
queryParameters: [apiVersion],
|
|
2971
|
+
urlParameters: [
|
|
2972
|
+
$host,
|
|
2973
|
+
subscriptionId,
|
|
2974
|
+
resourceGroupName,
|
|
2975
|
+
configStoreName,
|
|
2976
|
+
keyValueName
|
|
2977
|
+
],
|
|
2978
|
+
headerParameters: [accept],
|
|
2979
|
+
serializer: serializer$4
|
|
2980
|
+
};
|
|
2981
|
+
const createOrUpdateOperationSpec$1 = {
|
|
2982
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}",
|
|
2983
|
+
httpMethod: "PUT",
|
|
2984
|
+
responses: {
|
|
2985
|
+
200: {
|
|
2986
|
+
bodyMapper: KeyValue
|
|
2987
|
+
},
|
|
2988
|
+
default: {
|
|
2989
|
+
bodyMapper: ErrorResponse
|
|
2990
|
+
}
|
|
2991
|
+
},
|
|
2992
|
+
requestBody: keyValueParameters,
|
|
2993
|
+
queryParameters: [apiVersion],
|
|
2994
|
+
urlParameters: [
|
|
2995
|
+
$host,
|
|
2996
|
+
subscriptionId,
|
|
2997
|
+
resourceGroupName,
|
|
2998
|
+
configStoreName,
|
|
2999
|
+
keyValueName
|
|
3000
|
+
],
|
|
3001
|
+
headerParameters: [accept, contentType],
|
|
3002
|
+
mediaType: "json",
|
|
3003
|
+
serializer: serializer$4
|
|
3004
|
+
};
|
|
3005
|
+
const deleteOperationSpec$2 = {
|
|
3006
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}",
|
|
3007
|
+
httpMethod: "DELETE",
|
|
3008
|
+
responses: {
|
|
3009
|
+
200: {},
|
|
3010
|
+
201: {},
|
|
3011
|
+
202: {},
|
|
3012
|
+
204: {},
|
|
3013
|
+
default: {
|
|
3014
|
+
bodyMapper: ErrorResponse
|
|
3015
|
+
}
|
|
3016
|
+
},
|
|
3017
|
+
queryParameters: [apiVersion],
|
|
3018
|
+
urlParameters: [
|
|
3019
|
+
$host,
|
|
3020
|
+
subscriptionId,
|
|
3021
|
+
resourceGroupName,
|
|
3022
|
+
configStoreName,
|
|
3023
|
+
keyValueName
|
|
3024
|
+
],
|
|
3025
|
+
headerParameters: [accept],
|
|
3026
|
+
serializer: serializer$4
|
|
3027
|
+
};
|
|
3028
|
+
const listByConfigurationStoreNextOperationSpec$2 = {
|
|
3029
|
+
path: "{nextLink}",
|
|
3030
|
+
httpMethod: "GET",
|
|
3031
|
+
responses: {
|
|
3032
|
+
200: {
|
|
3033
|
+
bodyMapper: KeyValueListResult
|
|
3034
|
+
},
|
|
3035
|
+
default: {
|
|
3036
|
+
bodyMapper: ErrorResponse
|
|
3037
|
+
}
|
|
3038
|
+
},
|
|
3039
|
+
queryParameters: [apiVersion, skipToken],
|
|
3040
|
+
urlParameters: [
|
|
3041
|
+
$host,
|
|
3042
|
+
subscriptionId,
|
|
3043
|
+
resourceGroupName,
|
|
3044
|
+
configStoreName,
|
|
3045
|
+
nextLink
|
|
3046
|
+
],
|
|
3047
|
+
headerParameters: [accept],
|
|
3048
|
+
serializer: serializer$4
|
|
3049
|
+
};
|
|
3050
|
+
|
|
3051
|
+
/*
|
|
3052
|
+
* Copyright (c) Microsoft Corporation.
|
|
3053
|
+
* Licensed under the MIT License.
|
|
3054
|
+
*
|
|
3055
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3056
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3057
|
+
*/
|
|
3058
|
+
class AppConfigurationManagementClient extends coreClient.ServiceClient {
|
|
3059
|
+
/**
|
|
3060
|
+
* Initializes a new instance of the AppConfigurationManagementClient class.
|
|
3061
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
3062
|
+
* @param subscriptionId The Microsoft Azure subscription ID.
|
|
3063
|
+
* @param options The parameter options
|
|
3064
|
+
*/
|
|
3065
|
+
constructor(credentials, subscriptionId, options) {
|
|
3066
|
+
if (credentials === undefined) {
|
|
3067
|
+
throw new Error("'credentials' cannot be null");
|
|
3068
|
+
}
|
|
3069
|
+
if (subscriptionId === undefined) {
|
|
3070
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
3071
|
+
}
|
|
3072
|
+
// Initializing default values for options
|
|
3073
|
+
if (!options) {
|
|
3074
|
+
options = {};
|
|
3075
|
+
}
|
|
3076
|
+
const defaults = {
|
|
3077
|
+
requestContentType: "application/json; charset=utf-8",
|
|
3078
|
+
credential: credentials
|
|
3079
|
+
};
|
|
3080
|
+
const packageDetails = `azsdk-js-arm-appconfiguration/3.0.0-beta.1`;
|
|
3081
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3082
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3083
|
+
: `${packageDetails}`;
|
|
3084
|
+
if (!options.credentialScopes) {
|
|
3085
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
3086
|
+
}
|
|
3087
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3088
|
+
userAgentPrefix
|
|
3089
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
3090
|
+
super(optionsWithDefaults);
|
|
3091
|
+
// Parameter assignments
|
|
3092
|
+
this.subscriptionId = subscriptionId;
|
|
3093
|
+
// Assigning values to Constant parameters
|
|
3094
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
3095
|
+
this.apiVersion = options.apiVersion || "2021-03-01-preview";
|
|
3096
|
+
this.configurationStores = new ConfigurationStoresImpl(this);
|
|
3097
|
+
this.operations = new OperationsImpl(this);
|
|
3098
|
+
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
3099
|
+
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
3100
|
+
this.keyValues = new KeyValuesImpl(this);
|
|
3101
|
+
}
|
|
3102
|
+
}
|
|
3103
|
+
|
|
3104
|
+
exports.AppConfigurationManagementClient = AppConfigurationManagementClient;
|
|
3105
|
+
//# sourceMappingURL=index.js.map
|