@azure/arm-confidentialledger 1.3.0-beta.1 → 1.3.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 +58 -1
- package/LICENSE +1 -1
- package/dist/index.js +1013 -434
- 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/samples-dev/checkNameAvailabilitySample.js +3 -3
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerBackupSample.d.ts +2 -0
- package/dist-esm/samples-dev/ledgerBackupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/ledgerBackupSample.js +44 -0
- package/dist-esm/samples-dev/ledgerBackupSample.js.map +1 -0
- package/dist-esm/samples-dev/ledgerCreateSample.js +9 -8
- package/dist-esm/samples-dev/ledgerCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerDeleteSample.js +1 -1
- package/dist-esm/samples-dev/ledgerGetSample.js +1 -1
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js +7 -5
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js +7 -5
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerRestoreSample.d.ts +2 -0
- package/dist-esm/samples-dev/ledgerRestoreSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/ledgerRestoreSample.js +45 -0
- package/dist-esm/samples-dev/ledgerRestoreSample.js.map +1 -0
- package/dist-esm/samples-dev/ledgerUpdateSample.js +9 -9
- package/dist-esm/samples-dev/ledgerUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/managedCcfBackupSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfBackupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfBackupSample.js +44 -0
- package/dist-esm/samples-dev/managedCcfBackupSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfCreateSample.js +7 -7
- package/dist-esm/samples-dev/managedCcfCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/managedCcfDeleteSample.js +1 -1
- package/dist-esm/samples-dev/managedCcfGetSample.js +1 -1
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js +7 -5
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js +7 -5
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/managedCcfRestoreSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfRestoreSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfRestoreSample.js +45 -0
- package/dist-esm/samples-dev/managedCcfRestoreSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfUpdateSample.js +5 -5
- package/dist-esm/samples-dev/managedCcfUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +7 -5
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/src/confidentialLedgerClient.d.ts.map +1 -1
- package/dist-esm/src/confidentialLedgerClient.js +13 -13
- package/dist-esm/src/confidentialLedgerClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +149 -24
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +10 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +8 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +385 -213
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +55 -39
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/ledger.d.ts +33 -1
- package/dist-esm/src/operations/ledger.d.ts.map +1 -1
- package/dist-esm/src/operations/ledger.js +249 -67
- package/dist-esm/src/operations/ledger.js.map +1 -1
- package/dist-esm/src/operations/managedCCFOperations.d.ts +35 -3
- package/dist-esm/src/operations/managedCCFOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/managedCCFOperations.js +257 -67
- package/dist-esm/src/operations/managedCCFOperations.js.map +1 -1
- package/dist-esm/src/operations/operations.js +15 -13
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/ledger.d.ts +33 -1
- package/dist-esm/src/operationsInterfaces/ledger.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts +35 -3
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/confidentialledger_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/confidentialledger_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/confidentialledger_operations_test.spec.js +71 -0
- package/dist-esm/test/confidentialledger_operations_test.spec.js.map +1 -0
- package/package.json +17 -22
- package/review/arm-confidentialledger.api.md +107 -2
- package/src/confidentialLedgerClient.ts +26 -26
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +158 -9
- package/src/models/mappers.ts +396 -216
- package/src/models/parameters.ts +64 -40
- package/src/operations/ledger.ts +370 -124
- package/src/operations/managedCCFOperations.ts +393 -127
- package/src/operations/operations.ts +16 -16
- package/src/operationsInterfaces/ledger.ts +75 -10
- package/src/operationsInterfaces/managedCCFOperations.ts +86 -12
- package/src/operationsInterfaces/operations.ts +2 -2
- package/src/pagingHelper.ts +1 -1
- package/types/arm-confidentialledger.d.ts +211 -3
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/rollup.config.js +0 -122
package/dist/index.js
CHANGED
@@ -7,8 +7,7 @@ var coreClient = require('@azure/core-client');
|
|
7
7
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
8
8
|
var coreLro = require('@azure/core-lro');
|
9
9
|
|
10
|
-
function
|
11
|
-
if (e && e.__esModule) return e;
|
10
|
+
function _interopNamespaceDefault(e) {
|
12
11
|
var n = Object.create(null);
|
13
12
|
if (e) {
|
14
13
|
Object.keys(e).forEach(function (k) {
|
@@ -21,12 +20,12 @@ function _interopNamespace(e) {
|
|
21
20
|
}
|
22
21
|
});
|
23
22
|
}
|
24
|
-
n
|
23
|
+
n.default = e;
|
25
24
|
return Object.freeze(n);
|
26
25
|
}
|
27
26
|
|
28
|
-
var coreClient__namespace = /*#__PURE__*/
|
29
|
-
var coreRestPipeline__namespace = /*#__PURE__*/
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
28
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
30
29
|
|
31
30
|
/*
|
32
31
|
* Copyright (c) Microsoft Corporation.
|
@@ -117,6 +116,16 @@ exports.KnownProvisioningState = void 0;
|
|
117
116
|
/** Updating */
|
118
117
|
KnownProvisioningState["Updating"] = "Updating";
|
119
118
|
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
119
|
+
/** Known values of {@link LedgerSku} that the service accepts. */
|
120
|
+
exports.KnownLedgerSku = void 0;
|
121
|
+
(function (KnownLedgerSku) {
|
122
|
+
/** Standard */
|
123
|
+
KnownLedgerSku["Standard"] = "Standard";
|
124
|
+
/** Basic */
|
125
|
+
KnownLedgerSku["Basic"] = "Basic";
|
126
|
+
/** Unknown */
|
127
|
+
KnownLedgerSku["Unknown"] = "Unknown";
|
128
|
+
})(exports.KnownLedgerSku || (exports.KnownLedgerSku = {}));
|
120
129
|
/** Known values of {@link LedgerRoleName} that the service accepts. */
|
121
130
|
exports.KnownLedgerRoleName = void 0;
|
122
131
|
(function (KnownLedgerRoleName) {
|
@@ -168,20 +177,20 @@ const ResourceProviderOperationList = {
|
|
168
177
|
element: {
|
169
178
|
type: {
|
170
179
|
name: "Composite",
|
171
|
-
className: "ResourceProviderOperationDefinition"
|
172
|
-
}
|
173
|
-
}
|
174
|
-
}
|
180
|
+
className: "ResourceProviderOperationDefinition",
|
181
|
+
},
|
182
|
+
},
|
183
|
+
},
|
175
184
|
},
|
176
185
|
nextLink: {
|
177
186
|
serializedName: "nextLink",
|
178
187
|
readOnly: true,
|
179
188
|
type: {
|
180
|
-
name: "String"
|
181
|
-
}
|
182
|
-
}
|
183
|
-
}
|
184
|
-
}
|
189
|
+
name: "String",
|
190
|
+
},
|
191
|
+
},
|
192
|
+
},
|
193
|
+
},
|
185
194
|
};
|
186
195
|
const ResourceProviderOperationDefinition = {
|
187
196
|
type: {
|
@@ -191,24 +200,24 @@ const ResourceProviderOperationDefinition = {
|
|
191
200
|
name: {
|
192
201
|
serializedName: "name",
|
193
202
|
type: {
|
194
|
-
name: "String"
|
195
|
-
}
|
203
|
+
name: "String",
|
204
|
+
},
|
196
205
|
},
|
197
206
|
isDataAction: {
|
198
207
|
serializedName: "isDataAction",
|
199
208
|
type: {
|
200
|
-
name: "Boolean"
|
201
|
-
}
|
209
|
+
name: "Boolean",
|
210
|
+
},
|
202
211
|
},
|
203
212
|
display: {
|
204
213
|
serializedName: "display",
|
205
214
|
type: {
|
206
215
|
name: "Composite",
|
207
|
-
className: "ResourceProviderOperationDisplay"
|
208
|
-
}
|
209
|
-
}
|
210
|
-
}
|
211
|
-
}
|
216
|
+
className: "ResourceProviderOperationDisplay",
|
217
|
+
},
|
218
|
+
},
|
219
|
+
},
|
220
|
+
},
|
212
221
|
};
|
213
222
|
const ResourceProviderOperationDisplay = {
|
214
223
|
type: {
|
@@ -218,29 +227,29 @@ const ResourceProviderOperationDisplay = {
|
|
218
227
|
provider: {
|
219
228
|
serializedName: "provider",
|
220
229
|
type: {
|
221
|
-
name: "String"
|
222
|
-
}
|
230
|
+
name: "String",
|
231
|
+
},
|
223
232
|
},
|
224
233
|
resource: {
|
225
234
|
serializedName: "resource",
|
226
235
|
type: {
|
227
|
-
name: "String"
|
228
|
-
}
|
236
|
+
name: "String",
|
237
|
+
},
|
229
238
|
},
|
230
239
|
operation: {
|
231
240
|
serializedName: "operation",
|
232
241
|
type: {
|
233
|
-
name: "String"
|
234
|
-
}
|
242
|
+
name: "String",
|
243
|
+
},
|
235
244
|
},
|
236
245
|
description: {
|
237
246
|
serializedName: "description",
|
238
247
|
type: {
|
239
|
-
name: "String"
|
240
|
-
}
|
241
|
-
}
|
242
|
-
}
|
243
|
-
}
|
248
|
+
name: "String",
|
249
|
+
},
|
250
|
+
},
|
251
|
+
},
|
252
|
+
},
|
244
253
|
};
|
245
254
|
const ErrorResponse = {
|
246
255
|
type: {
|
@@ -251,11 +260,11 @@ const ErrorResponse = {
|
|
251
260
|
serializedName: "error",
|
252
261
|
type: {
|
253
262
|
name: "Composite",
|
254
|
-
className: "ErrorDetail"
|
255
|
-
}
|
256
|
-
}
|
257
|
-
}
|
258
|
-
}
|
263
|
+
className: "ErrorDetail",
|
264
|
+
},
|
265
|
+
},
|
266
|
+
},
|
267
|
+
},
|
259
268
|
};
|
260
269
|
const ErrorDetail = {
|
261
270
|
type: {
|
@@ -266,22 +275,22 @@ const ErrorDetail = {
|
|
266
275
|
serializedName: "code",
|
267
276
|
readOnly: true,
|
268
277
|
type: {
|
269
|
-
name: "String"
|
270
|
-
}
|
278
|
+
name: "String",
|
279
|
+
},
|
271
280
|
},
|
272
281
|
message: {
|
273
282
|
serializedName: "message",
|
274
283
|
readOnly: true,
|
275
284
|
type: {
|
276
|
-
name: "String"
|
277
|
-
}
|
285
|
+
name: "String",
|
286
|
+
},
|
278
287
|
},
|
279
288
|
target: {
|
280
289
|
serializedName: "target",
|
281
290
|
readOnly: true,
|
282
291
|
type: {
|
283
|
-
name: "String"
|
284
|
-
}
|
292
|
+
name: "String",
|
293
|
+
},
|
285
294
|
},
|
286
295
|
details: {
|
287
296
|
serializedName: "details",
|
@@ -291,10 +300,10 @@ const ErrorDetail = {
|
|
291
300
|
element: {
|
292
301
|
type: {
|
293
302
|
name: "Composite",
|
294
|
-
className: "ErrorDetail"
|
295
|
-
}
|
296
|
-
}
|
297
|
-
}
|
303
|
+
className: "ErrorDetail",
|
304
|
+
},
|
305
|
+
},
|
306
|
+
},
|
298
307
|
},
|
299
308
|
additionalInfo: {
|
300
309
|
serializedName: "additionalInfo",
|
@@ -304,13 +313,13 @@ const ErrorDetail = {
|
|
304
313
|
element: {
|
305
314
|
type: {
|
306
315
|
name: "Composite",
|
307
|
-
className: "ErrorAdditionalInfo"
|
308
|
-
}
|
309
|
-
}
|
310
|
-
}
|
311
|
-
}
|
312
|
-
}
|
313
|
-
}
|
316
|
+
className: "ErrorAdditionalInfo",
|
317
|
+
},
|
318
|
+
},
|
319
|
+
},
|
320
|
+
},
|
321
|
+
},
|
322
|
+
},
|
314
323
|
};
|
315
324
|
const ErrorAdditionalInfo = {
|
316
325
|
type: {
|
@@ -321,19 +330,19 @@ const ErrorAdditionalInfo = {
|
|
321
330
|
serializedName: "type",
|
322
331
|
readOnly: true,
|
323
332
|
type: {
|
324
|
-
name: "String"
|
325
|
-
}
|
333
|
+
name: "String",
|
334
|
+
},
|
326
335
|
},
|
327
336
|
info: {
|
328
337
|
serializedName: "info",
|
329
338
|
readOnly: true,
|
330
339
|
type: {
|
331
340
|
name: "Dictionary",
|
332
|
-
value: { type: { name: "any" } }
|
333
|
-
}
|
334
|
-
}
|
335
|
-
}
|
336
|
-
}
|
341
|
+
value: { type: { name: "any" } },
|
342
|
+
},
|
343
|
+
},
|
344
|
+
},
|
345
|
+
},
|
337
346
|
};
|
338
347
|
const CheckNameAvailabilityRequest = {
|
339
348
|
type: {
|
@@ -343,17 +352,17 @@ const CheckNameAvailabilityRequest = {
|
|
343
352
|
name: {
|
344
353
|
serializedName: "name",
|
345
354
|
type: {
|
346
|
-
name: "String"
|
347
|
-
}
|
355
|
+
name: "String",
|
356
|
+
},
|
348
357
|
},
|
349
358
|
type: {
|
350
359
|
serializedName: "type",
|
351
360
|
type: {
|
352
|
-
name: "String"
|
353
|
-
}
|
354
|
-
}
|
355
|
-
}
|
356
|
-
}
|
361
|
+
name: "String",
|
362
|
+
},
|
363
|
+
},
|
364
|
+
},
|
365
|
+
},
|
357
366
|
};
|
358
367
|
const CheckNameAvailabilityResponse = {
|
359
368
|
type: {
|
@@ -363,23 +372,23 @@ const CheckNameAvailabilityResponse = {
|
|
363
372
|
nameAvailable: {
|
364
373
|
serializedName: "nameAvailable",
|
365
374
|
type: {
|
366
|
-
name: "Boolean"
|
367
|
-
}
|
375
|
+
name: "Boolean",
|
376
|
+
},
|
368
377
|
},
|
369
378
|
reason: {
|
370
379
|
serializedName: "reason",
|
371
380
|
type: {
|
372
|
-
name: "String"
|
373
|
-
}
|
381
|
+
name: "String",
|
382
|
+
},
|
374
383
|
},
|
375
384
|
message: {
|
376
385
|
serializedName: "message",
|
377
386
|
type: {
|
378
|
-
name: "String"
|
379
|
-
}
|
380
|
-
}
|
381
|
-
}
|
382
|
-
}
|
387
|
+
name: "String",
|
388
|
+
},
|
389
|
+
},
|
390
|
+
},
|
391
|
+
},
|
383
392
|
};
|
384
393
|
const LedgerProperties = {
|
385
394
|
type: {
|
@@ -390,48 +399,54 @@ const LedgerProperties = {
|
|
390
399
|
serializedName: "ledgerName",
|
391
400
|
readOnly: true,
|
392
401
|
type: {
|
393
|
-
name: "String"
|
394
|
-
}
|
402
|
+
name: "String",
|
403
|
+
},
|
395
404
|
},
|
396
405
|
ledgerUri: {
|
397
406
|
serializedName: "ledgerUri",
|
398
407
|
readOnly: true,
|
399
408
|
type: {
|
400
|
-
name: "String"
|
401
|
-
}
|
409
|
+
name: "String",
|
410
|
+
},
|
402
411
|
},
|
403
412
|
identityServiceUri: {
|
404
413
|
serializedName: "identityServiceUri",
|
405
414
|
readOnly: true,
|
406
415
|
type: {
|
407
|
-
name: "String"
|
408
|
-
}
|
416
|
+
name: "String",
|
417
|
+
},
|
409
418
|
},
|
410
419
|
ledgerInternalNamespace: {
|
411
420
|
serializedName: "ledgerInternalNamespace",
|
412
421
|
readOnly: true,
|
413
422
|
type: {
|
414
|
-
name: "String"
|
415
|
-
}
|
423
|
+
name: "String",
|
424
|
+
},
|
416
425
|
},
|
417
426
|
runningState: {
|
418
427
|
serializedName: "runningState",
|
419
428
|
type: {
|
420
|
-
name: "String"
|
421
|
-
}
|
429
|
+
name: "String",
|
430
|
+
},
|
422
431
|
},
|
423
432
|
ledgerType: {
|
424
433
|
serializedName: "ledgerType",
|
425
434
|
type: {
|
426
|
-
name: "String"
|
427
|
-
}
|
435
|
+
name: "String",
|
436
|
+
},
|
428
437
|
},
|
429
438
|
provisioningState: {
|
430
439
|
serializedName: "provisioningState",
|
431
440
|
readOnly: true,
|
432
441
|
type: {
|
433
|
-
name: "String"
|
434
|
-
}
|
442
|
+
name: "String",
|
443
|
+
},
|
444
|
+
},
|
445
|
+
ledgerSku: {
|
446
|
+
serializedName: "ledgerSku",
|
447
|
+
type: {
|
448
|
+
name: "String",
|
449
|
+
},
|
435
450
|
},
|
436
451
|
aadBasedSecurityPrincipals: {
|
437
452
|
serializedName: "aadBasedSecurityPrincipals",
|
@@ -440,10 +455,10 @@ const LedgerProperties = {
|
|
440
455
|
element: {
|
441
456
|
type: {
|
442
457
|
name: "Composite",
|
443
|
-
className: "AADBasedSecurityPrincipal"
|
444
|
-
}
|
445
|
-
}
|
446
|
-
}
|
458
|
+
className: "AADBasedSecurityPrincipal",
|
459
|
+
},
|
460
|
+
},
|
461
|
+
},
|
447
462
|
},
|
448
463
|
certBasedSecurityPrincipals: {
|
449
464
|
serializedName: "certBasedSecurityPrincipals",
|
@@ -452,13 +467,13 @@ const LedgerProperties = {
|
|
452
467
|
element: {
|
453
468
|
type: {
|
454
469
|
name: "Composite",
|
455
|
-
className: "CertBasedSecurityPrincipal"
|
456
|
-
}
|
457
|
-
}
|
458
|
-
}
|
459
|
-
}
|
460
|
-
}
|
461
|
-
}
|
470
|
+
className: "CertBasedSecurityPrincipal",
|
471
|
+
},
|
472
|
+
},
|
473
|
+
},
|
474
|
+
},
|
475
|
+
},
|
476
|
+
},
|
462
477
|
};
|
463
478
|
const AADBasedSecurityPrincipal = {
|
464
479
|
type: {
|
@@ -468,23 +483,23 @@ const AADBasedSecurityPrincipal = {
|
|
468
483
|
principalId: {
|
469
484
|
serializedName: "principalId",
|
470
485
|
type: {
|
471
|
-
name: "String"
|
472
|
-
}
|
486
|
+
name: "String",
|
487
|
+
},
|
473
488
|
},
|
474
489
|
tenantId: {
|
475
490
|
serializedName: "tenantId",
|
476
491
|
type: {
|
477
|
-
name: "String"
|
478
|
-
}
|
492
|
+
name: "String",
|
493
|
+
},
|
479
494
|
},
|
480
495
|
ledgerRoleName: {
|
481
496
|
serializedName: "ledgerRoleName",
|
482
497
|
type: {
|
483
|
-
name: "String"
|
484
|
-
}
|
485
|
-
}
|
486
|
-
}
|
487
|
-
}
|
498
|
+
name: "String",
|
499
|
+
},
|
500
|
+
},
|
501
|
+
},
|
502
|
+
},
|
488
503
|
};
|
489
504
|
const CertBasedSecurityPrincipal = {
|
490
505
|
type: {
|
@@ -494,17 +509,17 @@ const CertBasedSecurityPrincipal = {
|
|
494
509
|
cert: {
|
495
510
|
serializedName: "cert",
|
496
511
|
type: {
|
497
|
-
name: "String"
|
498
|
-
}
|
512
|
+
name: "String",
|
513
|
+
},
|
499
514
|
},
|
500
515
|
ledgerRoleName: {
|
501
516
|
serializedName: "ledgerRoleName",
|
502
517
|
type: {
|
503
|
-
name: "String"
|
504
|
-
}
|
505
|
-
}
|
506
|
-
}
|
507
|
-
}
|
518
|
+
name: "String",
|
519
|
+
},
|
520
|
+
},
|
521
|
+
},
|
522
|
+
},
|
508
523
|
};
|
509
524
|
const Resource = {
|
510
525
|
type: {
|
@@ -515,32 +530,32 @@ const Resource = {
|
|
515
530
|
serializedName: "id",
|
516
531
|
readOnly: true,
|
517
532
|
type: {
|
518
|
-
name: "String"
|
519
|
-
}
|
533
|
+
name: "String",
|
534
|
+
},
|
520
535
|
},
|
521
536
|
name: {
|
522
537
|
serializedName: "name",
|
523
538
|
readOnly: true,
|
524
539
|
type: {
|
525
|
-
name: "String"
|
526
|
-
}
|
540
|
+
name: "String",
|
541
|
+
},
|
527
542
|
},
|
528
543
|
type: {
|
529
544
|
serializedName: "type",
|
530
545
|
readOnly: true,
|
531
546
|
type: {
|
532
|
-
name: "String"
|
533
|
-
}
|
547
|
+
name: "String",
|
548
|
+
},
|
534
549
|
},
|
535
550
|
systemData: {
|
536
551
|
serializedName: "systemData",
|
537
552
|
type: {
|
538
553
|
name: "Composite",
|
539
|
-
className: "SystemData"
|
540
|
-
}
|
541
|
-
}
|
542
|
-
}
|
543
|
-
}
|
554
|
+
className: "SystemData",
|
555
|
+
},
|
556
|
+
},
|
557
|
+
},
|
558
|
+
},
|
544
559
|
};
|
545
560
|
const SystemData = {
|
546
561
|
type: {
|
@@ -550,41 +565,41 @@ const SystemData = {
|
|
550
565
|
createdBy: {
|
551
566
|
serializedName: "createdBy",
|
552
567
|
type: {
|
553
|
-
name: "String"
|
554
|
-
}
|
568
|
+
name: "String",
|
569
|
+
},
|
555
570
|
},
|
556
571
|
createdByType: {
|
557
572
|
serializedName: "createdByType",
|
558
573
|
type: {
|
559
|
-
name: "String"
|
560
|
-
}
|
574
|
+
name: "String",
|
575
|
+
},
|
561
576
|
},
|
562
577
|
createdAt: {
|
563
578
|
serializedName: "createdAt",
|
564
579
|
type: {
|
565
|
-
name: "DateTime"
|
566
|
-
}
|
580
|
+
name: "DateTime",
|
581
|
+
},
|
567
582
|
},
|
568
583
|
lastModifiedBy: {
|
569
584
|
serializedName: "lastModifiedBy",
|
570
585
|
type: {
|
571
|
-
name: "String"
|
572
|
-
}
|
586
|
+
name: "String",
|
587
|
+
},
|
573
588
|
},
|
574
589
|
lastModifiedByType: {
|
575
590
|
serializedName: "lastModifiedByType",
|
576
591
|
type: {
|
577
|
-
name: "String"
|
578
|
-
}
|
592
|
+
name: "String",
|
593
|
+
},
|
579
594
|
},
|
580
595
|
lastModifiedAt: {
|
581
596
|
serializedName: "lastModifiedAt",
|
582
597
|
type: {
|
583
|
-
name: "DateTime"
|
584
|
-
}
|
585
|
-
}
|
586
|
-
}
|
587
|
-
}
|
598
|
+
name: "DateTime",
|
599
|
+
},
|
600
|
+
},
|
601
|
+
},
|
602
|
+
},
|
588
603
|
};
|
589
604
|
const ConfidentialLedgerList = {
|
590
605
|
type: {
|
@@ -598,19 +613,99 @@ const ConfidentialLedgerList = {
|
|
598
613
|
element: {
|
599
614
|
type: {
|
600
615
|
name: "Composite",
|
601
|
-
className: "ConfidentialLedger"
|
602
|
-
}
|
603
|
-
}
|
604
|
-
}
|
616
|
+
className: "ConfidentialLedger",
|
617
|
+
},
|
618
|
+
},
|
619
|
+
},
|
605
620
|
},
|
606
621
|
nextLink: {
|
607
622
|
serializedName: "nextLink",
|
608
623
|
type: {
|
609
|
-
name: "String"
|
610
|
-
}
|
611
|
-
}
|
612
|
-
}
|
613
|
-
}
|
624
|
+
name: "String",
|
625
|
+
},
|
626
|
+
},
|
627
|
+
},
|
628
|
+
},
|
629
|
+
};
|
630
|
+
const ConfidentialLedgerBackup = {
|
631
|
+
type: {
|
632
|
+
name: "Composite",
|
633
|
+
className: "ConfidentialLedgerBackup",
|
634
|
+
modelProperties: {
|
635
|
+
restoreRegion: {
|
636
|
+
serializedName: "restoreRegion",
|
637
|
+
type: {
|
638
|
+
name: "String",
|
639
|
+
},
|
640
|
+
},
|
641
|
+
uri: {
|
642
|
+
serializedName: "uri",
|
643
|
+
required: true,
|
644
|
+
type: {
|
645
|
+
name: "String",
|
646
|
+
},
|
647
|
+
},
|
648
|
+
},
|
649
|
+
},
|
650
|
+
};
|
651
|
+
const ConfidentialLedgerBackupResponse = {
|
652
|
+
type: {
|
653
|
+
name: "Composite",
|
654
|
+
className: "ConfidentialLedgerBackupResponse",
|
655
|
+
modelProperties: {
|
656
|
+
message: {
|
657
|
+
serializedName: "message",
|
658
|
+
readOnly: true,
|
659
|
+
type: {
|
660
|
+
name: "String",
|
661
|
+
},
|
662
|
+
},
|
663
|
+
},
|
664
|
+
},
|
665
|
+
};
|
666
|
+
const ConfidentialLedgerRestore = {
|
667
|
+
type: {
|
668
|
+
name: "Composite",
|
669
|
+
className: "ConfidentialLedgerRestore",
|
670
|
+
modelProperties: {
|
671
|
+
fileShareName: {
|
672
|
+
serializedName: "fileShareName",
|
673
|
+
required: true,
|
674
|
+
type: {
|
675
|
+
name: "String",
|
676
|
+
},
|
677
|
+
},
|
678
|
+
restoreRegion: {
|
679
|
+
serializedName: "restoreRegion",
|
680
|
+
required: true,
|
681
|
+
type: {
|
682
|
+
name: "String",
|
683
|
+
},
|
684
|
+
},
|
685
|
+
uri: {
|
686
|
+
serializedName: "uri",
|
687
|
+
required: true,
|
688
|
+
type: {
|
689
|
+
name: "String",
|
690
|
+
},
|
691
|
+
},
|
692
|
+
},
|
693
|
+
},
|
694
|
+
};
|
695
|
+
const ConfidentialLedgerRestoreResponse = {
|
696
|
+
type: {
|
697
|
+
name: "Composite",
|
698
|
+
className: "ConfidentialLedgerRestoreResponse",
|
699
|
+
modelProperties: {
|
700
|
+
message: {
|
701
|
+
serializedName: "message",
|
702
|
+
readOnly: true,
|
703
|
+
type: {
|
704
|
+
name: "String",
|
705
|
+
},
|
706
|
+
},
|
707
|
+
},
|
708
|
+
},
|
614
709
|
};
|
615
710
|
const ManagedCCFProperties = {
|
616
711
|
type: {
|
@@ -621,22 +716,22 @@ const ManagedCCFProperties = {
|
|
621
716
|
serializedName: "appName",
|
622
717
|
readOnly: true,
|
623
718
|
type: {
|
624
|
-
name: "String"
|
625
|
-
}
|
719
|
+
name: "String",
|
720
|
+
},
|
626
721
|
},
|
627
722
|
appUri: {
|
628
723
|
serializedName: "appUri",
|
629
724
|
readOnly: true,
|
630
725
|
type: {
|
631
|
-
name: "String"
|
632
|
-
}
|
726
|
+
name: "String",
|
727
|
+
},
|
633
728
|
},
|
634
729
|
identityServiceUri: {
|
635
730
|
serializedName: "identityServiceUri",
|
636
731
|
readOnly: true,
|
637
732
|
type: {
|
638
|
-
name: "String"
|
639
|
-
}
|
733
|
+
name: "String",
|
734
|
+
},
|
640
735
|
},
|
641
736
|
memberIdentityCertificates: {
|
642
737
|
serializedName: "memberIdentityCertificates",
|
@@ -645,34 +740,40 @@ const ManagedCCFProperties = {
|
|
645
740
|
element: {
|
646
741
|
type: {
|
647
742
|
name: "Composite",
|
648
|
-
className: "MemberIdentityCertificate"
|
649
|
-
}
|
650
|
-
}
|
651
|
-
}
|
743
|
+
className: "MemberIdentityCertificate",
|
744
|
+
},
|
745
|
+
},
|
746
|
+
},
|
652
747
|
},
|
653
748
|
deploymentType: {
|
654
749
|
serializedName: "deploymentType",
|
655
750
|
type: {
|
656
751
|
name: "Composite",
|
657
|
-
className: "DeploymentType"
|
658
|
-
}
|
752
|
+
className: "DeploymentType",
|
753
|
+
},
|
754
|
+
},
|
755
|
+
runningState: {
|
756
|
+
serializedName: "runningState",
|
757
|
+
type: {
|
758
|
+
name: "String",
|
759
|
+
},
|
659
760
|
},
|
660
761
|
provisioningState: {
|
661
762
|
serializedName: "provisioningState",
|
662
763
|
readOnly: true,
|
663
764
|
type: {
|
664
|
-
name: "String"
|
665
|
-
}
|
765
|
+
name: "String",
|
766
|
+
},
|
666
767
|
},
|
667
768
|
nodeCount: {
|
668
769
|
defaultValue: 3,
|
669
770
|
serializedName: "nodeCount",
|
670
771
|
type: {
|
671
|
-
name: "Number"
|
672
|
-
}
|
673
|
-
}
|
674
|
-
}
|
675
|
-
}
|
772
|
+
name: "Number",
|
773
|
+
},
|
774
|
+
},
|
775
|
+
},
|
776
|
+
},
|
676
777
|
};
|
677
778
|
const MemberIdentityCertificate = {
|
678
779
|
type: {
|
@@ -682,23 +783,23 @@ const MemberIdentityCertificate = {
|
|
682
783
|
certificate: {
|
683
784
|
serializedName: "certificate",
|
684
785
|
type: {
|
685
|
-
name: "String"
|
686
|
-
}
|
786
|
+
name: "String",
|
787
|
+
},
|
687
788
|
},
|
688
789
|
encryptionkey: {
|
689
790
|
serializedName: "encryptionkey",
|
690
791
|
type: {
|
691
|
-
name: "String"
|
692
|
-
}
|
792
|
+
name: "String",
|
793
|
+
},
|
693
794
|
},
|
694
795
|
tags: {
|
695
796
|
serializedName: "tags",
|
696
797
|
type: {
|
697
|
-
name: "any"
|
698
|
-
}
|
699
|
-
}
|
700
|
-
}
|
701
|
-
}
|
798
|
+
name: "any",
|
799
|
+
},
|
800
|
+
},
|
801
|
+
},
|
802
|
+
},
|
702
803
|
};
|
703
804
|
const DeploymentType = {
|
704
805
|
type: {
|
@@ -708,17 +809,17 @@ const DeploymentType = {
|
|
708
809
|
languageRuntime: {
|
709
810
|
serializedName: "languageRuntime",
|
710
811
|
type: {
|
711
|
-
name: "String"
|
712
|
-
}
|
812
|
+
name: "String",
|
813
|
+
},
|
713
814
|
},
|
714
815
|
appSourceUri: {
|
715
816
|
serializedName: "appSourceUri",
|
716
817
|
type: {
|
717
|
-
name: "String"
|
718
|
-
}
|
719
|
-
}
|
720
|
-
}
|
721
|
-
}
|
818
|
+
name: "String",
|
819
|
+
},
|
820
|
+
},
|
821
|
+
},
|
822
|
+
},
|
722
823
|
};
|
723
824
|
const ManagedCCFList = {
|
724
825
|
type: {
|
@@ -732,19 +833,99 @@ const ManagedCCFList = {
|
|
732
833
|
element: {
|
733
834
|
type: {
|
734
835
|
name: "Composite",
|
735
|
-
className: "ManagedCCF"
|
736
|
-
}
|
737
|
-
}
|
738
|
-
}
|
836
|
+
className: "ManagedCCF",
|
837
|
+
},
|
838
|
+
},
|
839
|
+
},
|
739
840
|
},
|
740
841
|
nextLink: {
|
741
842
|
serializedName: "nextLink",
|
742
843
|
type: {
|
743
|
-
name: "String"
|
744
|
-
}
|
745
|
-
}
|
746
|
-
}
|
747
|
-
}
|
844
|
+
name: "String",
|
845
|
+
},
|
846
|
+
},
|
847
|
+
},
|
848
|
+
},
|
849
|
+
};
|
850
|
+
const ManagedCCFBackup = {
|
851
|
+
type: {
|
852
|
+
name: "Composite",
|
853
|
+
className: "ManagedCCFBackup",
|
854
|
+
modelProperties: {
|
855
|
+
restoreRegion: {
|
856
|
+
serializedName: "restoreRegion",
|
857
|
+
type: {
|
858
|
+
name: "String",
|
859
|
+
},
|
860
|
+
},
|
861
|
+
uri: {
|
862
|
+
serializedName: "uri",
|
863
|
+
required: true,
|
864
|
+
type: {
|
865
|
+
name: "String",
|
866
|
+
},
|
867
|
+
},
|
868
|
+
},
|
869
|
+
},
|
870
|
+
};
|
871
|
+
const ManagedCCFBackupResponse = {
|
872
|
+
type: {
|
873
|
+
name: "Composite",
|
874
|
+
className: "ManagedCCFBackupResponse",
|
875
|
+
modelProperties: {
|
876
|
+
message: {
|
877
|
+
serializedName: "message",
|
878
|
+
readOnly: true,
|
879
|
+
type: {
|
880
|
+
name: "String",
|
881
|
+
},
|
882
|
+
},
|
883
|
+
},
|
884
|
+
},
|
885
|
+
};
|
886
|
+
const ManagedCCFRestore = {
|
887
|
+
type: {
|
888
|
+
name: "Composite",
|
889
|
+
className: "ManagedCCFRestore",
|
890
|
+
modelProperties: {
|
891
|
+
fileShareName: {
|
892
|
+
serializedName: "fileShareName",
|
893
|
+
required: true,
|
894
|
+
type: {
|
895
|
+
name: "String",
|
896
|
+
},
|
897
|
+
},
|
898
|
+
restoreRegion: {
|
899
|
+
serializedName: "restoreRegion",
|
900
|
+
required: true,
|
901
|
+
type: {
|
902
|
+
name: "String",
|
903
|
+
},
|
904
|
+
},
|
905
|
+
uri: {
|
906
|
+
serializedName: "uri",
|
907
|
+
required: true,
|
908
|
+
type: {
|
909
|
+
name: "String",
|
910
|
+
},
|
911
|
+
},
|
912
|
+
},
|
913
|
+
},
|
914
|
+
};
|
915
|
+
const ManagedCCFRestoreResponse = {
|
916
|
+
type: {
|
917
|
+
name: "Composite",
|
918
|
+
className: "ManagedCCFRestoreResponse",
|
919
|
+
modelProperties: {
|
920
|
+
message: {
|
921
|
+
serializedName: "message",
|
922
|
+
readOnly: true,
|
923
|
+
type: {
|
924
|
+
name: "String",
|
925
|
+
},
|
926
|
+
},
|
927
|
+
},
|
928
|
+
},
|
748
929
|
};
|
749
930
|
const CertificateTags = {
|
750
931
|
type: {
|
@@ -755,11 +936,11 @@ const CertificateTags = {
|
|
755
936
|
serializedName: "tags",
|
756
937
|
type: {
|
757
938
|
name: "Dictionary",
|
758
|
-
value: { type: { name: "String" } }
|
759
|
-
}
|
760
|
-
}
|
761
|
-
}
|
762
|
-
}
|
939
|
+
value: { type: { name: "String" } },
|
940
|
+
},
|
941
|
+
},
|
942
|
+
},
|
943
|
+
},
|
763
944
|
};
|
764
945
|
const TrackedResource = {
|
765
946
|
type: {
|
@@ -769,16 +950,16 @@ const TrackedResource = {
|
|
769
950
|
serializedName: "tags",
|
770
951
|
type: {
|
771
952
|
name: "Dictionary",
|
772
|
-
value: { type: { name: "String" } }
|
773
|
-
}
|
953
|
+
value: { type: { name: "String" } },
|
954
|
+
},
|
774
955
|
}, location: {
|
775
956
|
serializedName: "location",
|
776
957
|
required: true,
|
777
958
|
type: {
|
778
|
-
name: "String"
|
779
|
-
}
|
780
|
-
} })
|
781
|
-
}
|
959
|
+
name: "String",
|
960
|
+
},
|
961
|
+
} }),
|
962
|
+
},
|
782
963
|
};
|
783
964
|
const ConfidentialLedger = {
|
784
965
|
type: {
|
@@ -788,10 +969,10 @@ const ConfidentialLedger = {
|
|
788
969
|
serializedName: "properties",
|
789
970
|
type: {
|
790
971
|
name: "Composite",
|
791
|
-
className: "LedgerProperties"
|
792
|
-
}
|
793
|
-
} })
|
794
|
-
}
|
972
|
+
className: "LedgerProperties",
|
973
|
+
},
|
974
|
+
} }),
|
975
|
+
},
|
795
976
|
};
|
796
977
|
const ManagedCCF = {
|
797
978
|
type: {
|
@@ -801,36 +982,44 @@ const ManagedCCF = {
|
|
801
982
|
serializedName: "properties",
|
802
983
|
type: {
|
803
984
|
name: "Composite",
|
804
|
-
className: "ManagedCCFProperties"
|
805
|
-
}
|
806
|
-
} })
|
807
|
-
}
|
985
|
+
className: "ManagedCCFProperties",
|
986
|
+
},
|
987
|
+
} }),
|
988
|
+
},
|
808
989
|
};
|
809
990
|
|
810
991
|
var Mappers = /*#__PURE__*/Object.freeze({
|
811
992
|
__proto__: null,
|
812
|
-
ResourceProviderOperationList: ResourceProviderOperationList,
|
813
|
-
ResourceProviderOperationDefinition: ResourceProviderOperationDefinition,
|
814
|
-
ResourceProviderOperationDisplay: ResourceProviderOperationDisplay,
|
815
|
-
ErrorResponse: ErrorResponse,
|
816
|
-
ErrorDetail: ErrorDetail,
|
817
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
818
|
-
CheckNameAvailabilityRequest: CheckNameAvailabilityRequest,
|
819
|
-
CheckNameAvailabilityResponse: CheckNameAvailabilityResponse,
|
820
|
-
LedgerProperties: LedgerProperties,
|
821
993
|
AADBasedSecurityPrincipal: AADBasedSecurityPrincipal,
|
822
994
|
CertBasedSecurityPrincipal: CertBasedSecurityPrincipal,
|
823
|
-
|
824
|
-
|
995
|
+
CertificateTags: CertificateTags,
|
996
|
+
CheckNameAvailabilityRequest: CheckNameAvailabilityRequest,
|
997
|
+
CheckNameAvailabilityResponse: CheckNameAvailabilityResponse,
|
998
|
+
ConfidentialLedger: ConfidentialLedger,
|
999
|
+
ConfidentialLedgerBackup: ConfidentialLedgerBackup,
|
1000
|
+
ConfidentialLedgerBackupResponse: ConfidentialLedgerBackupResponse,
|
825
1001
|
ConfidentialLedgerList: ConfidentialLedgerList,
|
826
|
-
|
827
|
-
|
1002
|
+
ConfidentialLedgerRestore: ConfidentialLedgerRestore,
|
1003
|
+
ConfidentialLedgerRestoreResponse: ConfidentialLedgerRestoreResponse,
|
828
1004
|
DeploymentType: DeploymentType,
|
1005
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
1006
|
+
ErrorDetail: ErrorDetail,
|
1007
|
+
ErrorResponse: ErrorResponse,
|
1008
|
+
LedgerProperties: LedgerProperties,
|
1009
|
+
ManagedCCF: ManagedCCF,
|
1010
|
+
ManagedCCFBackup: ManagedCCFBackup,
|
1011
|
+
ManagedCCFBackupResponse: ManagedCCFBackupResponse,
|
829
1012
|
ManagedCCFList: ManagedCCFList,
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
1013
|
+
ManagedCCFProperties: ManagedCCFProperties,
|
1014
|
+
ManagedCCFRestore: ManagedCCFRestore,
|
1015
|
+
ManagedCCFRestoreResponse: ManagedCCFRestoreResponse,
|
1016
|
+
MemberIdentityCertificate: MemberIdentityCertificate,
|
1017
|
+
Resource: Resource,
|
1018
|
+
ResourceProviderOperationDefinition: ResourceProviderOperationDefinition,
|
1019
|
+
ResourceProviderOperationDisplay: ResourceProviderOperationDisplay,
|
1020
|
+
ResourceProviderOperationList: ResourceProviderOperationList,
|
1021
|
+
SystemData: SystemData,
|
1022
|
+
TrackedResource: TrackedResource
|
834
1023
|
});
|
835
1024
|
|
836
1025
|
/*
|
@@ -847,9 +1036,9 @@ const accept = {
|
|
847
1036
|
isConstant: true,
|
848
1037
|
serializedName: "Accept",
|
849
1038
|
type: {
|
850
|
-
name: "String"
|
851
|
-
}
|
852
|
-
}
|
1039
|
+
name: "String",
|
1040
|
+
},
|
1041
|
+
},
|
853
1042
|
};
|
854
1043
|
const $host = {
|
855
1044
|
parameterPath: "$host",
|
@@ -857,21 +1046,21 @@ const $host = {
|
|
857
1046
|
serializedName: "$host",
|
858
1047
|
required: true,
|
859
1048
|
type: {
|
860
|
-
name: "String"
|
861
|
-
}
|
1049
|
+
name: "String",
|
1050
|
+
},
|
862
1051
|
},
|
863
|
-
skipEncoding: true
|
1052
|
+
skipEncoding: true,
|
864
1053
|
};
|
865
1054
|
const apiVersion = {
|
866
1055
|
parameterPath: "apiVersion",
|
867
1056
|
mapper: {
|
868
|
-
defaultValue: "2023-
|
1057
|
+
defaultValue: "2023-06-28-preview",
|
869
1058
|
isConstant: true,
|
870
1059
|
serializedName: "api-version",
|
871
1060
|
type: {
|
872
|
-
name: "String"
|
873
|
-
}
|
874
|
-
}
|
1061
|
+
name: "String",
|
1062
|
+
},
|
1063
|
+
},
|
875
1064
|
};
|
876
1065
|
const nextLink = {
|
877
1066
|
parameterPath: "nextLink",
|
@@ -879,10 +1068,10 @@ const nextLink = {
|
|
879
1068
|
serializedName: "nextLink",
|
880
1069
|
required: true,
|
881
1070
|
type: {
|
882
|
-
name: "String"
|
883
|
-
}
|
1071
|
+
name: "String",
|
1072
|
+
},
|
884
1073
|
},
|
885
|
-
skipEncoding: true
|
1074
|
+
skipEncoding: true,
|
886
1075
|
};
|
887
1076
|
const contentType = {
|
888
1077
|
parameterPath: ["options", "contentType"],
|
@@ -891,83 +1080,99 @@ const contentType = {
|
|
891
1080
|
isConstant: true,
|
892
1081
|
serializedName: "Content-Type",
|
893
1082
|
type: {
|
894
|
-
name: "String"
|
895
|
-
}
|
896
|
-
}
|
1083
|
+
name: "String",
|
1084
|
+
},
|
1085
|
+
},
|
897
1086
|
};
|
898
1087
|
const nameAvailabilityRequest = {
|
899
1088
|
parameterPath: "nameAvailabilityRequest",
|
900
|
-
mapper: CheckNameAvailabilityRequest
|
1089
|
+
mapper: CheckNameAvailabilityRequest,
|
901
1090
|
};
|
902
1091
|
const subscriptionId = {
|
903
1092
|
parameterPath: "subscriptionId",
|
904
1093
|
mapper: {
|
905
1094
|
constraints: {
|
906
|
-
MinLength: 1
|
1095
|
+
MinLength: 1,
|
907
1096
|
},
|
908
1097
|
serializedName: "subscriptionId",
|
909
1098
|
required: true,
|
910
1099
|
type: {
|
911
|
-
name: "String"
|
912
|
-
}
|
913
|
-
}
|
1100
|
+
name: "String",
|
1101
|
+
},
|
1102
|
+
},
|
914
1103
|
};
|
915
1104
|
const resourceGroupName = {
|
916
1105
|
parameterPath: "resourceGroupName",
|
917
1106
|
mapper: {
|
918
1107
|
constraints: {
|
919
1108
|
MaxLength: 90,
|
920
|
-
MinLength: 1
|
1109
|
+
MinLength: 1,
|
921
1110
|
},
|
922
1111
|
serializedName: "resourceGroupName",
|
923
1112
|
required: true,
|
924
1113
|
type: {
|
925
|
-
name: "String"
|
926
|
-
}
|
927
|
-
}
|
1114
|
+
name: "String",
|
1115
|
+
},
|
1116
|
+
},
|
928
1117
|
};
|
929
1118
|
const ledgerName = {
|
930
1119
|
parameterPath: "ledgerName",
|
931
1120
|
mapper: {
|
932
1121
|
constraints: {
|
933
|
-
Pattern: new RegExp("^[a-zA-Z0-9]")
|
1122
|
+
Pattern: new RegExp("^[a-zA-Z0-9]"),
|
934
1123
|
},
|
935
1124
|
serializedName: "ledgerName",
|
936
1125
|
required: true,
|
937
1126
|
type: {
|
938
|
-
name: "String"
|
939
|
-
}
|
940
|
-
}
|
1127
|
+
name: "String",
|
1128
|
+
},
|
1129
|
+
},
|
941
1130
|
};
|
942
1131
|
const confidentialLedger = {
|
943
1132
|
parameterPath: "confidentialLedger",
|
944
|
-
mapper: ConfidentialLedger
|
1133
|
+
mapper: ConfidentialLedger,
|
945
1134
|
};
|
946
1135
|
const filter = {
|
947
1136
|
parameterPath: ["options", "filter"],
|
948
1137
|
mapper: {
|
949
1138
|
serializedName: "$filter",
|
950
1139
|
type: {
|
951
|
-
name: "String"
|
952
|
-
}
|
953
|
-
}
|
1140
|
+
name: "String",
|
1141
|
+
},
|
1142
|
+
},
|
1143
|
+
};
|
1144
|
+
const confidentialLedger1 = {
|
1145
|
+
parameterPath: "confidentialLedger",
|
1146
|
+
mapper: ConfidentialLedgerBackup,
|
1147
|
+
};
|
1148
|
+
const confidentialLedger2 = {
|
1149
|
+
parameterPath: "confidentialLedger",
|
1150
|
+
mapper: ConfidentialLedgerRestore,
|
954
1151
|
};
|
955
1152
|
const appName = {
|
956
1153
|
parameterPath: "appName",
|
957
1154
|
mapper: {
|
958
1155
|
constraints: {
|
959
|
-
Pattern: new RegExp("^[a-zA-Z0-9]")
|
1156
|
+
Pattern: new RegExp("^[a-zA-Z0-9]"),
|
960
1157
|
},
|
961
1158
|
serializedName: "appName",
|
962
1159
|
required: true,
|
963
1160
|
type: {
|
964
|
-
name: "String"
|
965
|
-
}
|
966
|
-
}
|
1161
|
+
name: "String",
|
1162
|
+
},
|
1163
|
+
},
|
967
1164
|
};
|
968
1165
|
const managedCCF = {
|
969
1166
|
parameterPath: "managedCCF",
|
970
|
-
mapper: ManagedCCF
|
1167
|
+
mapper: ManagedCCF,
|
1168
|
+
};
|
1169
|
+
const managedCCF1 = {
|
1170
|
+
parameterPath: "managedCCF",
|
1171
|
+
mapper: ManagedCCFBackup,
|
1172
|
+
};
|
1173
|
+
const managedCCF2 = {
|
1174
|
+
parameterPath: "managedCCF",
|
1175
|
+
mapper: ManagedCCFRestore,
|
971
1176
|
};
|
972
1177
|
|
973
1178
|
/*
|
@@ -1005,7 +1210,7 @@ class OperationsImpl {
|
|
1005
1210
|
throw new Error("maxPageSize is not supported by this operation.");
|
1006
1211
|
}
|
1007
1212
|
return this.listPagingPage(options, settings);
|
1008
|
-
}
|
1213
|
+
},
|
1009
1214
|
};
|
1010
1215
|
}
|
1011
1216
|
listPagingPage(options, settings) {
|
@@ -1030,17 +1235,19 @@ class OperationsImpl {
|
|
1030
1235
|
}
|
1031
1236
|
listPagingAll(options) {
|
1032
1237
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
1033
|
-
var e_1,
|
1238
|
+
var _a, e_1, _b, _c;
|
1034
1239
|
try {
|
1035
|
-
for (var
|
1036
|
-
|
1240
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
1241
|
+
_c = _f.value;
|
1242
|
+
_d = false;
|
1243
|
+
const page = _c;
|
1037
1244
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1038
1245
|
}
|
1039
1246
|
}
|
1040
1247
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
1041
1248
|
finally {
|
1042
1249
|
try {
|
1043
|
-
if (
|
1250
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
1044
1251
|
}
|
1045
1252
|
finally { if (e_1) throw e_1.error; }
|
1046
1253
|
}
|
@@ -1069,31 +1276,31 @@ const listOperationSpec = {
|
|
1069
1276
|
httpMethod: "GET",
|
1070
1277
|
responses: {
|
1071
1278
|
200: {
|
1072
|
-
bodyMapper: ResourceProviderOperationList
|
1279
|
+
bodyMapper: ResourceProviderOperationList,
|
1073
1280
|
},
|
1074
1281
|
default: {
|
1075
|
-
bodyMapper: ErrorResponse
|
1076
|
-
}
|
1282
|
+
bodyMapper: ErrorResponse,
|
1283
|
+
},
|
1077
1284
|
},
|
1078
1285
|
queryParameters: [apiVersion],
|
1079
1286
|
urlParameters: [$host],
|
1080
1287
|
headerParameters: [accept],
|
1081
|
-
serializer: serializer$3
|
1288
|
+
serializer: serializer$3,
|
1082
1289
|
};
|
1083
1290
|
const listNextOperationSpec = {
|
1084
1291
|
path: "{nextLink}",
|
1085
1292
|
httpMethod: "GET",
|
1086
1293
|
responses: {
|
1087
1294
|
200: {
|
1088
|
-
bodyMapper: ResourceProviderOperationList
|
1295
|
+
bodyMapper: ResourceProviderOperationList,
|
1089
1296
|
},
|
1090
1297
|
default: {
|
1091
|
-
bodyMapper: ErrorResponse
|
1092
|
-
}
|
1298
|
+
bodyMapper: ErrorResponse,
|
1299
|
+
},
|
1093
1300
|
},
|
1094
1301
|
urlParameters: [$host, nextLink],
|
1095
1302
|
headerParameters: [accept],
|
1096
|
-
serializer: serializer$3
|
1303
|
+
serializer: serializer$3,
|
1097
1304
|
};
|
1098
1305
|
|
1099
1306
|
/*
|
@@ -1112,7 +1319,7 @@ function createLroSpec(inputs) {
|
|
1112
1319
|
sendPollRequest: (path, options) => {
|
1113
1320
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
1114
1321
|
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
1115
|
-
}
|
1322
|
+
},
|
1116
1323
|
};
|
1117
1324
|
}
|
1118
1325
|
|
@@ -1152,7 +1359,7 @@ class LedgerImpl {
|
|
1152
1359
|
throw new Error("maxPageSize is not supported by this operation.");
|
1153
1360
|
}
|
1154
1361
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
1155
|
-
}
|
1362
|
+
},
|
1156
1363
|
};
|
1157
1364
|
}
|
1158
1365
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
@@ -1177,17 +1384,19 @@ class LedgerImpl {
|
|
1177
1384
|
}
|
1178
1385
|
listByResourceGroupPagingAll(resourceGroupName, options) {
|
1179
1386
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
1180
|
-
var e_1,
|
1387
|
+
var _a, e_1, _b, _c;
|
1181
1388
|
try {
|
1182
|
-
for (var
|
1183
|
-
|
1389
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
1390
|
+
_c = _f.value;
|
1391
|
+
_d = false;
|
1392
|
+
const page = _c;
|
1184
1393
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1185
1394
|
}
|
1186
1395
|
}
|
1187
1396
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
1188
1397
|
finally {
|
1189
1398
|
try {
|
1190
|
-
if (
|
1399
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
1191
1400
|
}
|
1192
1401
|
finally { if (e_1) throw e_1.error; }
|
1193
1402
|
}
|
@@ -1211,7 +1420,7 @@ class LedgerImpl {
|
|
1211
1420
|
throw new Error("maxPageSize is not supported by this operation.");
|
1212
1421
|
}
|
1213
1422
|
return this.listBySubscriptionPagingPage(options, settings);
|
1214
|
-
}
|
1423
|
+
},
|
1215
1424
|
};
|
1216
1425
|
}
|
1217
1426
|
listBySubscriptionPagingPage(options, settings) {
|
@@ -1236,17 +1445,19 @@ class LedgerImpl {
|
|
1236
1445
|
}
|
1237
1446
|
listBySubscriptionPagingAll(options) {
|
1238
1447
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
1239
|
-
var e_2,
|
1448
|
+
var _a, e_2, _b, _c;
|
1240
1449
|
try {
|
1241
|
-
for (var
|
1242
|
-
|
1450
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
1451
|
+
_c = _f.value;
|
1452
|
+
_d = false;
|
1453
|
+
const page = _c;
|
1243
1454
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1244
1455
|
}
|
1245
1456
|
}
|
1246
1457
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
1247
1458
|
finally {
|
1248
1459
|
try {
|
1249
|
-
if (
|
1460
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
1250
1461
|
}
|
1251
1462
|
finally { if (e_2) throw e_2.error; }
|
1252
1463
|
}
|
@@ -1287,18 +1498,18 @@ class LedgerImpl {
|
|
1287
1498
|
rawResponse: {
|
1288
1499
|
statusCode: currentRawResponse.status,
|
1289
1500
|
body: currentRawResponse.parsedBody,
|
1290
|
-
headers: currentRawResponse.headers.toJSON()
|
1291
|
-
}
|
1501
|
+
headers: currentRawResponse.headers.toJSON(),
|
1502
|
+
},
|
1292
1503
|
};
|
1293
1504
|
});
|
1294
1505
|
const lro = createLroSpec({
|
1295
1506
|
sendOperationFn,
|
1296
1507
|
args: { resourceGroupName, ledgerName, options },
|
1297
|
-
spec: deleteOperationSpec$1
|
1508
|
+
spec: deleteOperationSpec$1,
|
1298
1509
|
});
|
1299
1510
|
const poller = yield coreLro.createHttpPoller(lro, {
|
1300
1511
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1301
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
1512
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1302
1513
|
});
|
1303
1514
|
yield poller.poll();
|
1304
1515
|
return poller;
|
@@ -1343,19 +1554,19 @@ class LedgerImpl {
|
|
1343
1554
|
rawResponse: {
|
1344
1555
|
statusCode: currentRawResponse.status,
|
1345
1556
|
body: currentRawResponse.parsedBody,
|
1346
|
-
headers: currentRawResponse.headers.toJSON()
|
1347
|
-
}
|
1557
|
+
headers: currentRawResponse.headers.toJSON(),
|
1558
|
+
},
|
1348
1559
|
};
|
1349
1560
|
});
|
1350
1561
|
const lro = createLroSpec({
|
1351
1562
|
sendOperationFn,
|
1352
1563
|
args: { resourceGroupName, ledgerName, confidentialLedger, options },
|
1353
|
-
spec: createOperationSpec$1
|
1564
|
+
spec: createOperationSpec$1,
|
1354
1565
|
});
|
1355
1566
|
const poller = yield coreLro.createHttpPoller(lro, {
|
1356
1567
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1357
1568
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1358
|
-
resourceLocationConfig: "azure-async-operation"
|
1569
|
+
resourceLocationConfig: "azure-async-operation",
|
1359
1570
|
});
|
1360
1571
|
yield poller.poll();
|
1361
1572
|
return poller;
|
@@ -1401,18 +1612,18 @@ class LedgerImpl {
|
|
1401
1612
|
rawResponse: {
|
1402
1613
|
statusCode: currentRawResponse.status,
|
1403
1614
|
body: currentRawResponse.parsedBody,
|
1404
|
-
headers: currentRawResponse.headers.toJSON()
|
1405
|
-
}
|
1615
|
+
headers: currentRawResponse.headers.toJSON(),
|
1616
|
+
},
|
1406
1617
|
};
|
1407
1618
|
});
|
1408
1619
|
const lro = createLroSpec({
|
1409
1620
|
sendOperationFn,
|
1410
1621
|
args: { resourceGroupName, ledgerName, confidentialLedger, options },
|
1411
|
-
spec: updateOperationSpec$1
|
1622
|
+
spec: updateOperationSpec$1,
|
1412
1623
|
});
|
1413
1624
|
const poller = yield coreLro.createHttpPoller(lro, {
|
1414
1625
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1415
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
1626
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1416
1627
|
});
|
1417
1628
|
yield poller.poll();
|
1418
1629
|
return poller;
|
@@ -1440,11 +1651,125 @@ class LedgerImpl {
|
|
1440
1651
|
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
|
1441
1652
|
}
|
1442
1653
|
/**
|
1443
|
-
* Retrieves the properties of all Confidential Ledgers.
|
1654
|
+
* Retrieves the properties of all Confidential Ledgers.
|
1655
|
+
* @param options The options parameters.
|
1656
|
+
*/
|
1657
|
+
_listBySubscription(options) {
|
1658
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
|
1659
|
+
}
|
1660
|
+
/**
|
1661
|
+
* Backs up a Confidential Ledger Resource.
|
1662
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1663
|
+
* @param ledgerName Name of the Confidential Ledger
|
1664
|
+
* @param confidentialLedger Confidential Ledger Backup Request Body
|
1665
|
+
* @param options The options parameters.
|
1666
|
+
*/
|
1667
|
+
beginBackup(resourceGroupName, ledgerName, confidentialLedger, options) {
|
1668
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
1669
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1670
|
+
return this.client.sendOperationRequest(args, spec);
|
1671
|
+
});
|
1672
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1673
|
+
var _a;
|
1674
|
+
let currentRawResponse = undefined;
|
1675
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
1676
|
+
const callback = (rawResponse, flatResponse) => {
|
1677
|
+
currentRawResponse = rawResponse;
|
1678
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
1679
|
+
};
|
1680
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
1681
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
1682
|
+
return {
|
1683
|
+
flatResponse,
|
1684
|
+
rawResponse: {
|
1685
|
+
statusCode: currentRawResponse.status,
|
1686
|
+
body: currentRawResponse.parsedBody,
|
1687
|
+
headers: currentRawResponse.headers.toJSON(),
|
1688
|
+
},
|
1689
|
+
};
|
1690
|
+
});
|
1691
|
+
const lro = createLroSpec({
|
1692
|
+
sendOperationFn,
|
1693
|
+
args: { resourceGroupName, ledgerName, confidentialLedger, options },
|
1694
|
+
spec: backupOperationSpec$1,
|
1695
|
+
});
|
1696
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
1697
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1698
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1699
|
+
});
|
1700
|
+
yield poller.poll();
|
1701
|
+
return poller;
|
1702
|
+
});
|
1703
|
+
}
|
1704
|
+
/**
|
1705
|
+
* Backs up a Confidential Ledger Resource.
|
1706
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1707
|
+
* @param ledgerName Name of the Confidential Ledger
|
1708
|
+
* @param confidentialLedger Confidential Ledger Backup Request Body
|
1709
|
+
* @param options The options parameters.
|
1710
|
+
*/
|
1711
|
+
beginBackupAndWait(resourceGroupName, ledgerName, confidentialLedger, options) {
|
1712
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
1713
|
+
const poller = yield this.beginBackup(resourceGroupName, ledgerName, confidentialLedger, options);
|
1714
|
+
return poller.pollUntilDone();
|
1715
|
+
});
|
1716
|
+
}
|
1717
|
+
/**
|
1718
|
+
* Restores a Confidential Ledger Resource.
|
1719
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1720
|
+
* @param ledgerName Name of the Confidential Ledger
|
1721
|
+
* @param confidentialLedger Confidential Ledger Restore Request Body
|
1722
|
+
* @param options The options parameters.
|
1723
|
+
*/
|
1724
|
+
beginRestore(resourceGroupName, ledgerName, confidentialLedger, options) {
|
1725
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
1726
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1727
|
+
return this.client.sendOperationRequest(args, spec);
|
1728
|
+
});
|
1729
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1730
|
+
var _a;
|
1731
|
+
let currentRawResponse = undefined;
|
1732
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
1733
|
+
const callback = (rawResponse, flatResponse) => {
|
1734
|
+
currentRawResponse = rawResponse;
|
1735
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
1736
|
+
};
|
1737
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
1738
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
1739
|
+
return {
|
1740
|
+
flatResponse,
|
1741
|
+
rawResponse: {
|
1742
|
+
statusCode: currentRawResponse.status,
|
1743
|
+
body: currentRawResponse.parsedBody,
|
1744
|
+
headers: currentRawResponse.headers.toJSON(),
|
1745
|
+
},
|
1746
|
+
};
|
1747
|
+
});
|
1748
|
+
const lro = createLroSpec({
|
1749
|
+
sendOperationFn,
|
1750
|
+
args: { resourceGroupName, ledgerName, confidentialLedger, options },
|
1751
|
+
spec: restoreOperationSpec$1,
|
1752
|
+
});
|
1753
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
1754
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1755
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1756
|
+
});
|
1757
|
+
yield poller.poll();
|
1758
|
+
return poller;
|
1759
|
+
});
|
1760
|
+
}
|
1761
|
+
/**
|
1762
|
+
* Restores a Confidential Ledger Resource.
|
1763
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1764
|
+
* @param ledgerName Name of the Confidential Ledger
|
1765
|
+
* @param confidentialLedger Confidential Ledger Restore Request Body
|
1444
1766
|
* @param options The options parameters.
|
1445
1767
|
*/
|
1446
|
-
|
1447
|
-
return
|
1768
|
+
beginRestoreAndWait(resourceGroupName, ledgerName, confidentialLedger, options) {
|
1769
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
1770
|
+
const poller = yield this.beginRestore(resourceGroupName, ledgerName, confidentialLedger, options);
|
1771
|
+
return poller.pollUntilDone();
|
1772
|
+
});
|
1448
1773
|
}
|
1449
1774
|
/**
|
1450
1775
|
* ListByResourceGroupNext
|
@@ -1471,21 +1796,21 @@ const getOperationSpec$1 = {
|
|
1471
1796
|
httpMethod: "GET",
|
1472
1797
|
responses: {
|
1473
1798
|
200: {
|
1474
|
-
bodyMapper: ConfidentialLedger
|
1799
|
+
bodyMapper: ConfidentialLedger,
|
1475
1800
|
},
|
1476
1801
|
default: {
|
1477
|
-
bodyMapper: ErrorResponse
|
1478
|
-
}
|
1802
|
+
bodyMapper: ErrorResponse,
|
1803
|
+
},
|
1479
1804
|
},
|
1480
1805
|
queryParameters: [apiVersion],
|
1481
1806
|
urlParameters: [
|
1482
1807
|
$host,
|
1483
1808
|
subscriptionId,
|
1484
1809
|
resourceGroupName,
|
1485
|
-
ledgerName
|
1810
|
+
ledgerName,
|
1486
1811
|
],
|
1487
1812
|
headerParameters: [accept],
|
1488
|
-
serializer: serializer$2
|
1813
|
+
serializer: serializer$2,
|
1489
1814
|
};
|
1490
1815
|
const deleteOperationSpec$1 = {
|
1491
1816
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
|
@@ -1496,38 +1821,38 @@ const deleteOperationSpec$1 = {
|
|
1496
1821
|
202: {},
|
1497
1822
|
204: {},
|
1498
1823
|
default: {
|
1499
|
-
bodyMapper: ErrorResponse
|
1500
|
-
}
|
1824
|
+
bodyMapper: ErrorResponse,
|
1825
|
+
},
|
1501
1826
|
},
|
1502
1827
|
queryParameters: [apiVersion],
|
1503
1828
|
urlParameters: [
|
1504
1829
|
$host,
|
1505
1830
|
subscriptionId,
|
1506
1831
|
resourceGroupName,
|
1507
|
-
ledgerName
|
1832
|
+
ledgerName,
|
1508
1833
|
],
|
1509
1834
|
headerParameters: [accept],
|
1510
|
-
serializer: serializer$2
|
1835
|
+
serializer: serializer$2,
|
1511
1836
|
};
|
1512
1837
|
const createOperationSpec$1 = {
|
1513
1838
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
|
1514
1839
|
httpMethod: "PUT",
|
1515
1840
|
responses: {
|
1516
1841
|
200: {
|
1517
|
-
bodyMapper: ConfidentialLedger
|
1842
|
+
bodyMapper: ConfidentialLedger,
|
1518
1843
|
},
|
1519
1844
|
201: {
|
1520
|
-
bodyMapper: ConfidentialLedger
|
1845
|
+
bodyMapper: ConfidentialLedger,
|
1521
1846
|
},
|
1522
1847
|
202: {
|
1523
|
-
bodyMapper: ConfidentialLedger
|
1848
|
+
bodyMapper: ConfidentialLedger,
|
1524
1849
|
},
|
1525
1850
|
204: {
|
1526
|
-
bodyMapper: ConfidentialLedger
|
1851
|
+
bodyMapper: ConfidentialLedger,
|
1527
1852
|
},
|
1528
1853
|
default: {
|
1529
|
-
bodyMapper: ErrorResponse
|
1530
|
-
}
|
1854
|
+
bodyMapper: ErrorResponse,
|
1855
|
+
},
|
1531
1856
|
},
|
1532
1857
|
requestBody: confidentialLedger,
|
1533
1858
|
queryParameters: [apiVersion],
|
@@ -1535,31 +1860,31 @@ const createOperationSpec$1 = {
|
|
1535
1860
|
$host,
|
1536
1861
|
subscriptionId,
|
1537
1862
|
resourceGroupName,
|
1538
|
-
ledgerName
|
1863
|
+
ledgerName,
|
1539
1864
|
],
|
1540
1865
|
headerParameters: [accept, contentType],
|
1541
1866
|
mediaType: "json",
|
1542
|
-
serializer: serializer$2
|
1867
|
+
serializer: serializer$2,
|
1543
1868
|
};
|
1544
1869
|
const updateOperationSpec$1 = {
|
1545
1870
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
|
1546
1871
|
httpMethod: "PATCH",
|
1547
1872
|
responses: {
|
1548
1873
|
200: {
|
1549
|
-
bodyMapper: ConfidentialLedger
|
1874
|
+
bodyMapper: ConfidentialLedger,
|
1550
1875
|
},
|
1551
1876
|
201: {
|
1552
|
-
bodyMapper: ConfidentialLedger
|
1877
|
+
bodyMapper: ConfidentialLedger,
|
1553
1878
|
},
|
1554
1879
|
202: {
|
1555
|
-
bodyMapper: ConfidentialLedger
|
1880
|
+
bodyMapper: ConfidentialLedger,
|
1556
1881
|
},
|
1557
1882
|
204: {
|
1558
|
-
bodyMapper: ConfidentialLedger
|
1883
|
+
bodyMapper: ConfidentialLedger,
|
1559
1884
|
},
|
1560
1885
|
default: {
|
1561
|
-
bodyMapper: ErrorResponse
|
1562
|
-
}
|
1886
|
+
bodyMapper: ErrorResponse,
|
1887
|
+
},
|
1563
1888
|
},
|
1564
1889
|
requestBody: confidentialLedger,
|
1565
1890
|
queryParameters: [apiVersion],
|
@@ -1567,86 +1892,150 @@ const updateOperationSpec$1 = {
|
|
1567
1892
|
$host,
|
1568
1893
|
subscriptionId,
|
1569
1894
|
resourceGroupName,
|
1570
|
-
ledgerName
|
1895
|
+
ledgerName,
|
1571
1896
|
],
|
1572
1897
|
headerParameters: [accept, contentType],
|
1573
1898
|
mediaType: "json",
|
1574
|
-
serializer: serializer$2
|
1899
|
+
serializer: serializer$2,
|
1575
1900
|
};
|
1576
1901
|
const listByResourceGroupOperationSpec$1 = {
|
1577
1902
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers",
|
1578
1903
|
httpMethod: "GET",
|
1579
1904
|
responses: {
|
1580
1905
|
200: {
|
1581
|
-
bodyMapper: ConfidentialLedgerList
|
1906
|
+
bodyMapper: ConfidentialLedgerList,
|
1582
1907
|
},
|
1583
1908
|
default: {
|
1584
|
-
bodyMapper: ErrorResponse
|
1585
|
-
}
|
1909
|
+
bodyMapper: ErrorResponse,
|
1910
|
+
},
|
1586
1911
|
},
|
1587
1912
|
queryParameters: [apiVersion, filter],
|
1588
1913
|
urlParameters: [
|
1589
1914
|
$host,
|
1590
1915
|
subscriptionId,
|
1591
|
-
resourceGroupName
|
1916
|
+
resourceGroupName,
|
1592
1917
|
],
|
1593
1918
|
headerParameters: [accept],
|
1594
|
-
serializer: serializer$2
|
1919
|
+
serializer: serializer$2,
|
1595
1920
|
};
|
1596
1921
|
const listBySubscriptionOperationSpec$1 = {
|
1597
1922
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/ledgers/",
|
1598
1923
|
httpMethod: "GET",
|
1599
1924
|
responses: {
|
1600
1925
|
200: {
|
1601
|
-
bodyMapper: ConfidentialLedgerList
|
1926
|
+
bodyMapper: ConfidentialLedgerList,
|
1602
1927
|
},
|
1603
1928
|
default: {
|
1604
|
-
bodyMapper: ErrorResponse
|
1605
|
-
}
|
1929
|
+
bodyMapper: ErrorResponse,
|
1930
|
+
},
|
1606
1931
|
},
|
1607
1932
|
queryParameters: [apiVersion, filter],
|
1608
1933
|
urlParameters: [$host, subscriptionId],
|
1609
1934
|
headerParameters: [accept],
|
1610
|
-
serializer: serializer$2
|
1935
|
+
serializer: serializer$2,
|
1936
|
+
};
|
1937
|
+
const backupOperationSpec$1 = {
|
1938
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}/backup",
|
1939
|
+
httpMethod: "POST",
|
1940
|
+
responses: {
|
1941
|
+
200: {
|
1942
|
+
bodyMapper: ConfidentialLedgerBackupResponse,
|
1943
|
+
},
|
1944
|
+
201: {
|
1945
|
+
bodyMapper: ConfidentialLedgerBackupResponse,
|
1946
|
+
},
|
1947
|
+
202: {
|
1948
|
+
bodyMapper: ConfidentialLedgerBackupResponse,
|
1949
|
+
},
|
1950
|
+
204: {
|
1951
|
+
bodyMapper: ConfidentialLedgerBackupResponse,
|
1952
|
+
},
|
1953
|
+
default: {
|
1954
|
+
bodyMapper: ErrorResponse,
|
1955
|
+
},
|
1956
|
+
},
|
1957
|
+
requestBody: confidentialLedger1,
|
1958
|
+
queryParameters: [apiVersion],
|
1959
|
+
urlParameters: [
|
1960
|
+
$host,
|
1961
|
+
subscriptionId,
|
1962
|
+
resourceGroupName,
|
1963
|
+
ledgerName,
|
1964
|
+
],
|
1965
|
+
headerParameters: [accept, contentType],
|
1966
|
+
mediaType: "json",
|
1967
|
+
serializer: serializer$2,
|
1968
|
+
};
|
1969
|
+
const restoreOperationSpec$1 = {
|
1970
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}/restore",
|
1971
|
+
httpMethod: "POST",
|
1972
|
+
responses: {
|
1973
|
+
200: {
|
1974
|
+
bodyMapper: ConfidentialLedgerRestoreResponse,
|
1975
|
+
},
|
1976
|
+
201: {
|
1977
|
+
bodyMapper: ConfidentialLedgerRestoreResponse,
|
1978
|
+
},
|
1979
|
+
202: {
|
1980
|
+
bodyMapper: ConfidentialLedgerRestoreResponse,
|
1981
|
+
},
|
1982
|
+
204: {
|
1983
|
+
bodyMapper: ConfidentialLedgerRestoreResponse,
|
1984
|
+
},
|
1985
|
+
default: {
|
1986
|
+
bodyMapper: ErrorResponse,
|
1987
|
+
},
|
1988
|
+
},
|
1989
|
+
requestBody: confidentialLedger2,
|
1990
|
+
queryParameters: [apiVersion],
|
1991
|
+
urlParameters: [
|
1992
|
+
$host,
|
1993
|
+
subscriptionId,
|
1994
|
+
resourceGroupName,
|
1995
|
+
ledgerName,
|
1996
|
+
],
|
1997
|
+
headerParameters: [accept, contentType],
|
1998
|
+
mediaType: "json",
|
1999
|
+
serializer: serializer$2,
|
1611
2000
|
};
|
1612
2001
|
const listByResourceGroupNextOperationSpec$1 = {
|
1613
2002
|
path: "{nextLink}",
|
1614
2003
|
httpMethod: "GET",
|
1615
2004
|
responses: {
|
1616
2005
|
200: {
|
1617
|
-
bodyMapper: ConfidentialLedgerList
|
2006
|
+
bodyMapper: ConfidentialLedgerList,
|
1618
2007
|
},
|
1619
2008
|
default: {
|
1620
|
-
bodyMapper: ErrorResponse
|
1621
|
-
}
|
2009
|
+
bodyMapper: ErrorResponse,
|
2010
|
+
},
|
1622
2011
|
},
|
1623
2012
|
urlParameters: [
|
1624
2013
|
$host,
|
1625
2014
|
nextLink,
|
1626
2015
|
subscriptionId,
|
1627
|
-
resourceGroupName
|
2016
|
+
resourceGroupName,
|
1628
2017
|
],
|
1629
2018
|
headerParameters: [accept],
|
1630
|
-
serializer: serializer$2
|
2019
|
+
serializer: serializer$2,
|
1631
2020
|
};
|
1632
2021
|
const listBySubscriptionNextOperationSpec$1 = {
|
1633
2022
|
path: "{nextLink}",
|
1634
2023
|
httpMethod: "GET",
|
1635
2024
|
responses: {
|
1636
2025
|
200: {
|
1637
|
-
bodyMapper: ConfidentialLedgerList
|
2026
|
+
bodyMapper: ConfidentialLedgerList,
|
1638
2027
|
},
|
1639
2028
|
default: {
|
1640
|
-
bodyMapper: ErrorResponse
|
1641
|
-
}
|
2029
|
+
bodyMapper: ErrorResponse,
|
2030
|
+
},
|
1642
2031
|
},
|
1643
2032
|
urlParameters: [
|
1644
2033
|
$host,
|
1645
2034
|
nextLink,
|
1646
|
-
subscriptionId
|
2035
|
+
subscriptionId,
|
1647
2036
|
],
|
1648
2037
|
headerParameters: [accept],
|
1649
|
-
serializer: serializer$2
|
2038
|
+
serializer: serializer$2,
|
1650
2039
|
};
|
1651
2040
|
|
1652
2041
|
/*
|
@@ -1685,7 +2074,7 @@ class ManagedCCFOperationsImpl {
|
|
1685
2074
|
throw new Error("maxPageSize is not supported by this operation.");
|
1686
2075
|
}
|
1687
2076
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
1688
|
-
}
|
2077
|
+
},
|
1689
2078
|
};
|
1690
2079
|
}
|
1691
2080
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
@@ -1710,17 +2099,19 @@ class ManagedCCFOperationsImpl {
|
|
1710
2099
|
}
|
1711
2100
|
listByResourceGroupPagingAll(resourceGroupName, options) {
|
1712
2101
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
1713
|
-
var e_1,
|
2102
|
+
var _a, e_1, _b, _c;
|
1714
2103
|
try {
|
1715
|
-
for (var
|
1716
|
-
|
2104
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2105
|
+
_c = _f.value;
|
2106
|
+
_d = false;
|
2107
|
+
const page = _c;
|
1717
2108
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1718
2109
|
}
|
1719
2110
|
}
|
1720
2111
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
1721
2112
|
finally {
|
1722
2113
|
try {
|
1723
|
-
if (
|
2114
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
1724
2115
|
}
|
1725
2116
|
finally { if (e_1) throw e_1.error; }
|
1726
2117
|
}
|
@@ -1744,7 +2135,7 @@ class ManagedCCFOperationsImpl {
|
|
1744
2135
|
throw new Error("maxPageSize is not supported by this operation.");
|
1745
2136
|
}
|
1746
2137
|
return this.listBySubscriptionPagingPage(options, settings);
|
1747
|
-
}
|
2138
|
+
},
|
1748
2139
|
};
|
1749
2140
|
}
|
1750
2141
|
listBySubscriptionPagingPage(options, settings) {
|
@@ -1769,17 +2160,19 @@ class ManagedCCFOperationsImpl {
|
|
1769
2160
|
}
|
1770
2161
|
listBySubscriptionPagingAll(options) {
|
1771
2162
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
1772
|
-
var e_2,
|
2163
|
+
var _a, e_2, _b, _c;
|
1773
2164
|
try {
|
1774
|
-
for (var
|
1775
|
-
|
2165
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
2166
|
+
_c = _f.value;
|
2167
|
+
_d = false;
|
2168
|
+
const page = _c;
|
1776
2169
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1777
2170
|
}
|
1778
2171
|
}
|
1779
2172
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
1780
2173
|
finally {
|
1781
2174
|
try {
|
1782
|
-
if (
|
2175
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
1783
2176
|
}
|
1784
2177
|
finally { if (e_2) throw e_2.error; }
|
1785
2178
|
}
|
@@ -1820,18 +2213,18 @@ class ManagedCCFOperationsImpl {
|
|
1820
2213
|
rawResponse: {
|
1821
2214
|
statusCode: currentRawResponse.status,
|
1822
2215
|
body: currentRawResponse.parsedBody,
|
1823
|
-
headers: currentRawResponse.headers.toJSON()
|
1824
|
-
}
|
2216
|
+
headers: currentRawResponse.headers.toJSON(),
|
2217
|
+
},
|
1825
2218
|
};
|
1826
2219
|
});
|
1827
2220
|
const lro = createLroSpec({
|
1828
2221
|
sendOperationFn,
|
1829
2222
|
args: { resourceGroupName, appName, options },
|
1830
|
-
spec: deleteOperationSpec
|
2223
|
+
spec: deleteOperationSpec,
|
1831
2224
|
});
|
1832
2225
|
const poller = yield coreLro.createHttpPoller(lro, {
|
1833
2226
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1834
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
2227
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1835
2228
|
});
|
1836
2229
|
yield poller.poll();
|
1837
2230
|
return poller;
|
@@ -1876,19 +2269,19 @@ class ManagedCCFOperationsImpl {
|
|
1876
2269
|
rawResponse: {
|
1877
2270
|
statusCode: currentRawResponse.status,
|
1878
2271
|
body: currentRawResponse.parsedBody,
|
1879
|
-
headers: currentRawResponse.headers.toJSON()
|
1880
|
-
}
|
2272
|
+
headers: currentRawResponse.headers.toJSON(),
|
2273
|
+
},
|
1881
2274
|
};
|
1882
2275
|
});
|
1883
2276
|
const lro = createLroSpec({
|
1884
2277
|
sendOperationFn,
|
1885
2278
|
args: { resourceGroupName, appName, managedCCF, options },
|
1886
|
-
spec: createOperationSpec
|
2279
|
+
spec: createOperationSpec,
|
1887
2280
|
});
|
1888
2281
|
const poller = yield coreLro.createHttpPoller(lro, {
|
1889
2282
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1890
2283
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1891
|
-
resourceLocationConfig: "azure-async-operation"
|
2284
|
+
resourceLocationConfig: "azure-async-operation",
|
1892
2285
|
});
|
1893
2286
|
yield poller.poll();
|
1894
2287
|
return poller;
|
@@ -1934,18 +2327,18 @@ class ManagedCCFOperationsImpl {
|
|
1934
2327
|
rawResponse: {
|
1935
2328
|
statusCode: currentRawResponse.status,
|
1936
2329
|
body: currentRawResponse.parsedBody,
|
1937
|
-
headers: currentRawResponse.headers.toJSON()
|
1938
|
-
}
|
2330
|
+
headers: currentRawResponse.headers.toJSON(),
|
2331
|
+
},
|
1939
2332
|
};
|
1940
2333
|
});
|
1941
2334
|
const lro = createLroSpec({
|
1942
2335
|
sendOperationFn,
|
1943
2336
|
args: { resourceGroupName, appName, managedCCF, options },
|
1944
|
-
spec: updateOperationSpec
|
2337
|
+
spec: updateOperationSpec,
|
1945
2338
|
});
|
1946
2339
|
const poller = yield coreLro.createHttpPoller(lro, {
|
1947
2340
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1948
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
2341
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1949
2342
|
});
|
1950
2343
|
yield poller.poll();
|
1951
2344
|
return poller;
|
@@ -1979,6 +2372,120 @@ class ManagedCCFOperationsImpl {
|
|
1979
2372
|
_listBySubscription(options) {
|
1980
2373
|
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
1981
2374
|
}
|
2375
|
+
/**
|
2376
|
+
* Backs up a Managed CCF Resource.
|
2377
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2378
|
+
* @param appName Name of the Managed CCF
|
2379
|
+
* @param managedCCF Managed CCF Backup Request Body
|
2380
|
+
* @param options The options parameters.
|
2381
|
+
*/
|
2382
|
+
beginBackup(resourceGroupName, appName, managedCCF, options) {
|
2383
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
2384
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
2385
|
+
return this.client.sendOperationRequest(args, spec);
|
2386
|
+
});
|
2387
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
2388
|
+
var _a;
|
2389
|
+
let currentRawResponse = undefined;
|
2390
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
2391
|
+
const callback = (rawResponse, flatResponse) => {
|
2392
|
+
currentRawResponse = rawResponse;
|
2393
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
2394
|
+
};
|
2395
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
2396
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
2397
|
+
return {
|
2398
|
+
flatResponse,
|
2399
|
+
rawResponse: {
|
2400
|
+
statusCode: currentRawResponse.status,
|
2401
|
+
body: currentRawResponse.parsedBody,
|
2402
|
+
headers: currentRawResponse.headers.toJSON(),
|
2403
|
+
},
|
2404
|
+
};
|
2405
|
+
});
|
2406
|
+
const lro = createLroSpec({
|
2407
|
+
sendOperationFn,
|
2408
|
+
args: { resourceGroupName, appName, managedCCF, options },
|
2409
|
+
spec: backupOperationSpec,
|
2410
|
+
});
|
2411
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
2412
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
2413
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
2414
|
+
});
|
2415
|
+
yield poller.poll();
|
2416
|
+
return poller;
|
2417
|
+
});
|
2418
|
+
}
|
2419
|
+
/**
|
2420
|
+
* Backs up a Managed CCF Resource.
|
2421
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2422
|
+
* @param appName Name of the Managed CCF
|
2423
|
+
* @param managedCCF Managed CCF Backup Request Body
|
2424
|
+
* @param options The options parameters.
|
2425
|
+
*/
|
2426
|
+
beginBackupAndWait(resourceGroupName, appName, managedCCF, options) {
|
2427
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
2428
|
+
const poller = yield this.beginBackup(resourceGroupName, appName, managedCCF, options);
|
2429
|
+
return poller.pollUntilDone();
|
2430
|
+
});
|
2431
|
+
}
|
2432
|
+
/**
|
2433
|
+
* Restores a Managed CCF Resource.
|
2434
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2435
|
+
* @param appName Name of the Managed CCF
|
2436
|
+
* @param managedCCF Managed CCF Restore Request Body
|
2437
|
+
* @param options The options parameters.
|
2438
|
+
*/
|
2439
|
+
beginRestore(resourceGroupName, appName, managedCCF, options) {
|
2440
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
2441
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
2442
|
+
return this.client.sendOperationRequest(args, spec);
|
2443
|
+
});
|
2444
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
2445
|
+
var _a;
|
2446
|
+
let currentRawResponse = undefined;
|
2447
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
2448
|
+
const callback = (rawResponse, flatResponse) => {
|
2449
|
+
currentRawResponse = rawResponse;
|
2450
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
2451
|
+
};
|
2452
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
2453
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
2454
|
+
return {
|
2455
|
+
flatResponse,
|
2456
|
+
rawResponse: {
|
2457
|
+
statusCode: currentRawResponse.status,
|
2458
|
+
body: currentRawResponse.parsedBody,
|
2459
|
+
headers: currentRawResponse.headers.toJSON(),
|
2460
|
+
},
|
2461
|
+
};
|
2462
|
+
});
|
2463
|
+
const lro = createLroSpec({
|
2464
|
+
sendOperationFn,
|
2465
|
+
args: { resourceGroupName, appName, managedCCF, options },
|
2466
|
+
spec: restoreOperationSpec,
|
2467
|
+
});
|
2468
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
2469
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
2470
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
2471
|
+
});
|
2472
|
+
yield poller.poll();
|
2473
|
+
return poller;
|
2474
|
+
});
|
2475
|
+
}
|
2476
|
+
/**
|
2477
|
+
* Restores a Managed CCF Resource.
|
2478
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2479
|
+
* @param appName Name of the Managed CCF
|
2480
|
+
* @param managedCCF Managed CCF Restore Request Body
|
2481
|
+
* @param options The options parameters.
|
2482
|
+
*/
|
2483
|
+
beginRestoreAndWait(resourceGroupName, appName, managedCCF, options) {
|
2484
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
2485
|
+
const poller = yield this.beginRestore(resourceGroupName, appName, managedCCF, options);
|
2486
|
+
return poller.pollUntilDone();
|
2487
|
+
});
|
2488
|
+
}
|
1982
2489
|
/**
|
1983
2490
|
* ListByResourceGroupNext
|
1984
2491
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
@@ -2004,21 +2511,21 @@ const getOperationSpec = {
|
|
2004
2511
|
httpMethod: "GET",
|
2005
2512
|
responses: {
|
2006
2513
|
200: {
|
2007
|
-
bodyMapper: ManagedCCF
|
2514
|
+
bodyMapper: ManagedCCF,
|
2008
2515
|
},
|
2009
2516
|
default: {
|
2010
|
-
bodyMapper: ErrorResponse
|
2011
|
-
}
|
2517
|
+
bodyMapper: ErrorResponse,
|
2518
|
+
},
|
2012
2519
|
},
|
2013
2520
|
queryParameters: [apiVersion],
|
2014
2521
|
urlParameters: [
|
2015
2522
|
$host,
|
2016
2523
|
subscriptionId,
|
2017
2524
|
resourceGroupName,
|
2018
|
-
appName
|
2525
|
+
appName,
|
2019
2526
|
],
|
2020
2527
|
headerParameters: [accept],
|
2021
|
-
serializer: serializer$1
|
2528
|
+
serializer: serializer$1,
|
2022
2529
|
};
|
2023
2530
|
const deleteOperationSpec = {
|
2024
2531
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
@@ -2029,38 +2536,38 @@ const deleteOperationSpec = {
|
|
2029
2536
|
202: {},
|
2030
2537
|
204: {},
|
2031
2538
|
default: {
|
2032
|
-
bodyMapper: ErrorResponse
|
2033
|
-
}
|
2539
|
+
bodyMapper: ErrorResponse,
|
2540
|
+
},
|
2034
2541
|
},
|
2035
2542
|
queryParameters: [apiVersion],
|
2036
2543
|
urlParameters: [
|
2037
2544
|
$host,
|
2038
2545
|
subscriptionId,
|
2039
2546
|
resourceGroupName,
|
2040
|
-
appName
|
2547
|
+
appName,
|
2041
2548
|
],
|
2042
2549
|
headerParameters: [accept],
|
2043
|
-
serializer: serializer$1
|
2550
|
+
serializer: serializer$1,
|
2044
2551
|
};
|
2045
2552
|
const createOperationSpec = {
|
2046
2553
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
2047
2554
|
httpMethod: "PUT",
|
2048
2555
|
responses: {
|
2049
2556
|
200: {
|
2050
|
-
bodyMapper: ManagedCCF
|
2557
|
+
bodyMapper: ManagedCCF,
|
2051
2558
|
},
|
2052
2559
|
201: {
|
2053
|
-
bodyMapper: ManagedCCF
|
2560
|
+
bodyMapper: ManagedCCF,
|
2054
2561
|
},
|
2055
2562
|
202: {
|
2056
|
-
bodyMapper: ManagedCCF
|
2563
|
+
bodyMapper: ManagedCCF,
|
2057
2564
|
},
|
2058
2565
|
204: {
|
2059
|
-
bodyMapper: ManagedCCF
|
2566
|
+
bodyMapper: ManagedCCF,
|
2060
2567
|
},
|
2061
2568
|
default: {
|
2062
|
-
bodyMapper: ErrorResponse
|
2063
|
-
}
|
2569
|
+
bodyMapper: ErrorResponse,
|
2570
|
+
},
|
2064
2571
|
},
|
2065
2572
|
requestBody: managedCCF,
|
2066
2573
|
queryParameters: [apiVersion],
|
@@ -2068,23 +2575,31 @@ const createOperationSpec = {
|
|
2068
2575
|
$host,
|
2069
2576
|
subscriptionId,
|
2070
2577
|
resourceGroupName,
|
2071
|
-
appName
|
2578
|
+
appName,
|
2072
2579
|
],
|
2073
2580
|
headerParameters: [accept, contentType],
|
2074
2581
|
mediaType: "json",
|
2075
|
-
serializer: serializer$1
|
2582
|
+
serializer: serializer$1,
|
2076
2583
|
};
|
2077
2584
|
const updateOperationSpec = {
|
2078
2585
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
2079
2586
|
httpMethod: "PATCH",
|
2080
2587
|
responses: {
|
2081
|
-
200: {
|
2082
|
-
|
2083
|
-
|
2084
|
-
|
2588
|
+
200: {
|
2589
|
+
bodyMapper: ManagedCCF,
|
2590
|
+
},
|
2591
|
+
201: {
|
2592
|
+
bodyMapper: ManagedCCF,
|
2593
|
+
},
|
2594
|
+
202: {
|
2595
|
+
bodyMapper: ManagedCCF,
|
2596
|
+
},
|
2597
|
+
204: {
|
2598
|
+
bodyMapper: ManagedCCF,
|
2599
|
+
},
|
2085
2600
|
default: {
|
2086
|
-
bodyMapper: ErrorResponse
|
2087
|
-
}
|
2601
|
+
bodyMapper: ErrorResponse,
|
2602
|
+
},
|
2088
2603
|
},
|
2089
2604
|
requestBody: managedCCF,
|
2090
2605
|
queryParameters: [apiVersion],
|
@@ -2092,86 +2607,150 @@ const updateOperationSpec = {
|
|
2092
2607
|
$host,
|
2093
2608
|
subscriptionId,
|
2094
2609
|
resourceGroupName,
|
2095
|
-
appName
|
2610
|
+
appName,
|
2096
2611
|
],
|
2097
2612
|
headerParameters: [accept, contentType],
|
2098
2613
|
mediaType: "json",
|
2099
|
-
serializer: serializer$1
|
2614
|
+
serializer: serializer$1,
|
2100
2615
|
};
|
2101
2616
|
const listByResourceGroupOperationSpec = {
|
2102
2617
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs",
|
2103
2618
|
httpMethod: "GET",
|
2104
2619
|
responses: {
|
2105
2620
|
200: {
|
2106
|
-
bodyMapper: ManagedCCFList
|
2621
|
+
bodyMapper: ManagedCCFList,
|
2107
2622
|
},
|
2108
2623
|
default: {
|
2109
|
-
bodyMapper: ErrorResponse
|
2110
|
-
}
|
2624
|
+
bodyMapper: ErrorResponse,
|
2625
|
+
},
|
2111
2626
|
},
|
2112
2627
|
queryParameters: [apiVersion, filter],
|
2113
2628
|
urlParameters: [
|
2114
2629
|
$host,
|
2115
2630
|
subscriptionId,
|
2116
|
-
resourceGroupName
|
2631
|
+
resourceGroupName,
|
2117
2632
|
],
|
2118
2633
|
headerParameters: [accept],
|
2119
|
-
serializer: serializer$1
|
2634
|
+
serializer: serializer$1,
|
2120
2635
|
};
|
2121
2636
|
const listBySubscriptionOperationSpec = {
|
2122
2637
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/managedCCFs/",
|
2123
2638
|
httpMethod: "GET",
|
2124
2639
|
responses: {
|
2125
2640
|
200: {
|
2126
|
-
bodyMapper: ManagedCCFList
|
2641
|
+
bodyMapper: ManagedCCFList,
|
2127
2642
|
},
|
2128
2643
|
default: {
|
2129
|
-
bodyMapper: ErrorResponse
|
2130
|
-
}
|
2644
|
+
bodyMapper: ErrorResponse,
|
2645
|
+
},
|
2131
2646
|
},
|
2132
2647
|
queryParameters: [apiVersion, filter],
|
2133
2648
|
urlParameters: [$host, subscriptionId],
|
2134
2649
|
headerParameters: [accept],
|
2135
|
-
serializer: serializer$1
|
2650
|
+
serializer: serializer$1,
|
2651
|
+
};
|
2652
|
+
const backupOperationSpec = {
|
2653
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}/backup",
|
2654
|
+
httpMethod: "POST",
|
2655
|
+
responses: {
|
2656
|
+
200: {
|
2657
|
+
bodyMapper: ManagedCCFBackupResponse,
|
2658
|
+
},
|
2659
|
+
201: {
|
2660
|
+
bodyMapper: ManagedCCFBackupResponse,
|
2661
|
+
},
|
2662
|
+
202: {
|
2663
|
+
bodyMapper: ManagedCCFBackupResponse,
|
2664
|
+
},
|
2665
|
+
204: {
|
2666
|
+
bodyMapper: ManagedCCFBackupResponse,
|
2667
|
+
},
|
2668
|
+
default: {
|
2669
|
+
bodyMapper: ErrorResponse,
|
2670
|
+
},
|
2671
|
+
},
|
2672
|
+
requestBody: managedCCF1,
|
2673
|
+
queryParameters: [apiVersion],
|
2674
|
+
urlParameters: [
|
2675
|
+
$host,
|
2676
|
+
subscriptionId,
|
2677
|
+
resourceGroupName,
|
2678
|
+
appName,
|
2679
|
+
],
|
2680
|
+
headerParameters: [accept, contentType],
|
2681
|
+
mediaType: "json",
|
2682
|
+
serializer: serializer$1,
|
2683
|
+
};
|
2684
|
+
const restoreOperationSpec = {
|
2685
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}/restore",
|
2686
|
+
httpMethod: "POST",
|
2687
|
+
responses: {
|
2688
|
+
200: {
|
2689
|
+
bodyMapper: ManagedCCFRestoreResponse,
|
2690
|
+
},
|
2691
|
+
201: {
|
2692
|
+
bodyMapper: ManagedCCFRestoreResponse,
|
2693
|
+
},
|
2694
|
+
202: {
|
2695
|
+
bodyMapper: ManagedCCFRestoreResponse,
|
2696
|
+
},
|
2697
|
+
204: {
|
2698
|
+
bodyMapper: ManagedCCFRestoreResponse,
|
2699
|
+
},
|
2700
|
+
default: {
|
2701
|
+
bodyMapper: ErrorResponse,
|
2702
|
+
},
|
2703
|
+
},
|
2704
|
+
requestBody: managedCCF2,
|
2705
|
+
queryParameters: [apiVersion],
|
2706
|
+
urlParameters: [
|
2707
|
+
$host,
|
2708
|
+
subscriptionId,
|
2709
|
+
resourceGroupName,
|
2710
|
+
appName,
|
2711
|
+
],
|
2712
|
+
headerParameters: [accept, contentType],
|
2713
|
+
mediaType: "json",
|
2714
|
+
serializer: serializer$1,
|
2136
2715
|
};
|
2137
2716
|
const listByResourceGroupNextOperationSpec = {
|
2138
2717
|
path: "{nextLink}",
|
2139
2718
|
httpMethod: "GET",
|
2140
2719
|
responses: {
|
2141
2720
|
200: {
|
2142
|
-
bodyMapper: ManagedCCFList
|
2721
|
+
bodyMapper: ManagedCCFList,
|
2143
2722
|
},
|
2144
2723
|
default: {
|
2145
|
-
bodyMapper: ErrorResponse
|
2146
|
-
}
|
2724
|
+
bodyMapper: ErrorResponse,
|
2725
|
+
},
|
2147
2726
|
},
|
2148
2727
|
urlParameters: [
|
2149
2728
|
$host,
|
2150
2729
|
nextLink,
|
2151
2730
|
subscriptionId,
|
2152
|
-
resourceGroupName
|
2731
|
+
resourceGroupName,
|
2153
2732
|
],
|
2154
2733
|
headerParameters: [accept],
|
2155
|
-
serializer: serializer$1
|
2734
|
+
serializer: serializer$1,
|
2156
2735
|
};
|
2157
2736
|
const listBySubscriptionNextOperationSpec = {
|
2158
2737
|
path: "{nextLink}",
|
2159
2738
|
httpMethod: "GET",
|
2160
2739
|
responses: {
|
2161
2740
|
200: {
|
2162
|
-
bodyMapper: ManagedCCFList
|
2741
|
+
bodyMapper: ManagedCCFList,
|
2163
2742
|
},
|
2164
2743
|
default: {
|
2165
|
-
bodyMapper: ErrorResponse
|
2166
|
-
}
|
2744
|
+
bodyMapper: ErrorResponse,
|
2745
|
+
},
|
2167
2746
|
},
|
2168
2747
|
urlParameters: [
|
2169
2748
|
$host,
|
2170
2749
|
nextLink,
|
2171
|
-
subscriptionId
|
2750
|
+
subscriptionId,
|
2172
2751
|
],
|
2173
2752
|
headerParameters: [accept],
|
2174
|
-
serializer: serializer$1
|
2753
|
+
serializer: serializer$1,
|
2175
2754
|
};
|
2176
2755
|
|
2177
2756
|
/*
|
@@ -2202,14 +2781,14 @@ class ConfidentialLedgerClient extends coreClient__namespace.ServiceClient {
|
|
2202
2781
|
}
|
2203
2782
|
const defaults = {
|
2204
2783
|
requestContentType: "application/json; charset=utf-8",
|
2205
|
-
credential: credentials
|
2784
|
+
credential: credentials,
|
2206
2785
|
};
|
2207
|
-
const packageDetails = `azsdk-js-arm-confidentialledger/1.3.0-beta.
|
2786
|
+
const packageDetails = `azsdk-js-arm-confidentialledger/1.3.0-beta.2`;
|
2208
2787
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
2209
2788
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
2210
2789
|
: `${packageDetails}`;
|
2211
2790
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
2212
|
-
userAgentPrefix
|
2791
|
+
userAgentPrefix,
|
2213
2792
|
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
2214
2793
|
super(optionsWithDefaults);
|
2215
2794
|
let bearerTokenAuthenticationPolicyFound = false;
|
@@ -2223,21 +2802,21 @@ class ConfidentialLedgerClient extends coreClient__namespace.ServiceClient {
|
|
2223
2802
|
options.pipeline.getOrderedPolicies().length == 0 ||
|
2224
2803
|
!bearerTokenAuthenticationPolicyFound) {
|
2225
2804
|
this.pipeline.removePolicy({
|
2226
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
2805
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
|
2227
2806
|
});
|
2228
2807
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
2229
2808
|
credential: credentials,
|
2230
2809
|
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
2231
2810
|
challengeCallbacks: {
|
2232
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
2233
|
-
}
|
2811
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
2812
|
+
},
|
2234
2813
|
}));
|
2235
2814
|
}
|
2236
2815
|
// Parameter assignments
|
2237
2816
|
this.subscriptionId = subscriptionId;
|
2238
2817
|
// Assigning values to Constant parameters
|
2239
2818
|
this.$host = options.$host || "https://management.azure.com";
|
2240
|
-
this.apiVersion = options.apiVersion || "2023-
|
2819
|
+
this.apiVersion = options.apiVersion || "2023-06-28-preview";
|
2241
2820
|
this.operations = new OperationsImpl(this);
|
2242
2821
|
this.ledger = new LedgerImpl(this);
|
2243
2822
|
this.managedCCFOperations = new ManagedCCFOperationsImpl(this);
|
@@ -2266,7 +2845,7 @@ class ConfidentialLedgerClient extends coreClient__namespace.ServiceClient {
|
|
2266
2845
|
}
|
2267
2846
|
return next(request);
|
2268
2847
|
});
|
2269
|
-
}
|
2848
|
+
},
|
2270
2849
|
};
|
2271
2850
|
this.pipeline.addPolicy(apiVersionPolicy);
|
2272
2851
|
}
|
@@ -2286,18 +2865,18 @@ const checkNameAvailabilityOperationSpec = {
|
|
2286
2865
|
httpMethod: "POST",
|
2287
2866
|
responses: {
|
2288
2867
|
200: {
|
2289
|
-
bodyMapper: CheckNameAvailabilityResponse
|
2868
|
+
bodyMapper: CheckNameAvailabilityResponse,
|
2290
2869
|
},
|
2291
2870
|
default: {
|
2292
|
-
bodyMapper: ErrorResponse
|
2293
|
-
}
|
2871
|
+
bodyMapper: ErrorResponse,
|
2872
|
+
},
|
2294
2873
|
},
|
2295
2874
|
requestBody: nameAvailabilityRequest,
|
2296
2875
|
queryParameters: [apiVersion],
|
2297
2876
|
urlParameters: [$host, subscriptionId],
|
2298
2877
|
headerParameters: [accept, contentType],
|
2299
2878
|
mediaType: "json",
|
2300
|
-
serializer
|
2879
|
+
serializer,
|
2301
2880
|
};
|
2302
2881
|
|
2303
2882
|
exports.ConfidentialLedgerClient = ConfidentialLedgerClient;
|