@azure/arm-keyvault 2.1.0-beta.1 → 2.1.0-beta.2
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 +12 -3
- package/README.md +1 -1
- package/dist/index.js +450 -110
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/keyVaultManagementClient.d.ts +2 -0
- package/dist-esm/src/keyVaultManagementClient.d.ts.map +1 -1
- package/dist-esm/src/keyVaultManagementClient.js +49 -18
- package/dist-esm/src/keyVaultManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +132 -15
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +107 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +1 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +26 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/operations/keys.d.ts.map +1 -1
- package/dist-esm/src/operations/keys.js +37 -14
- package/dist-esm/src/operations/keys.js.map +1 -1
- package/dist-esm/src/operations/managedHsms.d.ts.map +1 -1
- package/dist-esm/src/operations/managedHsms.js +55 -21
- package/dist-esm/src/operations/managedHsms.js.map +1 -1
- package/dist-esm/src/operations/mhsmPrivateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/mhsmPrivateEndpointConnections.js +19 -7
- package/dist-esm/src/operations/mhsmPrivateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +19 -7
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/secrets.d.ts.map +1 -1
- package/dist-esm/src/operations/secrets.js +19 -7
- package/dist-esm/src/operations/secrets.js.map +1 -1
- package/dist-esm/src/operations/vaults.d.ts.map +1 -1
- package/dist-esm/src/operations/vaults.js +73 -28
- package/dist-esm/src/operations/vaults.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/keyvault_examples.d.ts.map +1 -1
- package/dist-esm/test/keyvault_examples.js +17 -19
- package/dist-esm/test/keyvault_examples.js.map +1 -1
- package/package.json +15 -11
- package/review/arm-keyvault.api.md +30 -123
- package/src/index.ts +1 -0
- package/src/keyVaultManagementClient.ts +60 -20
- package/src/models/index.ts +132 -15
- package/src/models/mappers.ts +27 -0
- package/src/operations/keys.ts +53 -22
- package/src/operations/managedHsms.ts +66 -25
- package/src/operations/mhsmPrivateEndpointConnections.ts +26 -8
- package/src/operations/operations.ts +21 -8
- package/src/operations/privateEndpointConnections.ts +27 -13
- package/src/operations/secrets.ts +27 -9
- package/src/operations/vaults.ts +86 -33
- package/src/pagingHelper.ts +39 -0
- package/types/arm-keyvault.d.ts +144 -15
- package/types/tsdoc-metadata.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var tslib = require('tslib');
|
|
5
6
|
var coreClient = require('@azure/core-client');
|
|
6
7
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
7
|
-
var tslib = require('tslib');
|
|
8
8
|
var coreLro = require('@azure/core-lro');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
|
|
|
28
28
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
29
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
30
|
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given a result page from a pageable operation, returns a
|
|
41
|
+
* continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage().
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
31
63
|
/*
|
|
32
64
|
* Copyright (c) Microsoft Corporation.
|
|
33
65
|
* Licensed under the MIT License.
|
|
@@ -38,169 +70,273 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
|
38
70
|
/** Known values of {@link DeletionRecoveryLevel} that the service accepts. */
|
|
39
71
|
exports.KnownDeletionRecoveryLevel = void 0;
|
|
40
72
|
(function (KnownDeletionRecoveryLevel) {
|
|
73
|
+
/** Purgeable */
|
|
41
74
|
KnownDeletionRecoveryLevel["Purgeable"] = "Purgeable";
|
|
75
|
+
/** RecoverablePurgeable */
|
|
42
76
|
KnownDeletionRecoveryLevel["RecoverablePurgeable"] = "Recoverable+Purgeable";
|
|
77
|
+
/** Recoverable */
|
|
43
78
|
KnownDeletionRecoveryLevel["Recoverable"] = "Recoverable";
|
|
79
|
+
/** RecoverableProtectedSubscription */
|
|
44
80
|
KnownDeletionRecoveryLevel["RecoverableProtectedSubscription"] = "Recoverable+ProtectedSubscription";
|
|
45
81
|
})(exports.KnownDeletionRecoveryLevel || (exports.KnownDeletionRecoveryLevel = {}));
|
|
46
82
|
/** Known values of {@link JsonWebKeyType} that the service accepts. */
|
|
47
83
|
exports.KnownJsonWebKeyType = void 0;
|
|
48
84
|
(function (KnownJsonWebKeyType) {
|
|
85
|
+
/** EC */
|
|
49
86
|
KnownJsonWebKeyType["EC"] = "EC";
|
|
87
|
+
/** ECHSM */
|
|
50
88
|
KnownJsonWebKeyType["ECHSM"] = "EC-HSM";
|
|
89
|
+
/** RSA */
|
|
51
90
|
KnownJsonWebKeyType["RSA"] = "RSA";
|
|
91
|
+
/** RSAHSM */
|
|
52
92
|
KnownJsonWebKeyType["RSAHSM"] = "RSA-HSM";
|
|
53
93
|
})(exports.KnownJsonWebKeyType || (exports.KnownJsonWebKeyType = {}));
|
|
54
94
|
/** Known values of {@link JsonWebKeyOperation} that the service accepts. */
|
|
55
95
|
exports.KnownJsonWebKeyOperation = void 0;
|
|
56
96
|
(function (KnownJsonWebKeyOperation) {
|
|
97
|
+
/** Encrypt */
|
|
57
98
|
KnownJsonWebKeyOperation["Encrypt"] = "encrypt";
|
|
99
|
+
/** Decrypt */
|
|
58
100
|
KnownJsonWebKeyOperation["Decrypt"] = "decrypt";
|
|
101
|
+
/** Sign */
|
|
59
102
|
KnownJsonWebKeyOperation["Sign"] = "sign";
|
|
103
|
+
/** Verify */
|
|
60
104
|
KnownJsonWebKeyOperation["Verify"] = "verify";
|
|
105
|
+
/** WrapKey */
|
|
61
106
|
KnownJsonWebKeyOperation["WrapKey"] = "wrapKey";
|
|
107
|
+
/** UnwrapKey */
|
|
62
108
|
KnownJsonWebKeyOperation["UnwrapKey"] = "unwrapKey";
|
|
109
|
+
/** Import */
|
|
63
110
|
KnownJsonWebKeyOperation["Import"] = "import";
|
|
111
|
+
/** Release */
|
|
64
112
|
KnownJsonWebKeyOperation["Release"] = "release";
|
|
65
113
|
})(exports.KnownJsonWebKeyOperation || (exports.KnownJsonWebKeyOperation = {}));
|
|
66
114
|
/** Known values of {@link JsonWebKeyCurveName} that the service accepts. */
|
|
67
115
|
exports.KnownJsonWebKeyCurveName = void 0;
|
|
68
116
|
(function (KnownJsonWebKeyCurveName) {
|
|
117
|
+
/** P256 */
|
|
69
118
|
KnownJsonWebKeyCurveName["P256"] = "P-256";
|
|
119
|
+
/** P384 */
|
|
70
120
|
KnownJsonWebKeyCurveName["P384"] = "P-384";
|
|
121
|
+
/** P521 */
|
|
71
122
|
KnownJsonWebKeyCurveName["P521"] = "P-521";
|
|
123
|
+
/** P256K */
|
|
72
124
|
KnownJsonWebKeyCurveName["P256K"] = "P-256K";
|
|
73
125
|
})(exports.KnownJsonWebKeyCurveName || (exports.KnownJsonWebKeyCurveName = {}));
|
|
74
126
|
/** Known values of {@link SkuFamily} that the service accepts. */
|
|
75
127
|
exports.KnownSkuFamily = void 0;
|
|
76
128
|
(function (KnownSkuFamily) {
|
|
129
|
+
/** A */
|
|
77
130
|
KnownSkuFamily["A"] = "A";
|
|
78
131
|
})(exports.KnownSkuFamily || (exports.KnownSkuFamily = {}));
|
|
79
132
|
/** Known values of {@link KeyPermissions} that the service accepts. */
|
|
80
133
|
exports.KnownKeyPermissions = void 0;
|
|
81
134
|
(function (KnownKeyPermissions) {
|
|
135
|
+
/** All */
|
|
82
136
|
KnownKeyPermissions["All"] = "all";
|
|
137
|
+
/** Encrypt */
|
|
83
138
|
KnownKeyPermissions["Encrypt"] = "encrypt";
|
|
139
|
+
/** Decrypt */
|
|
84
140
|
KnownKeyPermissions["Decrypt"] = "decrypt";
|
|
141
|
+
/** WrapKey */
|
|
85
142
|
KnownKeyPermissions["WrapKey"] = "wrapKey";
|
|
143
|
+
/** UnwrapKey */
|
|
86
144
|
KnownKeyPermissions["UnwrapKey"] = "unwrapKey";
|
|
145
|
+
/** Sign */
|
|
87
146
|
KnownKeyPermissions["Sign"] = "sign";
|
|
147
|
+
/** Verify */
|
|
88
148
|
KnownKeyPermissions["Verify"] = "verify";
|
|
149
|
+
/** Get */
|
|
89
150
|
KnownKeyPermissions["Get"] = "get";
|
|
151
|
+
/** List */
|
|
90
152
|
KnownKeyPermissions["List"] = "list";
|
|
153
|
+
/** Create */
|
|
91
154
|
KnownKeyPermissions["Create"] = "create";
|
|
155
|
+
/** Update */
|
|
92
156
|
KnownKeyPermissions["Update"] = "update";
|
|
157
|
+
/** Import */
|
|
93
158
|
KnownKeyPermissions["Import"] = "import";
|
|
159
|
+
/** Delete */
|
|
94
160
|
KnownKeyPermissions["Delete"] = "delete";
|
|
161
|
+
/** Backup */
|
|
95
162
|
KnownKeyPermissions["Backup"] = "backup";
|
|
163
|
+
/** Restore */
|
|
96
164
|
KnownKeyPermissions["Restore"] = "restore";
|
|
165
|
+
/** Recover */
|
|
97
166
|
KnownKeyPermissions["Recover"] = "recover";
|
|
167
|
+
/** Purge */
|
|
98
168
|
KnownKeyPermissions["Purge"] = "purge";
|
|
169
|
+
/** Release */
|
|
99
170
|
KnownKeyPermissions["Release"] = "release";
|
|
171
|
+
/** Rotate */
|
|
100
172
|
KnownKeyPermissions["Rotate"] = "rotate";
|
|
173
|
+
/** Getrotationpolicy */
|
|
101
174
|
KnownKeyPermissions["Getrotationpolicy"] = "getrotationpolicy";
|
|
175
|
+
/** Setrotationpolicy */
|
|
102
176
|
KnownKeyPermissions["Setrotationpolicy"] = "setrotationpolicy";
|
|
103
177
|
})(exports.KnownKeyPermissions || (exports.KnownKeyPermissions = {}));
|
|
104
178
|
/** Known values of {@link SecretPermissions} that the service accepts. */
|
|
105
179
|
exports.KnownSecretPermissions = void 0;
|
|
106
180
|
(function (KnownSecretPermissions) {
|
|
181
|
+
/** All */
|
|
107
182
|
KnownSecretPermissions["All"] = "all";
|
|
183
|
+
/** Get */
|
|
108
184
|
KnownSecretPermissions["Get"] = "get";
|
|
185
|
+
/** List */
|
|
109
186
|
KnownSecretPermissions["List"] = "list";
|
|
187
|
+
/** Set */
|
|
110
188
|
KnownSecretPermissions["Set"] = "set";
|
|
189
|
+
/** Delete */
|
|
111
190
|
KnownSecretPermissions["Delete"] = "delete";
|
|
191
|
+
/** Backup */
|
|
112
192
|
KnownSecretPermissions["Backup"] = "backup";
|
|
193
|
+
/** Restore */
|
|
113
194
|
KnownSecretPermissions["Restore"] = "restore";
|
|
195
|
+
/** Recover */
|
|
114
196
|
KnownSecretPermissions["Recover"] = "recover";
|
|
197
|
+
/** Purge */
|
|
115
198
|
KnownSecretPermissions["Purge"] = "purge";
|
|
116
199
|
})(exports.KnownSecretPermissions || (exports.KnownSecretPermissions = {}));
|
|
117
200
|
/** Known values of {@link CertificatePermissions} that the service accepts. */
|
|
118
201
|
exports.KnownCertificatePermissions = void 0;
|
|
119
202
|
(function (KnownCertificatePermissions) {
|
|
203
|
+
/** All */
|
|
120
204
|
KnownCertificatePermissions["All"] = "all";
|
|
205
|
+
/** Get */
|
|
121
206
|
KnownCertificatePermissions["Get"] = "get";
|
|
207
|
+
/** List */
|
|
122
208
|
KnownCertificatePermissions["List"] = "list";
|
|
209
|
+
/** Delete */
|
|
123
210
|
KnownCertificatePermissions["Delete"] = "delete";
|
|
211
|
+
/** Create */
|
|
124
212
|
KnownCertificatePermissions["Create"] = "create";
|
|
213
|
+
/** Import */
|
|
125
214
|
KnownCertificatePermissions["Import"] = "import";
|
|
215
|
+
/** Update */
|
|
126
216
|
KnownCertificatePermissions["Update"] = "update";
|
|
217
|
+
/** Managecontacts */
|
|
127
218
|
KnownCertificatePermissions["Managecontacts"] = "managecontacts";
|
|
219
|
+
/** Getissuers */
|
|
128
220
|
KnownCertificatePermissions["Getissuers"] = "getissuers";
|
|
221
|
+
/** Listissuers */
|
|
129
222
|
KnownCertificatePermissions["Listissuers"] = "listissuers";
|
|
223
|
+
/** Setissuers */
|
|
130
224
|
KnownCertificatePermissions["Setissuers"] = "setissuers";
|
|
225
|
+
/** Deleteissuers */
|
|
131
226
|
KnownCertificatePermissions["Deleteissuers"] = "deleteissuers";
|
|
227
|
+
/** Manageissuers */
|
|
132
228
|
KnownCertificatePermissions["Manageissuers"] = "manageissuers";
|
|
229
|
+
/** Recover */
|
|
133
230
|
KnownCertificatePermissions["Recover"] = "recover";
|
|
231
|
+
/** Purge */
|
|
134
232
|
KnownCertificatePermissions["Purge"] = "purge";
|
|
233
|
+
/** Backup */
|
|
135
234
|
KnownCertificatePermissions["Backup"] = "backup";
|
|
235
|
+
/** Restore */
|
|
136
236
|
KnownCertificatePermissions["Restore"] = "restore";
|
|
137
237
|
})(exports.KnownCertificatePermissions || (exports.KnownCertificatePermissions = {}));
|
|
138
238
|
/** Known values of {@link StoragePermissions} that the service accepts. */
|
|
139
239
|
exports.KnownStoragePermissions = void 0;
|
|
140
240
|
(function (KnownStoragePermissions) {
|
|
241
|
+
/** All */
|
|
141
242
|
KnownStoragePermissions["All"] = "all";
|
|
243
|
+
/** Get */
|
|
142
244
|
KnownStoragePermissions["Get"] = "get";
|
|
245
|
+
/** List */
|
|
143
246
|
KnownStoragePermissions["List"] = "list";
|
|
247
|
+
/** Delete */
|
|
144
248
|
KnownStoragePermissions["Delete"] = "delete";
|
|
249
|
+
/** Set */
|
|
145
250
|
KnownStoragePermissions["Set"] = "set";
|
|
251
|
+
/** Update */
|
|
146
252
|
KnownStoragePermissions["Update"] = "update";
|
|
253
|
+
/** Regeneratekey */
|
|
147
254
|
KnownStoragePermissions["Regeneratekey"] = "regeneratekey";
|
|
255
|
+
/** Recover */
|
|
148
256
|
KnownStoragePermissions["Recover"] = "recover";
|
|
257
|
+
/** Purge */
|
|
149
258
|
KnownStoragePermissions["Purge"] = "purge";
|
|
259
|
+
/** Backup */
|
|
150
260
|
KnownStoragePermissions["Backup"] = "backup";
|
|
261
|
+
/** Restore */
|
|
151
262
|
KnownStoragePermissions["Restore"] = "restore";
|
|
263
|
+
/** Setsas */
|
|
152
264
|
KnownStoragePermissions["Setsas"] = "setsas";
|
|
265
|
+
/** Listsas */
|
|
153
266
|
KnownStoragePermissions["Listsas"] = "listsas";
|
|
267
|
+
/** Getsas */
|
|
154
268
|
KnownStoragePermissions["Getsas"] = "getsas";
|
|
269
|
+
/** Deletesas */
|
|
155
270
|
KnownStoragePermissions["Deletesas"] = "deletesas";
|
|
156
271
|
})(exports.KnownStoragePermissions || (exports.KnownStoragePermissions = {}));
|
|
157
272
|
/** Known values of {@link NetworkRuleBypassOptions} that the service accepts. */
|
|
158
273
|
exports.KnownNetworkRuleBypassOptions = void 0;
|
|
159
274
|
(function (KnownNetworkRuleBypassOptions) {
|
|
275
|
+
/** AzureServices */
|
|
160
276
|
KnownNetworkRuleBypassOptions["AzureServices"] = "AzureServices";
|
|
277
|
+
/** None */
|
|
161
278
|
KnownNetworkRuleBypassOptions["None"] = "None";
|
|
162
279
|
})(exports.KnownNetworkRuleBypassOptions || (exports.KnownNetworkRuleBypassOptions = {}));
|
|
163
280
|
/** Known values of {@link NetworkRuleAction} that the service accepts. */
|
|
164
281
|
exports.KnownNetworkRuleAction = void 0;
|
|
165
282
|
(function (KnownNetworkRuleAction) {
|
|
283
|
+
/** Allow */
|
|
166
284
|
KnownNetworkRuleAction["Allow"] = "Allow";
|
|
285
|
+
/** Deny */
|
|
167
286
|
KnownNetworkRuleAction["Deny"] = "Deny";
|
|
168
287
|
})(exports.KnownNetworkRuleAction || (exports.KnownNetworkRuleAction = {}));
|
|
169
288
|
/** Known values of {@link VaultProvisioningState} that the service accepts. */
|
|
170
289
|
exports.KnownVaultProvisioningState = void 0;
|
|
171
290
|
(function (KnownVaultProvisioningState) {
|
|
291
|
+
/** Succeeded */
|
|
172
292
|
KnownVaultProvisioningState["Succeeded"] = "Succeeded";
|
|
293
|
+
/** RegisteringDns */
|
|
173
294
|
KnownVaultProvisioningState["RegisteringDns"] = "RegisteringDns";
|
|
174
295
|
})(exports.KnownVaultProvisioningState || (exports.KnownVaultProvisioningState = {}));
|
|
175
296
|
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
|
|
176
297
|
exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
|
|
177
298
|
(function (KnownPrivateEndpointServiceConnectionStatus) {
|
|
299
|
+
/** Pending */
|
|
178
300
|
KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
|
|
301
|
+
/** Approved */
|
|
179
302
|
KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
|
|
303
|
+
/** Rejected */
|
|
180
304
|
KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
|
|
305
|
+
/** Disconnected */
|
|
181
306
|
KnownPrivateEndpointServiceConnectionStatus["Disconnected"] = "Disconnected";
|
|
182
307
|
})(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
|
|
183
308
|
/** Known values of {@link ActionsRequired} that the service accepts. */
|
|
184
309
|
exports.KnownActionsRequired = void 0;
|
|
185
310
|
(function (KnownActionsRequired) {
|
|
311
|
+
/** None */
|
|
186
312
|
KnownActionsRequired["None"] = "None";
|
|
187
313
|
})(exports.KnownActionsRequired || (exports.KnownActionsRequired = {}));
|
|
188
314
|
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
|
189
315
|
exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
|
|
190
316
|
(function (KnownPrivateEndpointConnectionProvisioningState) {
|
|
317
|
+
/** Succeeded */
|
|
191
318
|
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
|
|
319
|
+
/** Creating */
|
|
192
320
|
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
|
|
321
|
+
/** Updating */
|
|
193
322
|
KnownPrivateEndpointConnectionProvisioningState["Updating"] = "Updating";
|
|
323
|
+
/** Deleting */
|
|
194
324
|
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
|
|
325
|
+
/** Failed */
|
|
195
326
|
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
|
|
327
|
+
/** Disconnected */
|
|
196
328
|
KnownPrivateEndpointConnectionProvisioningState["Disconnected"] = "Disconnected";
|
|
197
329
|
})(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
|
|
198
330
|
/** Known values of {@link IdentityType} that the service accepts. */
|
|
199
331
|
exports.KnownIdentityType = void 0;
|
|
200
332
|
(function (KnownIdentityType) {
|
|
333
|
+
/** User */
|
|
201
334
|
KnownIdentityType["User"] = "User";
|
|
335
|
+
/** Application */
|
|
202
336
|
KnownIdentityType["Application"] = "Application";
|
|
337
|
+
/** ManagedIdentity */
|
|
203
338
|
KnownIdentityType["ManagedIdentity"] = "ManagedIdentity";
|
|
339
|
+
/** Key */
|
|
204
340
|
KnownIdentityType["Key"] = "Key";
|
|
205
341
|
})(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
|
|
206
342
|
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
@@ -226,12 +362,15 @@ exports.KnownProvisioningState = void 0;
|
|
|
226
362
|
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
|
227
363
|
exports.KnownPublicNetworkAccess = void 0;
|
|
228
364
|
(function (KnownPublicNetworkAccess) {
|
|
365
|
+
/** Enabled */
|
|
229
366
|
KnownPublicNetworkAccess["Enabled"] = "Enabled";
|
|
367
|
+
/** Disabled */
|
|
230
368
|
KnownPublicNetworkAccess["Disabled"] = "Disabled";
|
|
231
369
|
})(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
|
|
232
370
|
/** Known values of {@link ManagedHsmSkuFamily} that the service accepts. */
|
|
233
371
|
exports.KnownManagedHsmSkuFamily = void 0;
|
|
234
372
|
(function (KnownManagedHsmSkuFamily) {
|
|
373
|
+
/** B */
|
|
235
374
|
KnownManagedHsmSkuFamily["B"] = "B";
|
|
236
375
|
})(exports.KnownManagedHsmSkuFamily || (exports.KnownManagedHsmSkuFamily = {}));
|
|
237
376
|
|
|
@@ -1790,6 +1929,18 @@ const MhsmPrivateEndpointConnectionItem = {
|
|
|
1790
1929
|
name: "Composite",
|
|
1791
1930
|
className: "MhsmPrivateEndpointConnectionItem",
|
|
1792
1931
|
modelProperties: {
|
|
1932
|
+
id: {
|
|
1933
|
+
serializedName: "id",
|
|
1934
|
+
type: {
|
|
1935
|
+
name: "String"
|
|
1936
|
+
}
|
|
1937
|
+
},
|
|
1938
|
+
etag: {
|
|
1939
|
+
serializedName: "etag",
|
|
1940
|
+
type: {
|
|
1941
|
+
name: "String"
|
|
1942
|
+
}
|
|
1943
|
+
},
|
|
1793
1944
|
privateEndpoint: {
|
|
1794
1945
|
serializedName: "properties.privateEndpoint",
|
|
1795
1946
|
type: {
|
|
@@ -2873,6 +3024,20 @@ const PrivateEndpointConnectionsDeleteHeaders = {
|
|
|
2873
3024
|
}
|
|
2874
3025
|
}
|
|
2875
3026
|
};
|
|
3027
|
+
const ManagedHsmsUpdateHeaders = {
|
|
3028
|
+
type: {
|
|
3029
|
+
name: "Composite",
|
|
3030
|
+
className: "ManagedHsmsUpdateHeaders",
|
|
3031
|
+
modelProperties: {
|
|
3032
|
+
location: {
|
|
3033
|
+
serializedName: "location",
|
|
3034
|
+
type: {
|
|
3035
|
+
name: "String"
|
|
3036
|
+
}
|
|
3037
|
+
}
|
|
3038
|
+
}
|
|
3039
|
+
}
|
|
3040
|
+
};
|
|
2876
3041
|
const MhsmPrivateEndpointConnectionsPutHeaders = {
|
|
2877
3042
|
type: {
|
|
2878
3043
|
name: "Composite",
|
|
@@ -2995,6 +3160,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
2995
3160
|
SecretAttributes: SecretAttributes,
|
|
2996
3161
|
PrivateEndpointConnectionsPutHeaders: PrivateEndpointConnectionsPutHeaders,
|
|
2997
3162
|
PrivateEndpointConnectionsDeleteHeaders: PrivateEndpointConnectionsDeleteHeaders,
|
|
3163
|
+
ManagedHsmsUpdateHeaders: ManagedHsmsUpdateHeaders,
|
|
2998
3164
|
MhsmPrivateEndpointConnectionsPutHeaders: MhsmPrivateEndpointConnectionsPutHeaders,
|
|
2999
3165
|
MhsmPrivateEndpointConnectionsDeleteHeaders: MhsmPrivateEndpointConnectionsDeleteHeaders
|
|
3000
3166
|
});
|
|
@@ -3298,20 +3464,31 @@ class KeysImpl {
|
|
|
3298
3464
|
[Symbol.asyncIterator]() {
|
|
3299
3465
|
return this;
|
|
3300
3466
|
},
|
|
3301
|
-
byPage: () => {
|
|
3302
|
-
|
|
3467
|
+
byPage: (settings) => {
|
|
3468
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3469
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3470
|
+
}
|
|
3471
|
+
return this.listPagingPage(resourceGroupName, vaultName, options, settings);
|
|
3303
3472
|
}
|
|
3304
3473
|
};
|
|
3305
3474
|
}
|
|
3306
|
-
listPagingPage(resourceGroupName, vaultName, options) {
|
|
3475
|
+
listPagingPage(resourceGroupName, vaultName, options, settings) {
|
|
3307
3476
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3308
|
-
let result
|
|
3309
|
-
|
|
3310
|
-
|
|
3477
|
+
let result;
|
|
3478
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3479
|
+
if (!continuationToken) {
|
|
3480
|
+
result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
|
|
3481
|
+
let page = result.value || [];
|
|
3482
|
+
continuationToken = result.nextLink;
|
|
3483
|
+
setContinuationToken(page, continuationToken);
|
|
3484
|
+
yield yield tslib.__await(page);
|
|
3485
|
+
}
|
|
3311
3486
|
while (continuationToken) {
|
|
3312
3487
|
result = yield tslib.__await(this._listNext(resourceGroupName, vaultName, continuationToken, options));
|
|
3313
3488
|
continuationToken = result.nextLink;
|
|
3314
|
-
|
|
3489
|
+
let page = result.value || [];
|
|
3490
|
+
setContinuationToken(page, continuationToken);
|
|
3491
|
+
yield yield tslib.__await(page);
|
|
3315
3492
|
}
|
|
3316
3493
|
});
|
|
3317
3494
|
}
|
|
@@ -3349,20 +3526,31 @@ class KeysImpl {
|
|
|
3349
3526
|
[Symbol.asyncIterator]() {
|
|
3350
3527
|
return this;
|
|
3351
3528
|
},
|
|
3352
|
-
byPage: () => {
|
|
3353
|
-
|
|
3529
|
+
byPage: (settings) => {
|
|
3530
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3531
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3532
|
+
}
|
|
3533
|
+
return this.listVersionsPagingPage(resourceGroupName, vaultName, keyName, options, settings);
|
|
3354
3534
|
}
|
|
3355
3535
|
};
|
|
3356
3536
|
}
|
|
3357
|
-
listVersionsPagingPage(resourceGroupName, vaultName, keyName, options) {
|
|
3537
|
+
listVersionsPagingPage(resourceGroupName, vaultName, keyName, options, settings) {
|
|
3358
3538
|
return tslib.__asyncGenerator(this, arguments, function* listVersionsPagingPage_1() {
|
|
3359
|
-
let result
|
|
3360
|
-
|
|
3361
|
-
|
|
3539
|
+
let result;
|
|
3540
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3541
|
+
if (!continuationToken) {
|
|
3542
|
+
result = yield tslib.__await(this._listVersions(resourceGroupName, vaultName, keyName, options));
|
|
3543
|
+
let page = result.value || [];
|
|
3544
|
+
continuationToken = result.nextLink;
|
|
3545
|
+
setContinuationToken(page, continuationToken);
|
|
3546
|
+
yield yield tslib.__await(page);
|
|
3547
|
+
}
|
|
3362
3548
|
while (continuationToken) {
|
|
3363
3549
|
result = yield tslib.__await(this._listVersionsNext(resourceGroupName, vaultName, keyName, continuationToken, options));
|
|
3364
3550
|
continuationToken = result.nextLink;
|
|
3365
|
-
|
|
3551
|
+
let page = result.value || [];
|
|
3552
|
+
setContinuationToken(page, continuationToken);
|
|
3553
|
+
yield yield tslib.__await(page);
|
|
3366
3554
|
}
|
|
3367
3555
|
});
|
|
3368
3556
|
}
|
|
@@ -3679,20 +3867,31 @@ class VaultsImpl {
|
|
|
3679
3867
|
[Symbol.asyncIterator]() {
|
|
3680
3868
|
return this;
|
|
3681
3869
|
},
|
|
3682
|
-
byPage: () => {
|
|
3683
|
-
|
|
3870
|
+
byPage: (settings) => {
|
|
3871
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3872
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3873
|
+
}
|
|
3874
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
3684
3875
|
}
|
|
3685
3876
|
};
|
|
3686
3877
|
}
|
|
3687
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
3878
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3688
3879
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3689
|
-
let result
|
|
3690
|
-
|
|
3691
|
-
|
|
3880
|
+
let result;
|
|
3881
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3882
|
+
if (!continuationToken) {
|
|
3883
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3884
|
+
let page = result.value || [];
|
|
3885
|
+
continuationToken = result.nextLink;
|
|
3886
|
+
setContinuationToken(page, continuationToken);
|
|
3887
|
+
yield yield tslib.__await(page);
|
|
3888
|
+
}
|
|
3692
3889
|
while (continuationToken) {
|
|
3693
3890
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
3694
3891
|
continuationToken = result.nextLink;
|
|
3695
|
-
|
|
3892
|
+
let page = result.value || [];
|
|
3893
|
+
setContinuationToken(page, continuationToken);
|
|
3894
|
+
yield yield tslib.__await(page);
|
|
3696
3895
|
}
|
|
3697
3896
|
});
|
|
3698
3897
|
}
|
|
@@ -3727,20 +3926,31 @@ class VaultsImpl {
|
|
|
3727
3926
|
[Symbol.asyncIterator]() {
|
|
3728
3927
|
return this;
|
|
3729
3928
|
},
|
|
3730
|
-
byPage: () => {
|
|
3731
|
-
|
|
3929
|
+
byPage: (settings) => {
|
|
3930
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3931
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3932
|
+
}
|
|
3933
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
3732
3934
|
}
|
|
3733
3935
|
};
|
|
3734
3936
|
}
|
|
3735
|
-
listBySubscriptionPagingPage(options) {
|
|
3937
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
3736
3938
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3737
|
-
let result
|
|
3738
|
-
|
|
3739
|
-
|
|
3939
|
+
let result;
|
|
3940
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3941
|
+
if (!continuationToken) {
|
|
3942
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
3943
|
+
let page = result.value || [];
|
|
3944
|
+
continuationToken = result.nextLink;
|
|
3945
|
+
setContinuationToken(page, continuationToken);
|
|
3946
|
+
yield yield tslib.__await(page);
|
|
3947
|
+
}
|
|
3740
3948
|
while (continuationToken) {
|
|
3741
3949
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
3742
3950
|
continuationToken = result.nextLink;
|
|
3743
|
-
|
|
3951
|
+
let page = result.value || [];
|
|
3952
|
+
setContinuationToken(page, continuationToken);
|
|
3953
|
+
yield yield tslib.__await(page);
|
|
3744
3954
|
}
|
|
3745
3955
|
});
|
|
3746
3956
|
}
|
|
@@ -3775,20 +3985,31 @@ class VaultsImpl {
|
|
|
3775
3985
|
[Symbol.asyncIterator]() {
|
|
3776
3986
|
return this;
|
|
3777
3987
|
},
|
|
3778
|
-
byPage: () => {
|
|
3779
|
-
|
|
3988
|
+
byPage: (settings) => {
|
|
3989
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3990
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3991
|
+
}
|
|
3992
|
+
return this.listDeletedPagingPage(options, settings);
|
|
3780
3993
|
}
|
|
3781
3994
|
};
|
|
3782
3995
|
}
|
|
3783
|
-
listDeletedPagingPage(options) {
|
|
3996
|
+
listDeletedPagingPage(options, settings) {
|
|
3784
3997
|
return tslib.__asyncGenerator(this, arguments, function* listDeletedPagingPage_1() {
|
|
3785
|
-
let result
|
|
3786
|
-
|
|
3787
|
-
|
|
3998
|
+
let result;
|
|
3999
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4000
|
+
if (!continuationToken) {
|
|
4001
|
+
result = yield tslib.__await(this._listDeleted(options));
|
|
4002
|
+
let page = result.value || [];
|
|
4003
|
+
continuationToken = result.nextLink;
|
|
4004
|
+
setContinuationToken(page, continuationToken);
|
|
4005
|
+
yield yield tslib.__await(page);
|
|
4006
|
+
}
|
|
3788
4007
|
while (continuationToken) {
|
|
3789
4008
|
result = yield tslib.__await(this._listDeletedNext(continuationToken, options));
|
|
3790
4009
|
continuationToken = result.nextLink;
|
|
3791
|
-
|
|
4010
|
+
let page = result.value || [];
|
|
4011
|
+
setContinuationToken(page, continuationToken);
|
|
4012
|
+
yield yield tslib.__await(page);
|
|
3792
4013
|
}
|
|
3793
4014
|
});
|
|
3794
4015
|
}
|
|
@@ -3823,20 +4044,31 @@ class VaultsImpl {
|
|
|
3823
4044
|
[Symbol.asyncIterator]() {
|
|
3824
4045
|
return this;
|
|
3825
4046
|
},
|
|
3826
|
-
byPage: () => {
|
|
3827
|
-
|
|
4047
|
+
byPage: (settings) => {
|
|
4048
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4049
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4050
|
+
}
|
|
4051
|
+
return this.listPagingPage(options, settings);
|
|
3828
4052
|
}
|
|
3829
4053
|
};
|
|
3830
4054
|
}
|
|
3831
|
-
listPagingPage(options) {
|
|
4055
|
+
listPagingPage(options, settings) {
|
|
3832
4056
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3833
|
-
let result
|
|
3834
|
-
|
|
3835
|
-
|
|
4057
|
+
let result;
|
|
4058
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4059
|
+
if (!continuationToken) {
|
|
4060
|
+
result = yield tslib.__await(this._list(options));
|
|
4061
|
+
let page = result.value || [];
|
|
4062
|
+
continuationToken = result.nextLink;
|
|
4063
|
+
setContinuationToken(page, continuationToken);
|
|
4064
|
+
yield yield tslib.__await(page);
|
|
4065
|
+
}
|
|
3836
4066
|
while (continuationToken) {
|
|
3837
4067
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
3838
4068
|
continuationToken = result.nextLink;
|
|
3839
|
-
|
|
4069
|
+
let page = result.value || [];
|
|
4070
|
+
setContinuationToken(page, continuationToken);
|
|
4071
|
+
yield yield tslib.__await(page);
|
|
3840
4072
|
}
|
|
3841
4073
|
});
|
|
3842
4074
|
}
|
|
@@ -4454,20 +4686,31 @@ class PrivateEndpointConnectionsImpl {
|
|
|
4454
4686
|
[Symbol.asyncIterator]() {
|
|
4455
4687
|
return this;
|
|
4456
4688
|
},
|
|
4457
|
-
byPage: () => {
|
|
4458
|
-
|
|
4689
|
+
byPage: (settings) => {
|
|
4690
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4691
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4692
|
+
}
|
|
4693
|
+
return this.listByResourcePagingPage(resourceGroupName, vaultName, options, settings);
|
|
4459
4694
|
}
|
|
4460
4695
|
};
|
|
4461
4696
|
}
|
|
4462
|
-
listByResourcePagingPage(resourceGroupName, vaultName, options) {
|
|
4697
|
+
listByResourcePagingPage(resourceGroupName, vaultName, options, settings) {
|
|
4463
4698
|
return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
|
|
4464
|
-
let result
|
|
4465
|
-
|
|
4466
|
-
|
|
4699
|
+
let result;
|
|
4700
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4701
|
+
if (!continuationToken) {
|
|
4702
|
+
result = yield tslib.__await(this._listByResource(resourceGroupName, vaultName, options));
|
|
4703
|
+
let page = result.value || [];
|
|
4704
|
+
continuationToken = result.nextLink;
|
|
4705
|
+
setContinuationToken(page, continuationToken);
|
|
4706
|
+
yield yield tslib.__await(page);
|
|
4707
|
+
}
|
|
4467
4708
|
while (continuationToken) {
|
|
4468
4709
|
result = yield tslib.__await(this._listByResourceNext(resourceGroupName, vaultName, continuationToken, options));
|
|
4469
4710
|
continuationToken = result.nextLink;
|
|
4470
|
-
|
|
4711
|
+
let page = result.value || [];
|
|
4712
|
+
setContinuationToken(page, continuationToken);
|
|
4713
|
+
yield yield tslib.__await(page);
|
|
4471
4714
|
}
|
|
4472
4715
|
});
|
|
4473
4716
|
}
|
|
@@ -4801,20 +5044,31 @@ class ManagedHsmsImpl {
|
|
|
4801
5044
|
[Symbol.asyncIterator]() {
|
|
4802
5045
|
return this;
|
|
4803
5046
|
},
|
|
4804
|
-
byPage: () => {
|
|
4805
|
-
|
|
5047
|
+
byPage: (settings) => {
|
|
5048
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5049
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5050
|
+
}
|
|
5051
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
4806
5052
|
}
|
|
4807
5053
|
};
|
|
4808
5054
|
}
|
|
4809
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
5055
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
4810
5056
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
4811
|
-
let result
|
|
4812
|
-
|
|
4813
|
-
|
|
5057
|
+
let result;
|
|
5058
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5059
|
+
if (!continuationToken) {
|
|
5060
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5061
|
+
let page = result.value || [];
|
|
5062
|
+
continuationToken = result.nextLink;
|
|
5063
|
+
setContinuationToken(page, continuationToken);
|
|
5064
|
+
yield yield tslib.__await(page);
|
|
5065
|
+
}
|
|
4814
5066
|
while (continuationToken) {
|
|
4815
5067
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
4816
5068
|
continuationToken = result.nextLink;
|
|
4817
|
-
|
|
5069
|
+
let page = result.value || [];
|
|
5070
|
+
setContinuationToken(page, continuationToken);
|
|
5071
|
+
yield yield tslib.__await(page);
|
|
4818
5072
|
}
|
|
4819
5073
|
});
|
|
4820
5074
|
}
|
|
@@ -4849,20 +5103,31 @@ class ManagedHsmsImpl {
|
|
|
4849
5103
|
[Symbol.asyncIterator]() {
|
|
4850
5104
|
return this;
|
|
4851
5105
|
},
|
|
4852
|
-
byPage: () => {
|
|
4853
|
-
|
|
5106
|
+
byPage: (settings) => {
|
|
5107
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5108
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5109
|
+
}
|
|
5110
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
4854
5111
|
}
|
|
4855
5112
|
};
|
|
4856
5113
|
}
|
|
4857
|
-
listBySubscriptionPagingPage(options) {
|
|
5114
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
4858
5115
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
4859
|
-
let result
|
|
4860
|
-
|
|
4861
|
-
|
|
5116
|
+
let result;
|
|
5117
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5118
|
+
if (!continuationToken) {
|
|
5119
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
5120
|
+
let page = result.value || [];
|
|
5121
|
+
continuationToken = result.nextLink;
|
|
5122
|
+
setContinuationToken(page, continuationToken);
|
|
5123
|
+
yield yield tslib.__await(page);
|
|
5124
|
+
}
|
|
4862
5125
|
while (continuationToken) {
|
|
4863
5126
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
4864
5127
|
continuationToken = result.nextLink;
|
|
4865
|
-
|
|
5128
|
+
let page = result.value || [];
|
|
5129
|
+
setContinuationToken(page, continuationToken);
|
|
5130
|
+
yield yield tslib.__await(page);
|
|
4866
5131
|
}
|
|
4867
5132
|
});
|
|
4868
5133
|
}
|
|
@@ -4897,20 +5162,31 @@ class ManagedHsmsImpl {
|
|
|
4897
5162
|
[Symbol.asyncIterator]() {
|
|
4898
5163
|
return this;
|
|
4899
5164
|
},
|
|
4900
|
-
byPage: () => {
|
|
4901
|
-
|
|
5165
|
+
byPage: (settings) => {
|
|
5166
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5167
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5168
|
+
}
|
|
5169
|
+
return this.listDeletedPagingPage(options, settings);
|
|
4902
5170
|
}
|
|
4903
5171
|
};
|
|
4904
5172
|
}
|
|
4905
|
-
listDeletedPagingPage(options) {
|
|
5173
|
+
listDeletedPagingPage(options, settings) {
|
|
4906
5174
|
return tslib.__asyncGenerator(this, arguments, function* listDeletedPagingPage_1() {
|
|
4907
|
-
let result
|
|
4908
|
-
|
|
4909
|
-
|
|
5175
|
+
let result;
|
|
5176
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5177
|
+
if (!continuationToken) {
|
|
5178
|
+
result = yield tslib.__await(this._listDeleted(options));
|
|
5179
|
+
let page = result.value || [];
|
|
5180
|
+
continuationToken = result.nextLink;
|
|
5181
|
+
setContinuationToken(page, continuationToken);
|
|
5182
|
+
yield yield tslib.__await(page);
|
|
5183
|
+
}
|
|
4910
5184
|
while (continuationToken) {
|
|
4911
5185
|
result = yield tslib.__await(this._listDeletedNext(continuationToken, options));
|
|
4912
5186
|
continuationToken = result.nextLink;
|
|
4913
|
-
|
|
5187
|
+
let page = result.value || [];
|
|
5188
|
+
setContinuationToken(page, continuationToken);
|
|
5189
|
+
yield yield tslib.__await(page);
|
|
4914
5190
|
}
|
|
4915
5191
|
});
|
|
4916
5192
|
}
|
|
@@ -5508,20 +5784,31 @@ class MhsmPrivateEndpointConnectionsImpl {
|
|
|
5508
5784
|
[Symbol.asyncIterator]() {
|
|
5509
5785
|
return this;
|
|
5510
5786
|
},
|
|
5511
|
-
byPage: () => {
|
|
5512
|
-
|
|
5787
|
+
byPage: (settings) => {
|
|
5788
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5789
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5790
|
+
}
|
|
5791
|
+
return this.listByResourcePagingPage(resourceGroupName, name, options, settings);
|
|
5513
5792
|
}
|
|
5514
5793
|
};
|
|
5515
5794
|
}
|
|
5516
|
-
listByResourcePagingPage(resourceGroupName, name, options) {
|
|
5795
|
+
listByResourcePagingPage(resourceGroupName, name, options, settings) {
|
|
5517
5796
|
return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
|
|
5518
|
-
let result
|
|
5519
|
-
|
|
5520
|
-
|
|
5797
|
+
let result;
|
|
5798
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5799
|
+
if (!continuationToken) {
|
|
5800
|
+
result = yield tslib.__await(this._listByResource(resourceGroupName, name, options));
|
|
5801
|
+
let page = result.value || [];
|
|
5802
|
+
continuationToken = result.nextLink;
|
|
5803
|
+
setContinuationToken(page, continuationToken);
|
|
5804
|
+
yield yield tslib.__await(page);
|
|
5805
|
+
}
|
|
5521
5806
|
while (continuationToken) {
|
|
5522
5807
|
result = yield tslib.__await(this._listByResourceNext(resourceGroupName, name, continuationToken, options));
|
|
5523
5808
|
continuationToken = result.nextLink;
|
|
5524
|
-
|
|
5809
|
+
let page = result.value || [];
|
|
5810
|
+
setContinuationToken(page, continuationToken);
|
|
5811
|
+
yield yield tslib.__await(page);
|
|
5525
5812
|
}
|
|
5526
5813
|
});
|
|
5527
5814
|
}
|
|
@@ -5852,20 +6139,31 @@ class OperationsImpl {
|
|
|
5852
6139
|
[Symbol.asyncIterator]() {
|
|
5853
6140
|
return this;
|
|
5854
6141
|
},
|
|
5855
|
-
byPage: () => {
|
|
5856
|
-
|
|
6142
|
+
byPage: (settings) => {
|
|
6143
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6144
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6145
|
+
}
|
|
6146
|
+
return this.listPagingPage(options, settings);
|
|
5857
6147
|
}
|
|
5858
6148
|
};
|
|
5859
6149
|
}
|
|
5860
|
-
listPagingPage(options) {
|
|
6150
|
+
listPagingPage(options, settings) {
|
|
5861
6151
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5862
|
-
let result
|
|
5863
|
-
|
|
5864
|
-
|
|
6152
|
+
let result;
|
|
6153
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6154
|
+
if (!continuationToken) {
|
|
6155
|
+
result = yield tslib.__await(this._list(options));
|
|
6156
|
+
let page = result.value || [];
|
|
6157
|
+
continuationToken = result.nextLink;
|
|
6158
|
+
setContinuationToken(page, continuationToken);
|
|
6159
|
+
yield yield tslib.__await(page);
|
|
6160
|
+
}
|
|
5865
6161
|
while (continuationToken) {
|
|
5866
6162
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
5867
6163
|
continuationToken = result.nextLink;
|
|
5868
|
-
|
|
6164
|
+
let page = result.value || [];
|
|
6165
|
+
setContinuationToken(page, continuationToken);
|
|
6166
|
+
yield yield tslib.__await(page);
|
|
5869
6167
|
}
|
|
5870
6168
|
});
|
|
5871
6169
|
}
|
|
@@ -5972,20 +6270,31 @@ class SecretsImpl {
|
|
|
5972
6270
|
[Symbol.asyncIterator]() {
|
|
5973
6271
|
return this;
|
|
5974
6272
|
},
|
|
5975
|
-
byPage: () => {
|
|
5976
|
-
|
|
6273
|
+
byPage: (settings) => {
|
|
6274
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6275
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
6276
|
+
}
|
|
6277
|
+
return this.listPagingPage(resourceGroupName, vaultName, options, settings);
|
|
5977
6278
|
}
|
|
5978
6279
|
};
|
|
5979
6280
|
}
|
|
5980
|
-
listPagingPage(resourceGroupName, vaultName, options) {
|
|
6281
|
+
listPagingPage(resourceGroupName, vaultName, options, settings) {
|
|
5981
6282
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5982
|
-
let result
|
|
5983
|
-
|
|
5984
|
-
|
|
6283
|
+
let result;
|
|
6284
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6285
|
+
if (!continuationToken) {
|
|
6286
|
+
result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
|
|
6287
|
+
let page = result.value || [];
|
|
6288
|
+
continuationToken = result.nextLink;
|
|
6289
|
+
setContinuationToken(page, continuationToken);
|
|
6290
|
+
yield yield tslib.__await(page);
|
|
6291
|
+
}
|
|
5985
6292
|
while (continuationToken) {
|
|
5986
6293
|
result = yield tslib.__await(this._listNext(resourceGroupName, vaultName, continuationToken, options));
|
|
5987
6294
|
continuationToken = result.nextLink;
|
|
5988
|
-
|
|
6295
|
+
let page = result.value || [];
|
|
6296
|
+
setContinuationToken(page, continuationToken);
|
|
6297
|
+
yield yield tslib.__await(page);
|
|
5989
6298
|
}
|
|
5990
6299
|
});
|
|
5991
6300
|
}
|
|
@@ -6203,7 +6512,7 @@ class KeyVaultManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
6203
6512
|
* @param options The parameter options
|
|
6204
6513
|
*/
|
|
6205
6514
|
constructor(credentials, subscriptionId, options) {
|
|
6206
|
-
var _a, _b;
|
|
6515
|
+
var _a, _b, _c;
|
|
6207
6516
|
if (credentials === undefined) {
|
|
6208
6517
|
throw new Error("'credentials' cannot be null");
|
|
6209
6518
|
}
|
|
@@ -6218,32 +6527,34 @@ class KeyVaultManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
6218
6527
|
requestContentType: "application/json; charset=utf-8",
|
|
6219
6528
|
credential: credentials
|
|
6220
6529
|
};
|
|
6221
|
-
const packageDetails = `azsdk-js-arm-keyvault/2.1.0-beta.
|
|
6530
|
+
const packageDetails = `azsdk-js-arm-keyvault/2.1.0-beta.2`;
|
|
6222
6531
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
6223
6532
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
6224
6533
|
: `${packageDetails}`;
|
|
6225
|
-
if (!options.credentialScopes) {
|
|
6226
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
6227
|
-
}
|
|
6228
6534
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
6229
6535
|
userAgentPrefix
|
|
6230
|
-
},
|
|
6536
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
6231
6537
|
super(optionsWithDefaults);
|
|
6538
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
6232
6539
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
6233
6540
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
6234
|
-
|
|
6541
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
6235
6542
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6543
|
+
}
|
|
6544
|
+
if (!options ||
|
|
6545
|
+
!options.pipeline ||
|
|
6546
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
6547
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
6548
|
+
this.pipeline.removePolicy({
|
|
6549
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
6550
|
+
});
|
|
6551
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
6552
|
+
credential: credentials,
|
|
6553
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
6554
|
+
challengeCallbacks: {
|
|
6555
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
6556
|
+
}
|
|
6557
|
+
}));
|
|
6247
6558
|
}
|
|
6248
6559
|
// Parameter assignments
|
|
6249
6560
|
this.subscriptionId = subscriptionId;
|
|
@@ -6259,8 +6570,37 @@ class KeyVaultManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
6259
6570
|
this.mhsmPrivateLinkResources = new MhsmPrivateLinkResourcesImpl(this);
|
|
6260
6571
|
this.operations = new OperationsImpl(this);
|
|
6261
6572
|
this.secrets = new SecretsImpl(this);
|
|
6573
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
6574
|
+
}
|
|
6575
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
6576
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
6577
|
+
if (!apiVersion) {
|
|
6578
|
+
return;
|
|
6579
|
+
}
|
|
6580
|
+
const apiVersionPolicy = {
|
|
6581
|
+
name: "CustomApiVersionPolicy",
|
|
6582
|
+
sendRequest(request, next) {
|
|
6583
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6584
|
+
const param = request.url.split("?");
|
|
6585
|
+
if (param.length > 1) {
|
|
6586
|
+
const newParams = param[1].split("&").map((item) => {
|
|
6587
|
+
if (item.indexOf("api-version") > -1) {
|
|
6588
|
+
return "api-version=" + apiVersion;
|
|
6589
|
+
}
|
|
6590
|
+
else {
|
|
6591
|
+
return item;
|
|
6592
|
+
}
|
|
6593
|
+
});
|
|
6594
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
6595
|
+
}
|
|
6596
|
+
return next(request);
|
|
6597
|
+
});
|
|
6598
|
+
}
|
|
6599
|
+
};
|
|
6600
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
6262
6601
|
}
|
|
6263
6602
|
}
|
|
6264
6603
|
|
|
6265
6604
|
exports.KeyVaultManagementClient = KeyVaultManagementClient;
|
|
6605
|
+
exports.getContinuationToken = getContinuationToken;
|
|
6266
6606
|
//# sourceMappingURL=index.js.map
|