@azure/arm-confidentialledger 1.3.0-alpha.20240423.1 → 1.3.0-alpha.20240424.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -8
- package/LICENSE +1 -1
- package/dist/index.js +961 -391
- 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 +2 -2
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js +2 -2
- 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 +2 -2
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js +2 -2
- 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 +2 -2
- 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 +12 -12
- 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 +126 -1
- 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 +237 -59
- 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 +245 -59
- package/dist-esm/src/operations/managedCCFOperations.js.map +1 -1
- package/dist-esm/src/operations/operations.js +9 -9
- 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/test/confidentialledger_operations_test.spec.js +2 -2
- package/dist-esm/test/confidentialledger_operations_test.spec.js.map +1 -1
- package/package.json +11 -11
- package/review/arm-confidentialledger.api.md +107 -2
- package/src/confidentialLedgerClient.ts +25 -25
- 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/dist/index.js
CHANGED
@@ -116,6 +116,16 @@ exports.KnownProvisioningState = void 0;
|
|
116
116
|
/** Updating */
|
117
117
|
KnownProvisioningState["Updating"] = "Updating";
|
118
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 = {}));
|
119
129
|
/** Known values of {@link LedgerRoleName} that the service accepts. */
|
120
130
|
exports.KnownLedgerRoleName = void 0;
|
121
131
|
(function (KnownLedgerRoleName) {
|
@@ -167,20 +177,20 @@ const ResourceProviderOperationList = {
|
|
167
177
|
element: {
|
168
178
|
type: {
|
169
179
|
name: "Composite",
|
170
|
-
className: "ResourceProviderOperationDefinition"
|
171
|
-
}
|
172
|
-
}
|
173
|
-
}
|
180
|
+
className: "ResourceProviderOperationDefinition",
|
181
|
+
},
|
182
|
+
},
|
183
|
+
},
|
174
184
|
},
|
175
185
|
nextLink: {
|
176
186
|
serializedName: "nextLink",
|
177
187
|
readOnly: true,
|
178
188
|
type: {
|
179
|
-
name: "String"
|
180
|
-
}
|
181
|
-
}
|
182
|
-
}
|
183
|
-
}
|
189
|
+
name: "String",
|
190
|
+
},
|
191
|
+
},
|
192
|
+
},
|
193
|
+
},
|
184
194
|
};
|
185
195
|
const ResourceProviderOperationDefinition = {
|
186
196
|
type: {
|
@@ -190,24 +200,24 @@ const ResourceProviderOperationDefinition = {
|
|
190
200
|
name: {
|
191
201
|
serializedName: "name",
|
192
202
|
type: {
|
193
|
-
name: "String"
|
194
|
-
}
|
203
|
+
name: "String",
|
204
|
+
},
|
195
205
|
},
|
196
206
|
isDataAction: {
|
197
207
|
serializedName: "isDataAction",
|
198
208
|
type: {
|
199
|
-
name: "Boolean"
|
200
|
-
}
|
209
|
+
name: "Boolean",
|
210
|
+
},
|
201
211
|
},
|
202
212
|
display: {
|
203
213
|
serializedName: "display",
|
204
214
|
type: {
|
205
215
|
name: "Composite",
|
206
|
-
className: "ResourceProviderOperationDisplay"
|
207
|
-
}
|
208
|
-
}
|
209
|
-
}
|
210
|
-
}
|
216
|
+
className: "ResourceProviderOperationDisplay",
|
217
|
+
},
|
218
|
+
},
|
219
|
+
},
|
220
|
+
},
|
211
221
|
};
|
212
222
|
const ResourceProviderOperationDisplay = {
|
213
223
|
type: {
|
@@ -217,29 +227,29 @@ const ResourceProviderOperationDisplay = {
|
|
217
227
|
provider: {
|
218
228
|
serializedName: "provider",
|
219
229
|
type: {
|
220
|
-
name: "String"
|
221
|
-
}
|
230
|
+
name: "String",
|
231
|
+
},
|
222
232
|
},
|
223
233
|
resource: {
|
224
234
|
serializedName: "resource",
|
225
235
|
type: {
|
226
|
-
name: "String"
|
227
|
-
}
|
236
|
+
name: "String",
|
237
|
+
},
|
228
238
|
},
|
229
239
|
operation: {
|
230
240
|
serializedName: "operation",
|
231
241
|
type: {
|
232
|
-
name: "String"
|
233
|
-
}
|
242
|
+
name: "String",
|
243
|
+
},
|
234
244
|
},
|
235
245
|
description: {
|
236
246
|
serializedName: "description",
|
237
247
|
type: {
|
238
|
-
name: "String"
|
239
|
-
}
|
240
|
-
}
|
241
|
-
}
|
242
|
-
}
|
248
|
+
name: "String",
|
249
|
+
},
|
250
|
+
},
|
251
|
+
},
|
252
|
+
},
|
243
253
|
};
|
244
254
|
const ErrorResponse = {
|
245
255
|
type: {
|
@@ -250,11 +260,11 @@ const ErrorResponse = {
|
|
250
260
|
serializedName: "error",
|
251
261
|
type: {
|
252
262
|
name: "Composite",
|
253
|
-
className: "ErrorDetail"
|
254
|
-
}
|
255
|
-
}
|
256
|
-
}
|
257
|
-
}
|
263
|
+
className: "ErrorDetail",
|
264
|
+
},
|
265
|
+
},
|
266
|
+
},
|
267
|
+
},
|
258
268
|
};
|
259
269
|
const ErrorDetail = {
|
260
270
|
type: {
|
@@ -265,22 +275,22 @@ const ErrorDetail = {
|
|
265
275
|
serializedName: "code",
|
266
276
|
readOnly: true,
|
267
277
|
type: {
|
268
|
-
name: "String"
|
269
|
-
}
|
278
|
+
name: "String",
|
279
|
+
},
|
270
280
|
},
|
271
281
|
message: {
|
272
282
|
serializedName: "message",
|
273
283
|
readOnly: true,
|
274
284
|
type: {
|
275
|
-
name: "String"
|
276
|
-
}
|
285
|
+
name: "String",
|
286
|
+
},
|
277
287
|
},
|
278
288
|
target: {
|
279
289
|
serializedName: "target",
|
280
290
|
readOnly: true,
|
281
291
|
type: {
|
282
|
-
name: "String"
|
283
|
-
}
|
292
|
+
name: "String",
|
293
|
+
},
|
284
294
|
},
|
285
295
|
details: {
|
286
296
|
serializedName: "details",
|
@@ -290,10 +300,10 @@ const ErrorDetail = {
|
|
290
300
|
element: {
|
291
301
|
type: {
|
292
302
|
name: "Composite",
|
293
|
-
className: "ErrorDetail"
|
294
|
-
}
|
295
|
-
}
|
296
|
-
}
|
303
|
+
className: "ErrorDetail",
|
304
|
+
},
|
305
|
+
},
|
306
|
+
},
|
297
307
|
},
|
298
308
|
additionalInfo: {
|
299
309
|
serializedName: "additionalInfo",
|
@@ -303,13 +313,13 @@ const ErrorDetail = {
|
|
303
313
|
element: {
|
304
314
|
type: {
|
305
315
|
name: "Composite",
|
306
|
-
className: "ErrorAdditionalInfo"
|
307
|
-
}
|
308
|
-
}
|
309
|
-
}
|
310
|
-
}
|
311
|
-
}
|
312
|
-
}
|
316
|
+
className: "ErrorAdditionalInfo",
|
317
|
+
},
|
318
|
+
},
|
319
|
+
},
|
320
|
+
},
|
321
|
+
},
|
322
|
+
},
|
313
323
|
};
|
314
324
|
const ErrorAdditionalInfo = {
|
315
325
|
type: {
|
@@ -320,19 +330,19 @@ const ErrorAdditionalInfo = {
|
|
320
330
|
serializedName: "type",
|
321
331
|
readOnly: true,
|
322
332
|
type: {
|
323
|
-
name: "String"
|
324
|
-
}
|
333
|
+
name: "String",
|
334
|
+
},
|
325
335
|
},
|
326
336
|
info: {
|
327
337
|
serializedName: "info",
|
328
338
|
readOnly: true,
|
329
339
|
type: {
|
330
340
|
name: "Dictionary",
|
331
|
-
value: { type: { name: "any" } }
|
332
|
-
}
|
333
|
-
}
|
334
|
-
}
|
335
|
-
}
|
341
|
+
value: { type: { name: "any" } },
|
342
|
+
},
|
343
|
+
},
|
344
|
+
},
|
345
|
+
},
|
336
346
|
};
|
337
347
|
const CheckNameAvailabilityRequest = {
|
338
348
|
type: {
|
@@ -342,17 +352,17 @@ const CheckNameAvailabilityRequest = {
|
|
342
352
|
name: {
|
343
353
|
serializedName: "name",
|
344
354
|
type: {
|
345
|
-
name: "String"
|
346
|
-
}
|
355
|
+
name: "String",
|
356
|
+
},
|
347
357
|
},
|
348
358
|
type: {
|
349
359
|
serializedName: "type",
|
350
360
|
type: {
|
351
|
-
name: "String"
|
352
|
-
}
|
353
|
-
}
|
354
|
-
}
|
355
|
-
}
|
361
|
+
name: "String",
|
362
|
+
},
|
363
|
+
},
|
364
|
+
},
|
365
|
+
},
|
356
366
|
};
|
357
367
|
const CheckNameAvailabilityResponse = {
|
358
368
|
type: {
|
@@ -362,23 +372,23 @@ const CheckNameAvailabilityResponse = {
|
|
362
372
|
nameAvailable: {
|
363
373
|
serializedName: "nameAvailable",
|
364
374
|
type: {
|
365
|
-
name: "Boolean"
|
366
|
-
}
|
375
|
+
name: "Boolean",
|
376
|
+
},
|
367
377
|
},
|
368
378
|
reason: {
|
369
379
|
serializedName: "reason",
|
370
380
|
type: {
|
371
|
-
name: "String"
|
372
|
-
}
|
381
|
+
name: "String",
|
382
|
+
},
|
373
383
|
},
|
374
384
|
message: {
|
375
385
|
serializedName: "message",
|
376
386
|
type: {
|
377
|
-
name: "String"
|
378
|
-
}
|
379
|
-
}
|
380
|
-
}
|
381
|
-
}
|
387
|
+
name: "String",
|
388
|
+
},
|
389
|
+
},
|
390
|
+
},
|
391
|
+
},
|
382
392
|
};
|
383
393
|
const LedgerProperties = {
|
384
394
|
type: {
|
@@ -389,48 +399,54 @@ const LedgerProperties = {
|
|
389
399
|
serializedName: "ledgerName",
|
390
400
|
readOnly: true,
|
391
401
|
type: {
|
392
|
-
name: "String"
|
393
|
-
}
|
402
|
+
name: "String",
|
403
|
+
},
|
394
404
|
},
|
395
405
|
ledgerUri: {
|
396
406
|
serializedName: "ledgerUri",
|
397
407
|
readOnly: true,
|
398
408
|
type: {
|
399
|
-
name: "String"
|
400
|
-
}
|
409
|
+
name: "String",
|
410
|
+
},
|
401
411
|
},
|
402
412
|
identityServiceUri: {
|
403
413
|
serializedName: "identityServiceUri",
|
404
414
|
readOnly: true,
|
405
415
|
type: {
|
406
|
-
name: "String"
|
407
|
-
}
|
416
|
+
name: "String",
|
417
|
+
},
|
408
418
|
},
|
409
419
|
ledgerInternalNamespace: {
|
410
420
|
serializedName: "ledgerInternalNamespace",
|
411
421
|
readOnly: true,
|
412
422
|
type: {
|
413
|
-
name: "String"
|
414
|
-
}
|
423
|
+
name: "String",
|
424
|
+
},
|
415
425
|
},
|
416
426
|
runningState: {
|
417
427
|
serializedName: "runningState",
|
418
428
|
type: {
|
419
|
-
name: "String"
|
420
|
-
}
|
429
|
+
name: "String",
|
430
|
+
},
|
421
431
|
},
|
422
432
|
ledgerType: {
|
423
433
|
serializedName: "ledgerType",
|
424
434
|
type: {
|
425
|
-
name: "String"
|
426
|
-
}
|
435
|
+
name: "String",
|
436
|
+
},
|
427
437
|
},
|
428
438
|
provisioningState: {
|
429
439
|
serializedName: "provisioningState",
|
430
440
|
readOnly: true,
|
431
441
|
type: {
|
432
|
-
name: "String"
|
433
|
-
}
|
442
|
+
name: "String",
|
443
|
+
},
|
444
|
+
},
|
445
|
+
ledgerSku: {
|
446
|
+
serializedName: "ledgerSku",
|
447
|
+
type: {
|
448
|
+
name: "String",
|
449
|
+
},
|
434
450
|
},
|
435
451
|
aadBasedSecurityPrincipals: {
|
436
452
|
serializedName: "aadBasedSecurityPrincipals",
|
@@ -439,10 +455,10 @@ const LedgerProperties = {
|
|
439
455
|
element: {
|
440
456
|
type: {
|
441
457
|
name: "Composite",
|
442
|
-
className: "AADBasedSecurityPrincipal"
|
443
|
-
}
|
444
|
-
}
|
445
|
-
}
|
458
|
+
className: "AADBasedSecurityPrincipal",
|
459
|
+
},
|
460
|
+
},
|
461
|
+
},
|
446
462
|
},
|
447
463
|
certBasedSecurityPrincipals: {
|
448
464
|
serializedName: "certBasedSecurityPrincipals",
|
@@ -451,13 +467,13 @@ const LedgerProperties = {
|
|
451
467
|
element: {
|
452
468
|
type: {
|
453
469
|
name: "Composite",
|
454
|
-
className: "CertBasedSecurityPrincipal"
|
455
|
-
}
|
456
|
-
}
|
457
|
-
}
|
458
|
-
}
|
459
|
-
}
|
460
|
-
}
|
470
|
+
className: "CertBasedSecurityPrincipal",
|
471
|
+
},
|
472
|
+
},
|
473
|
+
},
|
474
|
+
},
|
475
|
+
},
|
476
|
+
},
|
461
477
|
};
|
462
478
|
const AADBasedSecurityPrincipal = {
|
463
479
|
type: {
|
@@ -467,23 +483,23 @@ const AADBasedSecurityPrincipal = {
|
|
467
483
|
principalId: {
|
468
484
|
serializedName: "principalId",
|
469
485
|
type: {
|
470
|
-
name: "String"
|
471
|
-
}
|
486
|
+
name: "String",
|
487
|
+
},
|
472
488
|
},
|
473
489
|
tenantId: {
|
474
490
|
serializedName: "tenantId",
|
475
491
|
type: {
|
476
|
-
name: "String"
|
477
|
-
}
|
492
|
+
name: "String",
|
493
|
+
},
|
478
494
|
},
|
479
495
|
ledgerRoleName: {
|
480
496
|
serializedName: "ledgerRoleName",
|
481
497
|
type: {
|
482
|
-
name: "String"
|
483
|
-
}
|
484
|
-
}
|
485
|
-
}
|
486
|
-
}
|
498
|
+
name: "String",
|
499
|
+
},
|
500
|
+
},
|
501
|
+
},
|
502
|
+
},
|
487
503
|
};
|
488
504
|
const CertBasedSecurityPrincipal = {
|
489
505
|
type: {
|
@@ -493,17 +509,17 @@ const CertBasedSecurityPrincipal = {
|
|
493
509
|
cert: {
|
494
510
|
serializedName: "cert",
|
495
511
|
type: {
|
496
|
-
name: "String"
|
497
|
-
}
|
512
|
+
name: "String",
|
513
|
+
},
|
498
514
|
},
|
499
515
|
ledgerRoleName: {
|
500
516
|
serializedName: "ledgerRoleName",
|
501
517
|
type: {
|
502
|
-
name: "String"
|
503
|
-
}
|
504
|
-
}
|
505
|
-
}
|
506
|
-
}
|
518
|
+
name: "String",
|
519
|
+
},
|
520
|
+
},
|
521
|
+
},
|
522
|
+
},
|
507
523
|
};
|
508
524
|
const Resource = {
|
509
525
|
type: {
|
@@ -514,32 +530,32 @@ const Resource = {
|
|
514
530
|
serializedName: "id",
|
515
531
|
readOnly: true,
|
516
532
|
type: {
|
517
|
-
name: "String"
|
518
|
-
}
|
533
|
+
name: "String",
|
534
|
+
},
|
519
535
|
},
|
520
536
|
name: {
|
521
537
|
serializedName: "name",
|
522
538
|
readOnly: true,
|
523
539
|
type: {
|
524
|
-
name: "String"
|
525
|
-
}
|
540
|
+
name: "String",
|
541
|
+
},
|
526
542
|
},
|
527
543
|
type: {
|
528
544
|
serializedName: "type",
|
529
545
|
readOnly: true,
|
530
546
|
type: {
|
531
|
-
name: "String"
|
532
|
-
}
|
547
|
+
name: "String",
|
548
|
+
},
|
533
549
|
},
|
534
550
|
systemData: {
|
535
551
|
serializedName: "systemData",
|
536
552
|
type: {
|
537
553
|
name: "Composite",
|
538
|
-
className: "SystemData"
|
539
|
-
}
|
540
|
-
}
|
541
|
-
}
|
542
|
-
}
|
554
|
+
className: "SystemData",
|
555
|
+
},
|
556
|
+
},
|
557
|
+
},
|
558
|
+
},
|
543
559
|
};
|
544
560
|
const SystemData = {
|
545
561
|
type: {
|
@@ -549,41 +565,41 @@ const SystemData = {
|
|
549
565
|
createdBy: {
|
550
566
|
serializedName: "createdBy",
|
551
567
|
type: {
|
552
|
-
name: "String"
|
553
|
-
}
|
568
|
+
name: "String",
|
569
|
+
},
|
554
570
|
},
|
555
571
|
createdByType: {
|
556
572
|
serializedName: "createdByType",
|
557
573
|
type: {
|
558
|
-
name: "String"
|
559
|
-
}
|
574
|
+
name: "String",
|
575
|
+
},
|
560
576
|
},
|
561
577
|
createdAt: {
|
562
578
|
serializedName: "createdAt",
|
563
579
|
type: {
|
564
|
-
name: "DateTime"
|
565
|
-
}
|
580
|
+
name: "DateTime",
|
581
|
+
},
|
566
582
|
},
|
567
583
|
lastModifiedBy: {
|
568
584
|
serializedName: "lastModifiedBy",
|
569
585
|
type: {
|
570
|
-
name: "String"
|
571
|
-
}
|
586
|
+
name: "String",
|
587
|
+
},
|
572
588
|
},
|
573
589
|
lastModifiedByType: {
|
574
590
|
serializedName: "lastModifiedByType",
|
575
591
|
type: {
|
576
|
-
name: "String"
|
577
|
-
}
|
592
|
+
name: "String",
|
593
|
+
},
|
578
594
|
},
|
579
595
|
lastModifiedAt: {
|
580
596
|
serializedName: "lastModifiedAt",
|
581
597
|
type: {
|
582
|
-
name: "DateTime"
|
583
|
-
}
|
584
|
-
}
|
585
|
-
}
|
586
|
-
}
|
598
|
+
name: "DateTime",
|
599
|
+
},
|
600
|
+
},
|
601
|
+
},
|
602
|
+
},
|
587
603
|
};
|
588
604
|
const ConfidentialLedgerList = {
|
589
605
|
type: {
|
@@ -597,19 +613,99 @@ const ConfidentialLedgerList = {
|
|
597
613
|
element: {
|
598
614
|
type: {
|
599
615
|
name: "Composite",
|
600
|
-
className: "ConfidentialLedger"
|
601
|
-
}
|
602
|
-
}
|
603
|
-
}
|
616
|
+
className: "ConfidentialLedger",
|
617
|
+
},
|
618
|
+
},
|
619
|
+
},
|
604
620
|
},
|
605
621
|
nextLink: {
|
606
622
|
serializedName: "nextLink",
|
607
623
|
type: {
|
608
|
-
name: "String"
|
609
|
-
}
|
610
|
-
}
|
611
|
-
}
|
612
|
-
}
|
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
|
+
},
|
613
709
|
};
|
614
710
|
const ManagedCCFProperties = {
|
615
711
|
type: {
|
@@ -620,22 +716,22 @@ const ManagedCCFProperties = {
|
|
620
716
|
serializedName: "appName",
|
621
717
|
readOnly: true,
|
622
718
|
type: {
|
623
|
-
name: "String"
|
624
|
-
}
|
719
|
+
name: "String",
|
720
|
+
},
|
625
721
|
},
|
626
722
|
appUri: {
|
627
723
|
serializedName: "appUri",
|
628
724
|
readOnly: true,
|
629
725
|
type: {
|
630
|
-
name: "String"
|
631
|
-
}
|
726
|
+
name: "String",
|
727
|
+
},
|
632
728
|
},
|
633
729
|
identityServiceUri: {
|
634
730
|
serializedName: "identityServiceUri",
|
635
731
|
readOnly: true,
|
636
732
|
type: {
|
637
|
-
name: "String"
|
638
|
-
}
|
733
|
+
name: "String",
|
734
|
+
},
|
639
735
|
},
|
640
736
|
memberIdentityCertificates: {
|
641
737
|
serializedName: "memberIdentityCertificates",
|
@@ -644,34 +740,40 @@ const ManagedCCFProperties = {
|
|
644
740
|
element: {
|
645
741
|
type: {
|
646
742
|
name: "Composite",
|
647
|
-
className: "MemberIdentityCertificate"
|
648
|
-
}
|
649
|
-
}
|
650
|
-
}
|
743
|
+
className: "MemberIdentityCertificate",
|
744
|
+
},
|
745
|
+
},
|
746
|
+
},
|
651
747
|
},
|
652
748
|
deploymentType: {
|
653
749
|
serializedName: "deploymentType",
|
654
750
|
type: {
|
655
751
|
name: "Composite",
|
656
|
-
className: "DeploymentType"
|
657
|
-
}
|
752
|
+
className: "DeploymentType",
|
753
|
+
},
|
754
|
+
},
|
755
|
+
runningState: {
|
756
|
+
serializedName: "runningState",
|
757
|
+
type: {
|
758
|
+
name: "String",
|
759
|
+
},
|
658
760
|
},
|
659
761
|
provisioningState: {
|
660
762
|
serializedName: "provisioningState",
|
661
763
|
readOnly: true,
|
662
764
|
type: {
|
663
|
-
name: "String"
|
664
|
-
}
|
765
|
+
name: "String",
|
766
|
+
},
|
665
767
|
},
|
666
768
|
nodeCount: {
|
667
769
|
defaultValue: 3,
|
668
770
|
serializedName: "nodeCount",
|
669
771
|
type: {
|
670
|
-
name: "Number"
|
671
|
-
}
|
672
|
-
}
|
673
|
-
}
|
674
|
-
}
|
772
|
+
name: "Number",
|
773
|
+
},
|
774
|
+
},
|
775
|
+
},
|
776
|
+
},
|
675
777
|
};
|
676
778
|
const MemberIdentityCertificate = {
|
677
779
|
type: {
|
@@ -681,23 +783,23 @@ const MemberIdentityCertificate = {
|
|
681
783
|
certificate: {
|
682
784
|
serializedName: "certificate",
|
683
785
|
type: {
|
684
|
-
name: "String"
|
685
|
-
}
|
786
|
+
name: "String",
|
787
|
+
},
|
686
788
|
},
|
687
789
|
encryptionkey: {
|
688
790
|
serializedName: "encryptionkey",
|
689
791
|
type: {
|
690
|
-
name: "String"
|
691
|
-
}
|
792
|
+
name: "String",
|
793
|
+
},
|
692
794
|
},
|
693
795
|
tags: {
|
694
796
|
serializedName: "tags",
|
695
797
|
type: {
|
696
|
-
name: "any"
|
697
|
-
}
|
698
|
-
}
|
699
|
-
}
|
700
|
-
}
|
798
|
+
name: "any",
|
799
|
+
},
|
800
|
+
},
|
801
|
+
},
|
802
|
+
},
|
701
803
|
};
|
702
804
|
const DeploymentType = {
|
703
805
|
type: {
|
@@ -707,17 +809,17 @@ const DeploymentType = {
|
|
707
809
|
languageRuntime: {
|
708
810
|
serializedName: "languageRuntime",
|
709
811
|
type: {
|
710
|
-
name: "String"
|
711
|
-
}
|
812
|
+
name: "String",
|
813
|
+
},
|
712
814
|
},
|
713
815
|
appSourceUri: {
|
714
816
|
serializedName: "appSourceUri",
|
715
817
|
type: {
|
716
|
-
name: "String"
|
717
|
-
}
|
718
|
-
}
|
719
|
-
}
|
720
|
-
}
|
818
|
+
name: "String",
|
819
|
+
},
|
820
|
+
},
|
821
|
+
},
|
822
|
+
},
|
721
823
|
};
|
722
824
|
const ManagedCCFList = {
|
723
825
|
type: {
|
@@ -731,19 +833,99 @@ const ManagedCCFList = {
|
|
731
833
|
element: {
|
732
834
|
type: {
|
733
835
|
name: "Composite",
|
734
|
-
className: "ManagedCCF"
|
735
|
-
}
|
736
|
-
}
|
737
|
-
}
|
836
|
+
className: "ManagedCCF",
|
837
|
+
},
|
838
|
+
},
|
839
|
+
},
|
738
840
|
},
|
739
841
|
nextLink: {
|
740
842
|
serializedName: "nextLink",
|
741
843
|
type: {
|
742
|
-
name: "String"
|
743
|
-
}
|
744
|
-
}
|
745
|
-
}
|
746
|
-
}
|
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
|
+
},
|
747
929
|
};
|
748
930
|
const CertificateTags = {
|
749
931
|
type: {
|
@@ -754,11 +936,11 @@ const CertificateTags = {
|
|
754
936
|
serializedName: "tags",
|
755
937
|
type: {
|
756
938
|
name: "Dictionary",
|
757
|
-
value: { type: { name: "String" } }
|
758
|
-
}
|
759
|
-
}
|
760
|
-
}
|
761
|
-
}
|
939
|
+
value: { type: { name: "String" } },
|
940
|
+
},
|
941
|
+
},
|
942
|
+
},
|
943
|
+
},
|
762
944
|
};
|
763
945
|
const TrackedResource = {
|
764
946
|
type: {
|
@@ -768,16 +950,16 @@ const TrackedResource = {
|
|
768
950
|
serializedName: "tags",
|
769
951
|
type: {
|
770
952
|
name: "Dictionary",
|
771
|
-
value: { type: { name: "String" } }
|
772
|
-
}
|
953
|
+
value: { type: { name: "String" } },
|
954
|
+
},
|
773
955
|
}, location: {
|
774
956
|
serializedName: "location",
|
775
957
|
required: true,
|
776
958
|
type: {
|
777
|
-
name: "String"
|
778
|
-
}
|
779
|
-
} })
|
780
|
-
}
|
959
|
+
name: "String",
|
960
|
+
},
|
961
|
+
} }),
|
962
|
+
},
|
781
963
|
};
|
782
964
|
const ConfidentialLedger = {
|
783
965
|
type: {
|
@@ -787,10 +969,10 @@ const ConfidentialLedger = {
|
|
787
969
|
serializedName: "properties",
|
788
970
|
type: {
|
789
971
|
name: "Composite",
|
790
|
-
className: "LedgerProperties"
|
791
|
-
}
|
792
|
-
} })
|
793
|
-
}
|
972
|
+
className: "LedgerProperties",
|
973
|
+
},
|
974
|
+
} }),
|
975
|
+
},
|
794
976
|
};
|
795
977
|
const ManagedCCF = {
|
796
978
|
type: {
|
@@ -800,10 +982,10 @@ const ManagedCCF = {
|
|
800
982
|
serializedName: "properties",
|
801
983
|
type: {
|
802
984
|
name: "Composite",
|
803
|
-
className: "ManagedCCFProperties"
|
804
|
-
}
|
805
|
-
} })
|
806
|
-
}
|
985
|
+
className: "ManagedCCFProperties",
|
986
|
+
},
|
987
|
+
} }),
|
988
|
+
},
|
807
989
|
};
|
808
990
|
|
809
991
|
var Mappers = /*#__PURE__*/Object.freeze({
|
@@ -814,15 +996,23 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
814
996
|
CheckNameAvailabilityRequest: CheckNameAvailabilityRequest,
|
815
997
|
CheckNameAvailabilityResponse: CheckNameAvailabilityResponse,
|
816
998
|
ConfidentialLedger: ConfidentialLedger,
|
999
|
+
ConfidentialLedgerBackup: ConfidentialLedgerBackup,
|
1000
|
+
ConfidentialLedgerBackupResponse: ConfidentialLedgerBackupResponse,
|
817
1001
|
ConfidentialLedgerList: ConfidentialLedgerList,
|
1002
|
+
ConfidentialLedgerRestore: ConfidentialLedgerRestore,
|
1003
|
+
ConfidentialLedgerRestoreResponse: ConfidentialLedgerRestoreResponse,
|
818
1004
|
DeploymentType: DeploymentType,
|
819
1005
|
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
820
1006
|
ErrorDetail: ErrorDetail,
|
821
1007
|
ErrorResponse: ErrorResponse,
|
822
1008
|
LedgerProperties: LedgerProperties,
|
823
1009
|
ManagedCCF: ManagedCCF,
|
1010
|
+
ManagedCCFBackup: ManagedCCFBackup,
|
1011
|
+
ManagedCCFBackupResponse: ManagedCCFBackupResponse,
|
824
1012
|
ManagedCCFList: ManagedCCFList,
|
825
1013
|
ManagedCCFProperties: ManagedCCFProperties,
|
1014
|
+
ManagedCCFRestore: ManagedCCFRestore,
|
1015
|
+
ManagedCCFRestoreResponse: ManagedCCFRestoreResponse,
|
826
1016
|
MemberIdentityCertificate: MemberIdentityCertificate,
|
827
1017
|
Resource: Resource,
|
828
1018
|
ResourceProviderOperationDefinition: ResourceProviderOperationDefinition,
|
@@ -846,9 +1036,9 @@ const accept = {
|
|
846
1036
|
isConstant: true,
|
847
1037
|
serializedName: "Accept",
|
848
1038
|
type: {
|
849
|
-
name: "String"
|
850
|
-
}
|
851
|
-
}
|
1039
|
+
name: "String",
|
1040
|
+
},
|
1041
|
+
},
|
852
1042
|
};
|
853
1043
|
const $host = {
|
854
1044
|
parameterPath: "$host",
|
@@ -856,21 +1046,21 @@ const $host = {
|
|
856
1046
|
serializedName: "$host",
|
857
1047
|
required: true,
|
858
1048
|
type: {
|
859
|
-
name: "String"
|
860
|
-
}
|
1049
|
+
name: "String",
|
1050
|
+
},
|
861
1051
|
},
|
862
|
-
skipEncoding: true
|
1052
|
+
skipEncoding: true,
|
863
1053
|
};
|
864
1054
|
const apiVersion = {
|
865
1055
|
parameterPath: "apiVersion",
|
866
1056
|
mapper: {
|
867
|
-
defaultValue: "2023-
|
1057
|
+
defaultValue: "2023-06-28-preview",
|
868
1058
|
isConstant: true,
|
869
1059
|
serializedName: "api-version",
|
870
1060
|
type: {
|
871
|
-
name: "String"
|
872
|
-
}
|
873
|
-
}
|
1061
|
+
name: "String",
|
1062
|
+
},
|
1063
|
+
},
|
874
1064
|
};
|
875
1065
|
const nextLink = {
|
876
1066
|
parameterPath: "nextLink",
|
@@ -878,10 +1068,10 @@ const nextLink = {
|
|
878
1068
|
serializedName: "nextLink",
|
879
1069
|
required: true,
|
880
1070
|
type: {
|
881
|
-
name: "String"
|
882
|
-
}
|
1071
|
+
name: "String",
|
1072
|
+
},
|
883
1073
|
},
|
884
|
-
skipEncoding: true
|
1074
|
+
skipEncoding: true,
|
885
1075
|
};
|
886
1076
|
const contentType = {
|
887
1077
|
parameterPath: ["options", "contentType"],
|
@@ -890,83 +1080,99 @@ const contentType = {
|
|
890
1080
|
isConstant: true,
|
891
1081
|
serializedName: "Content-Type",
|
892
1082
|
type: {
|
893
|
-
name: "String"
|
894
|
-
}
|
895
|
-
}
|
1083
|
+
name: "String",
|
1084
|
+
},
|
1085
|
+
},
|
896
1086
|
};
|
897
1087
|
const nameAvailabilityRequest = {
|
898
1088
|
parameterPath: "nameAvailabilityRequest",
|
899
|
-
mapper: CheckNameAvailabilityRequest
|
1089
|
+
mapper: CheckNameAvailabilityRequest,
|
900
1090
|
};
|
901
1091
|
const subscriptionId = {
|
902
1092
|
parameterPath: "subscriptionId",
|
903
1093
|
mapper: {
|
904
1094
|
constraints: {
|
905
|
-
MinLength: 1
|
1095
|
+
MinLength: 1,
|
906
1096
|
},
|
907
1097
|
serializedName: "subscriptionId",
|
908
1098
|
required: true,
|
909
1099
|
type: {
|
910
|
-
name: "String"
|
911
|
-
}
|
912
|
-
}
|
1100
|
+
name: "String",
|
1101
|
+
},
|
1102
|
+
},
|
913
1103
|
};
|
914
1104
|
const resourceGroupName = {
|
915
1105
|
parameterPath: "resourceGroupName",
|
916
1106
|
mapper: {
|
917
1107
|
constraints: {
|
918
1108
|
MaxLength: 90,
|
919
|
-
MinLength: 1
|
1109
|
+
MinLength: 1,
|
920
1110
|
},
|
921
1111
|
serializedName: "resourceGroupName",
|
922
1112
|
required: true,
|
923
1113
|
type: {
|
924
|
-
name: "String"
|
925
|
-
}
|
926
|
-
}
|
1114
|
+
name: "String",
|
1115
|
+
},
|
1116
|
+
},
|
927
1117
|
};
|
928
1118
|
const ledgerName = {
|
929
1119
|
parameterPath: "ledgerName",
|
930
1120
|
mapper: {
|
931
1121
|
constraints: {
|
932
|
-
Pattern: new RegExp("^[a-zA-Z0-9]")
|
1122
|
+
Pattern: new RegExp("^[a-zA-Z0-9]"),
|
933
1123
|
},
|
934
1124
|
serializedName: "ledgerName",
|
935
1125
|
required: true,
|
936
1126
|
type: {
|
937
|
-
name: "String"
|
938
|
-
}
|
939
|
-
}
|
1127
|
+
name: "String",
|
1128
|
+
},
|
1129
|
+
},
|
940
1130
|
};
|
941
1131
|
const confidentialLedger = {
|
942
1132
|
parameterPath: "confidentialLedger",
|
943
|
-
mapper: ConfidentialLedger
|
1133
|
+
mapper: ConfidentialLedger,
|
944
1134
|
};
|
945
1135
|
const filter = {
|
946
1136
|
parameterPath: ["options", "filter"],
|
947
1137
|
mapper: {
|
948
1138
|
serializedName: "$filter",
|
949
1139
|
type: {
|
950
|
-
name: "String"
|
951
|
-
}
|
952
|
-
}
|
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,
|
953
1151
|
};
|
954
1152
|
const appName = {
|
955
1153
|
parameterPath: "appName",
|
956
1154
|
mapper: {
|
957
1155
|
constraints: {
|
958
|
-
Pattern: new RegExp("^[a-zA-Z0-9]")
|
1156
|
+
Pattern: new RegExp("^[a-zA-Z0-9]"),
|
959
1157
|
},
|
960
1158
|
serializedName: "appName",
|
961
1159
|
required: true,
|
962
1160
|
type: {
|
963
|
-
name: "String"
|
964
|
-
}
|
965
|
-
}
|
1161
|
+
name: "String",
|
1162
|
+
},
|
1163
|
+
},
|
966
1164
|
};
|
967
1165
|
const managedCCF = {
|
968
1166
|
parameterPath: "managedCCF",
|
969
|
-
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,
|
970
1176
|
};
|
971
1177
|
|
972
1178
|
/*
|
@@ -1004,7 +1210,7 @@ class OperationsImpl {
|
|
1004
1210
|
throw new Error("maxPageSize is not supported by this operation.");
|
1005
1211
|
}
|
1006
1212
|
return this.listPagingPage(options, settings);
|
1007
|
-
}
|
1213
|
+
},
|
1008
1214
|
};
|
1009
1215
|
}
|
1010
1216
|
listPagingPage(options, settings) {
|
@@ -1070,31 +1276,31 @@ const listOperationSpec = {
|
|
1070
1276
|
httpMethod: "GET",
|
1071
1277
|
responses: {
|
1072
1278
|
200: {
|
1073
|
-
bodyMapper: ResourceProviderOperationList
|
1279
|
+
bodyMapper: ResourceProviderOperationList,
|
1074
1280
|
},
|
1075
1281
|
default: {
|
1076
|
-
bodyMapper: ErrorResponse
|
1077
|
-
}
|
1282
|
+
bodyMapper: ErrorResponse,
|
1283
|
+
},
|
1078
1284
|
},
|
1079
1285
|
queryParameters: [apiVersion],
|
1080
1286
|
urlParameters: [$host],
|
1081
1287
|
headerParameters: [accept],
|
1082
|
-
serializer: serializer$3
|
1288
|
+
serializer: serializer$3,
|
1083
1289
|
};
|
1084
1290
|
const listNextOperationSpec = {
|
1085
1291
|
path: "{nextLink}",
|
1086
1292
|
httpMethod: "GET",
|
1087
1293
|
responses: {
|
1088
1294
|
200: {
|
1089
|
-
bodyMapper: ResourceProviderOperationList
|
1295
|
+
bodyMapper: ResourceProviderOperationList,
|
1090
1296
|
},
|
1091
1297
|
default: {
|
1092
|
-
bodyMapper: ErrorResponse
|
1093
|
-
}
|
1298
|
+
bodyMapper: ErrorResponse,
|
1299
|
+
},
|
1094
1300
|
},
|
1095
1301
|
urlParameters: [$host, nextLink],
|
1096
1302
|
headerParameters: [accept],
|
1097
|
-
serializer: serializer$3
|
1303
|
+
serializer: serializer$3,
|
1098
1304
|
};
|
1099
1305
|
|
1100
1306
|
/*
|
@@ -1113,7 +1319,7 @@ function createLroSpec(inputs) {
|
|
1113
1319
|
sendPollRequest: (path, options) => {
|
1114
1320
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
1115
1321
|
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
1116
|
-
}
|
1322
|
+
},
|
1117
1323
|
};
|
1118
1324
|
}
|
1119
1325
|
|
@@ -1153,7 +1359,7 @@ class LedgerImpl {
|
|
1153
1359
|
throw new Error("maxPageSize is not supported by this operation.");
|
1154
1360
|
}
|
1155
1361
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
1156
|
-
}
|
1362
|
+
},
|
1157
1363
|
};
|
1158
1364
|
}
|
1159
1365
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
@@ -1214,7 +1420,7 @@ class LedgerImpl {
|
|
1214
1420
|
throw new Error("maxPageSize is not supported by this operation.");
|
1215
1421
|
}
|
1216
1422
|
return this.listBySubscriptionPagingPage(options, settings);
|
1217
|
-
}
|
1423
|
+
},
|
1218
1424
|
};
|
1219
1425
|
}
|
1220
1426
|
listBySubscriptionPagingPage(options, settings) {
|
@@ -1292,18 +1498,18 @@ class LedgerImpl {
|
|
1292
1498
|
rawResponse: {
|
1293
1499
|
statusCode: currentRawResponse.status,
|
1294
1500
|
body: currentRawResponse.parsedBody,
|
1295
|
-
headers: currentRawResponse.headers.toJSON()
|
1296
|
-
}
|
1501
|
+
headers: currentRawResponse.headers.toJSON(),
|
1502
|
+
},
|
1297
1503
|
};
|
1298
1504
|
});
|
1299
1505
|
const lro = createLroSpec({
|
1300
1506
|
sendOperationFn,
|
1301
1507
|
args: { resourceGroupName, ledgerName, options },
|
1302
|
-
spec: deleteOperationSpec$1
|
1508
|
+
spec: deleteOperationSpec$1,
|
1303
1509
|
});
|
1304
1510
|
const poller = yield coreLro.createHttpPoller(lro, {
|
1305
1511
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1306
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
1512
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1307
1513
|
});
|
1308
1514
|
yield poller.poll();
|
1309
1515
|
return poller;
|
@@ -1348,19 +1554,19 @@ class LedgerImpl {
|
|
1348
1554
|
rawResponse: {
|
1349
1555
|
statusCode: currentRawResponse.status,
|
1350
1556
|
body: currentRawResponse.parsedBody,
|
1351
|
-
headers: currentRawResponse.headers.toJSON()
|
1352
|
-
}
|
1557
|
+
headers: currentRawResponse.headers.toJSON(),
|
1558
|
+
},
|
1353
1559
|
};
|
1354
1560
|
});
|
1355
1561
|
const lro = createLroSpec({
|
1356
1562
|
sendOperationFn,
|
1357
1563
|
args: { resourceGroupName, ledgerName, confidentialLedger, options },
|
1358
|
-
spec: createOperationSpec$1
|
1564
|
+
spec: createOperationSpec$1,
|
1359
1565
|
});
|
1360
1566
|
const poller = yield coreLro.createHttpPoller(lro, {
|
1361
1567
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1362
1568
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1363
|
-
resourceLocationConfig: "azure-async-operation"
|
1569
|
+
resourceLocationConfig: "azure-async-operation",
|
1364
1570
|
});
|
1365
1571
|
yield poller.poll();
|
1366
1572
|
return poller;
|
@@ -1406,18 +1612,18 @@ class LedgerImpl {
|
|
1406
1612
|
rawResponse: {
|
1407
1613
|
statusCode: currentRawResponse.status,
|
1408
1614
|
body: currentRawResponse.parsedBody,
|
1409
|
-
headers: currentRawResponse.headers.toJSON()
|
1410
|
-
}
|
1615
|
+
headers: currentRawResponse.headers.toJSON(),
|
1616
|
+
},
|
1411
1617
|
};
|
1412
1618
|
});
|
1413
1619
|
const lro = createLroSpec({
|
1414
1620
|
sendOperationFn,
|
1415
1621
|
args: { resourceGroupName, ledgerName, confidentialLedger, options },
|
1416
|
-
spec: updateOperationSpec$1
|
1622
|
+
spec: updateOperationSpec$1,
|
1417
1623
|
});
|
1418
1624
|
const poller = yield coreLro.createHttpPoller(lro, {
|
1419
1625
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1420
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
1626
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1421
1627
|
});
|
1422
1628
|
yield poller.poll();
|
1423
1629
|
return poller;
|
@@ -1445,11 +1651,125 @@ class LedgerImpl {
|
|
1445
1651
|
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
|
1446
1652
|
}
|
1447
1653
|
/**
|
1448
|
-
* 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
|
1449
1766
|
* @param options The options parameters.
|
1450
1767
|
*/
|
1451
|
-
|
1452
|
-
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
|
+
});
|
1453
1773
|
}
|
1454
1774
|
/**
|
1455
1775
|
* ListByResourceGroupNext
|
@@ -1476,21 +1796,21 @@ const getOperationSpec$1 = {
|
|
1476
1796
|
httpMethod: "GET",
|
1477
1797
|
responses: {
|
1478
1798
|
200: {
|
1479
|
-
bodyMapper: ConfidentialLedger
|
1799
|
+
bodyMapper: ConfidentialLedger,
|
1480
1800
|
},
|
1481
1801
|
default: {
|
1482
|
-
bodyMapper: ErrorResponse
|
1483
|
-
}
|
1802
|
+
bodyMapper: ErrorResponse,
|
1803
|
+
},
|
1484
1804
|
},
|
1485
1805
|
queryParameters: [apiVersion],
|
1486
1806
|
urlParameters: [
|
1487
1807
|
$host,
|
1488
1808
|
subscriptionId,
|
1489
1809
|
resourceGroupName,
|
1490
|
-
ledgerName
|
1810
|
+
ledgerName,
|
1491
1811
|
],
|
1492
1812
|
headerParameters: [accept],
|
1493
|
-
serializer: serializer$2
|
1813
|
+
serializer: serializer$2,
|
1494
1814
|
};
|
1495
1815
|
const deleteOperationSpec$1 = {
|
1496
1816
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
|
@@ -1501,38 +1821,38 @@ const deleteOperationSpec$1 = {
|
|
1501
1821
|
202: {},
|
1502
1822
|
204: {},
|
1503
1823
|
default: {
|
1504
|
-
bodyMapper: ErrorResponse
|
1505
|
-
}
|
1824
|
+
bodyMapper: ErrorResponse,
|
1825
|
+
},
|
1506
1826
|
},
|
1507
1827
|
queryParameters: [apiVersion],
|
1508
1828
|
urlParameters: [
|
1509
1829
|
$host,
|
1510
1830
|
subscriptionId,
|
1511
1831
|
resourceGroupName,
|
1512
|
-
ledgerName
|
1832
|
+
ledgerName,
|
1513
1833
|
],
|
1514
1834
|
headerParameters: [accept],
|
1515
|
-
serializer: serializer$2
|
1835
|
+
serializer: serializer$2,
|
1516
1836
|
};
|
1517
1837
|
const createOperationSpec$1 = {
|
1518
1838
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
|
1519
1839
|
httpMethod: "PUT",
|
1520
1840
|
responses: {
|
1521
1841
|
200: {
|
1522
|
-
bodyMapper: ConfidentialLedger
|
1842
|
+
bodyMapper: ConfidentialLedger,
|
1523
1843
|
},
|
1524
1844
|
201: {
|
1525
|
-
bodyMapper: ConfidentialLedger
|
1845
|
+
bodyMapper: ConfidentialLedger,
|
1526
1846
|
},
|
1527
1847
|
202: {
|
1528
|
-
bodyMapper: ConfidentialLedger
|
1848
|
+
bodyMapper: ConfidentialLedger,
|
1529
1849
|
},
|
1530
1850
|
204: {
|
1531
|
-
bodyMapper: ConfidentialLedger
|
1851
|
+
bodyMapper: ConfidentialLedger,
|
1532
1852
|
},
|
1533
1853
|
default: {
|
1534
|
-
bodyMapper: ErrorResponse
|
1535
|
-
}
|
1854
|
+
bodyMapper: ErrorResponse,
|
1855
|
+
},
|
1536
1856
|
},
|
1537
1857
|
requestBody: confidentialLedger,
|
1538
1858
|
queryParameters: [apiVersion],
|
@@ -1540,31 +1860,31 @@ const createOperationSpec$1 = {
|
|
1540
1860
|
$host,
|
1541
1861
|
subscriptionId,
|
1542
1862
|
resourceGroupName,
|
1543
|
-
ledgerName
|
1863
|
+
ledgerName,
|
1544
1864
|
],
|
1545
1865
|
headerParameters: [accept, contentType],
|
1546
1866
|
mediaType: "json",
|
1547
|
-
serializer: serializer$2
|
1867
|
+
serializer: serializer$2,
|
1548
1868
|
};
|
1549
1869
|
const updateOperationSpec$1 = {
|
1550
1870
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
|
1551
1871
|
httpMethod: "PATCH",
|
1552
1872
|
responses: {
|
1553
1873
|
200: {
|
1554
|
-
bodyMapper: ConfidentialLedger
|
1874
|
+
bodyMapper: ConfidentialLedger,
|
1555
1875
|
},
|
1556
1876
|
201: {
|
1557
|
-
bodyMapper: ConfidentialLedger
|
1877
|
+
bodyMapper: ConfidentialLedger,
|
1558
1878
|
},
|
1559
1879
|
202: {
|
1560
|
-
bodyMapper: ConfidentialLedger
|
1880
|
+
bodyMapper: ConfidentialLedger,
|
1561
1881
|
},
|
1562
1882
|
204: {
|
1563
|
-
bodyMapper: ConfidentialLedger
|
1883
|
+
bodyMapper: ConfidentialLedger,
|
1564
1884
|
},
|
1565
1885
|
default: {
|
1566
|
-
bodyMapper: ErrorResponse
|
1567
|
-
}
|
1886
|
+
bodyMapper: ErrorResponse,
|
1887
|
+
},
|
1568
1888
|
},
|
1569
1889
|
requestBody: confidentialLedger,
|
1570
1890
|
queryParameters: [apiVersion],
|
@@ -1572,86 +1892,150 @@ const updateOperationSpec$1 = {
|
|
1572
1892
|
$host,
|
1573
1893
|
subscriptionId,
|
1574
1894
|
resourceGroupName,
|
1575
|
-
ledgerName
|
1895
|
+
ledgerName,
|
1576
1896
|
],
|
1577
1897
|
headerParameters: [accept, contentType],
|
1578
1898
|
mediaType: "json",
|
1579
|
-
serializer: serializer$2
|
1899
|
+
serializer: serializer$2,
|
1580
1900
|
};
|
1581
1901
|
const listByResourceGroupOperationSpec$1 = {
|
1582
1902
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers",
|
1583
1903
|
httpMethod: "GET",
|
1584
1904
|
responses: {
|
1585
1905
|
200: {
|
1586
|
-
bodyMapper: ConfidentialLedgerList
|
1906
|
+
bodyMapper: ConfidentialLedgerList,
|
1587
1907
|
},
|
1588
1908
|
default: {
|
1589
|
-
bodyMapper: ErrorResponse
|
1590
|
-
}
|
1909
|
+
bodyMapper: ErrorResponse,
|
1910
|
+
},
|
1591
1911
|
},
|
1592
1912
|
queryParameters: [apiVersion, filter],
|
1593
1913
|
urlParameters: [
|
1594
1914
|
$host,
|
1595
1915
|
subscriptionId,
|
1596
|
-
resourceGroupName
|
1916
|
+
resourceGroupName,
|
1597
1917
|
],
|
1598
1918
|
headerParameters: [accept],
|
1599
|
-
serializer: serializer$2
|
1919
|
+
serializer: serializer$2,
|
1600
1920
|
};
|
1601
1921
|
const listBySubscriptionOperationSpec$1 = {
|
1602
1922
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/ledgers/",
|
1603
1923
|
httpMethod: "GET",
|
1604
1924
|
responses: {
|
1605
1925
|
200: {
|
1606
|
-
bodyMapper: ConfidentialLedgerList
|
1926
|
+
bodyMapper: ConfidentialLedgerList,
|
1607
1927
|
},
|
1608
1928
|
default: {
|
1609
|
-
bodyMapper: ErrorResponse
|
1610
|
-
}
|
1929
|
+
bodyMapper: ErrorResponse,
|
1930
|
+
},
|
1611
1931
|
},
|
1612
1932
|
queryParameters: [apiVersion, filter],
|
1613
1933
|
urlParameters: [$host, subscriptionId],
|
1614
1934
|
headerParameters: [accept],
|
1615
|
-
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,
|
1616
2000
|
};
|
1617
2001
|
const listByResourceGroupNextOperationSpec$1 = {
|
1618
2002
|
path: "{nextLink}",
|
1619
2003
|
httpMethod: "GET",
|
1620
2004
|
responses: {
|
1621
2005
|
200: {
|
1622
|
-
bodyMapper: ConfidentialLedgerList
|
2006
|
+
bodyMapper: ConfidentialLedgerList,
|
1623
2007
|
},
|
1624
2008
|
default: {
|
1625
|
-
bodyMapper: ErrorResponse
|
1626
|
-
}
|
2009
|
+
bodyMapper: ErrorResponse,
|
2010
|
+
},
|
1627
2011
|
},
|
1628
2012
|
urlParameters: [
|
1629
2013
|
$host,
|
1630
2014
|
nextLink,
|
1631
2015
|
subscriptionId,
|
1632
|
-
resourceGroupName
|
2016
|
+
resourceGroupName,
|
1633
2017
|
],
|
1634
2018
|
headerParameters: [accept],
|
1635
|
-
serializer: serializer$2
|
2019
|
+
serializer: serializer$2,
|
1636
2020
|
};
|
1637
2021
|
const listBySubscriptionNextOperationSpec$1 = {
|
1638
2022
|
path: "{nextLink}",
|
1639
2023
|
httpMethod: "GET",
|
1640
2024
|
responses: {
|
1641
2025
|
200: {
|
1642
|
-
bodyMapper: ConfidentialLedgerList
|
2026
|
+
bodyMapper: ConfidentialLedgerList,
|
1643
2027
|
},
|
1644
2028
|
default: {
|
1645
|
-
bodyMapper: ErrorResponse
|
1646
|
-
}
|
2029
|
+
bodyMapper: ErrorResponse,
|
2030
|
+
},
|
1647
2031
|
},
|
1648
2032
|
urlParameters: [
|
1649
2033
|
$host,
|
1650
2034
|
nextLink,
|
1651
|
-
subscriptionId
|
2035
|
+
subscriptionId,
|
1652
2036
|
],
|
1653
2037
|
headerParameters: [accept],
|
1654
|
-
serializer: serializer$2
|
2038
|
+
serializer: serializer$2,
|
1655
2039
|
};
|
1656
2040
|
|
1657
2041
|
/*
|
@@ -1690,7 +2074,7 @@ class ManagedCCFOperationsImpl {
|
|
1690
2074
|
throw new Error("maxPageSize is not supported by this operation.");
|
1691
2075
|
}
|
1692
2076
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
1693
|
-
}
|
2077
|
+
},
|
1694
2078
|
};
|
1695
2079
|
}
|
1696
2080
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
@@ -1751,7 +2135,7 @@ class ManagedCCFOperationsImpl {
|
|
1751
2135
|
throw new Error("maxPageSize is not supported by this operation.");
|
1752
2136
|
}
|
1753
2137
|
return this.listBySubscriptionPagingPage(options, settings);
|
1754
|
-
}
|
2138
|
+
},
|
1755
2139
|
};
|
1756
2140
|
}
|
1757
2141
|
listBySubscriptionPagingPage(options, settings) {
|
@@ -1829,18 +2213,18 @@ class ManagedCCFOperationsImpl {
|
|
1829
2213
|
rawResponse: {
|
1830
2214
|
statusCode: currentRawResponse.status,
|
1831
2215
|
body: currentRawResponse.parsedBody,
|
1832
|
-
headers: currentRawResponse.headers.toJSON()
|
1833
|
-
}
|
2216
|
+
headers: currentRawResponse.headers.toJSON(),
|
2217
|
+
},
|
1834
2218
|
};
|
1835
2219
|
});
|
1836
2220
|
const lro = createLroSpec({
|
1837
2221
|
sendOperationFn,
|
1838
2222
|
args: { resourceGroupName, appName, options },
|
1839
|
-
spec: deleteOperationSpec
|
2223
|
+
spec: deleteOperationSpec,
|
1840
2224
|
});
|
1841
2225
|
const poller = yield coreLro.createHttpPoller(lro, {
|
1842
2226
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1843
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
2227
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1844
2228
|
});
|
1845
2229
|
yield poller.poll();
|
1846
2230
|
return poller;
|
@@ -1885,19 +2269,19 @@ class ManagedCCFOperationsImpl {
|
|
1885
2269
|
rawResponse: {
|
1886
2270
|
statusCode: currentRawResponse.status,
|
1887
2271
|
body: currentRawResponse.parsedBody,
|
1888
|
-
headers: currentRawResponse.headers.toJSON()
|
1889
|
-
}
|
2272
|
+
headers: currentRawResponse.headers.toJSON(),
|
2273
|
+
},
|
1890
2274
|
};
|
1891
2275
|
});
|
1892
2276
|
const lro = createLroSpec({
|
1893
2277
|
sendOperationFn,
|
1894
2278
|
args: { resourceGroupName, appName, managedCCF, options },
|
1895
|
-
spec: createOperationSpec
|
2279
|
+
spec: createOperationSpec,
|
1896
2280
|
});
|
1897
2281
|
const poller = yield coreLro.createHttpPoller(lro, {
|
1898
2282
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1899
2283
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1900
|
-
resourceLocationConfig: "azure-async-operation"
|
2284
|
+
resourceLocationConfig: "azure-async-operation",
|
1901
2285
|
});
|
1902
2286
|
yield poller.poll();
|
1903
2287
|
return poller;
|
@@ -1943,18 +2327,18 @@ class ManagedCCFOperationsImpl {
|
|
1943
2327
|
rawResponse: {
|
1944
2328
|
statusCode: currentRawResponse.status,
|
1945
2329
|
body: currentRawResponse.parsedBody,
|
1946
|
-
headers: currentRawResponse.headers.toJSON()
|
1947
|
-
}
|
2330
|
+
headers: currentRawResponse.headers.toJSON(),
|
2331
|
+
},
|
1948
2332
|
};
|
1949
2333
|
});
|
1950
2334
|
const lro = createLroSpec({
|
1951
2335
|
sendOperationFn,
|
1952
2336
|
args: { resourceGroupName, appName, managedCCF, options },
|
1953
|
-
spec: updateOperationSpec
|
2337
|
+
spec: updateOperationSpec,
|
1954
2338
|
});
|
1955
2339
|
const poller = yield coreLro.createHttpPoller(lro, {
|
1956
2340
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1957
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
2341
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1958
2342
|
});
|
1959
2343
|
yield poller.poll();
|
1960
2344
|
return poller;
|
@@ -1988,6 +2372,120 @@ class ManagedCCFOperationsImpl {
|
|
1988
2372
|
_listBySubscription(options) {
|
1989
2373
|
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
1990
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
|
+
}
|
1991
2489
|
/**
|
1992
2490
|
* ListByResourceGroupNext
|
1993
2491
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
@@ -2013,21 +2511,21 @@ const getOperationSpec = {
|
|
2013
2511
|
httpMethod: "GET",
|
2014
2512
|
responses: {
|
2015
2513
|
200: {
|
2016
|
-
bodyMapper: ManagedCCF
|
2514
|
+
bodyMapper: ManagedCCF,
|
2017
2515
|
},
|
2018
2516
|
default: {
|
2019
|
-
bodyMapper: ErrorResponse
|
2020
|
-
}
|
2517
|
+
bodyMapper: ErrorResponse,
|
2518
|
+
},
|
2021
2519
|
},
|
2022
2520
|
queryParameters: [apiVersion],
|
2023
2521
|
urlParameters: [
|
2024
2522
|
$host,
|
2025
2523
|
subscriptionId,
|
2026
2524
|
resourceGroupName,
|
2027
|
-
appName
|
2525
|
+
appName,
|
2028
2526
|
],
|
2029
2527
|
headerParameters: [accept],
|
2030
|
-
serializer: serializer$1
|
2528
|
+
serializer: serializer$1,
|
2031
2529
|
};
|
2032
2530
|
const deleteOperationSpec = {
|
2033
2531
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
@@ -2038,38 +2536,38 @@ const deleteOperationSpec = {
|
|
2038
2536
|
202: {},
|
2039
2537
|
204: {},
|
2040
2538
|
default: {
|
2041
|
-
bodyMapper: ErrorResponse
|
2042
|
-
}
|
2539
|
+
bodyMapper: ErrorResponse,
|
2540
|
+
},
|
2043
2541
|
},
|
2044
2542
|
queryParameters: [apiVersion],
|
2045
2543
|
urlParameters: [
|
2046
2544
|
$host,
|
2047
2545
|
subscriptionId,
|
2048
2546
|
resourceGroupName,
|
2049
|
-
appName
|
2547
|
+
appName,
|
2050
2548
|
],
|
2051
2549
|
headerParameters: [accept],
|
2052
|
-
serializer: serializer$1
|
2550
|
+
serializer: serializer$1,
|
2053
2551
|
};
|
2054
2552
|
const createOperationSpec = {
|
2055
2553
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
2056
2554
|
httpMethod: "PUT",
|
2057
2555
|
responses: {
|
2058
2556
|
200: {
|
2059
|
-
bodyMapper: ManagedCCF
|
2557
|
+
bodyMapper: ManagedCCF,
|
2060
2558
|
},
|
2061
2559
|
201: {
|
2062
|
-
bodyMapper: ManagedCCF
|
2560
|
+
bodyMapper: ManagedCCF,
|
2063
2561
|
},
|
2064
2562
|
202: {
|
2065
|
-
bodyMapper: ManagedCCF
|
2563
|
+
bodyMapper: ManagedCCF,
|
2066
2564
|
},
|
2067
2565
|
204: {
|
2068
|
-
bodyMapper: ManagedCCF
|
2566
|
+
bodyMapper: ManagedCCF,
|
2069
2567
|
},
|
2070
2568
|
default: {
|
2071
|
-
bodyMapper: ErrorResponse
|
2072
|
-
}
|
2569
|
+
bodyMapper: ErrorResponse,
|
2570
|
+
},
|
2073
2571
|
},
|
2074
2572
|
requestBody: managedCCF,
|
2075
2573
|
queryParameters: [apiVersion],
|
@@ -2077,23 +2575,31 @@ const createOperationSpec = {
|
|
2077
2575
|
$host,
|
2078
2576
|
subscriptionId,
|
2079
2577
|
resourceGroupName,
|
2080
|
-
appName
|
2578
|
+
appName,
|
2081
2579
|
],
|
2082
2580
|
headerParameters: [accept, contentType],
|
2083
2581
|
mediaType: "json",
|
2084
|
-
serializer: serializer$1
|
2582
|
+
serializer: serializer$1,
|
2085
2583
|
};
|
2086
2584
|
const updateOperationSpec = {
|
2087
2585
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
2088
2586
|
httpMethod: "PATCH",
|
2089
2587
|
responses: {
|
2090
|
-
200: {
|
2091
|
-
|
2092
|
-
|
2093
|
-
|
2588
|
+
200: {
|
2589
|
+
bodyMapper: ManagedCCF,
|
2590
|
+
},
|
2591
|
+
201: {
|
2592
|
+
bodyMapper: ManagedCCF,
|
2593
|
+
},
|
2594
|
+
202: {
|
2595
|
+
bodyMapper: ManagedCCF,
|
2596
|
+
},
|
2597
|
+
204: {
|
2598
|
+
bodyMapper: ManagedCCF,
|
2599
|
+
},
|
2094
2600
|
default: {
|
2095
|
-
bodyMapper: ErrorResponse
|
2096
|
-
}
|
2601
|
+
bodyMapper: ErrorResponse,
|
2602
|
+
},
|
2097
2603
|
},
|
2098
2604
|
requestBody: managedCCF,
|
2099
2605
|
queryParameters: [apiVersion],
|
@@ -2101,86 +2607,150 @@ const updateOperationSpec = {
|
|
2101
2607
|
$host,
|
2102
2608
|
subscriptionId,
|
2103
2609
|
resourceGroupName,
|
2104
|
-
appName
|
2610
|
+
appName,
|
2105
2611
|
],
|
2106
2612
|
headerParameters: [accept, contentType],
|
2107
2613
|
mediaType: "json",
|
2108
|
-
serializer: serializer$1
|
2614
|
+
serializer: serializer$1,
|
2109
2615
|
};
|
2110
2616
|
const listByResourceGroupOperationSpec = {
|
2111
2617
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs",
|
2112
2618
|
httpMethod: "GET",
|
2113
2619
|
responses: {
|
2114
2620
|
200: {
|
2115
|
-
bodyMapper: ManagedCCFList
|
2621
|
+
bodyMapper: ManagedCCFList,
|
2116
2622
|
},
|
2117
2623
|
default: {
|
2118
|
-
bodyMapper: ErrorResponse
|
2119
|
-
}
|
2624
|
+
bodyMapper: ErrorResponse,
|
2625
|
+
},
|
2120
2626
|
},
|
2121
2627
|
queryParameters: [apiVersion, filter],
|
2122
2628
|
urlParameters: [
|
2123
2629
|
$host,
|
2124
2630
|
subscriptionId,
|
2125
|
-
resourceGroupName
|
2631
|
+
resourceGroupName,
|
2126
2632
|
],
|
2127
2633
|
headerParameters: [accept],
|
2128
|
-
serializer: serializer$1
|
2634
|
+
serializer: serializer$1,
|
2129
2635
|
};
|
2130
2636
|
const listBySubscriptionOperationSpec = {
|
2131
2637
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/managedCCFs/",
|
2132
2638
|
httpMethod: "GET",
|
2133
2639
|
responses: {
|
2134
2640
|
200: {
|
2135
|
-
bodyMapper: ManagedCCFList
|
2641
|
+
bodyMapper: ManagedCCFList,
|
2136
2642
|
},
|
2137
2643
|
default: {
|
2138
|
-
bodyMapper: ErrorResponse
|
2139
|
-
}
|
2644
|
+
bodyMapper: ErrorResponse,
|
2645
|
+
},
|
2140
2646
|
},
|
2141
2647
|
queryParameters: [apiVersion, filter],
|
2142
2648
|
urlParameters: [$host, subscriptionId],
|
2143
2649
|
headerParameters: [accept],
|
2144
|
-
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,
|
2145
2715
|
};
|
2146
2716
|
const listByResourceGroupNextOperationSpec = {
|
2147
2717
|
path: "{nextLink}",
|
2148
2718
|
httpMethod: "GET",
|
2149
2719
|
responses: {
|
2150
2720
|
200: {
|
2151
|
-
bodyMapper: ManagedCCFList
|
2721
|
+
bodyMapper: ManagedCCFList,
|
2152
2722
|
},
|
2153
2723
|
default: {
|
2154
|
-
bodyMapper: ErrorResponse
|
2155
|
-
}
|
2724
|
+
bodyMapper: ErrorResponse,
|
2725
|
+
},
|
2156
2726
|
},
|
2157
2727
|
urlParameters: [
|
2158
2728
|
$host,
|
2159
2729
|
nextLink,
|
2160
2730
|
subscriptionId,
|
2161
|
-
resourceGroupName
|
2731
|
+
resourceGroupName,
|
2162
2732
|
],
|
2163
2733
|
headerParameters: [accept],
|
2164
|
-
serializer: serializer$1
|
2734
|
+
serializer: serializer$1,
|
2165
2735
|
};
|
2166
2736
|
const listBySubscriptionNextOperationSpec = {
|
2167
2737
|
path: "{nextLink}",
|
2168
2738
|
httpMethod: "GET",
|
2169
2739
|
responses: {
|
2170
2740
|
200: {
|
2171
|
-
bodyMapper: ManagedCCFList
|
2741
|
+
bodyMapper: ManagedCCFList,
|
2172
2742
|
},
|
2173
2743
|
default: {
|
2174
|
-
bodyMapper: ErrorResponse
|
2175
|
-
}
|
2744
|
+
bodyMapper: ErrorResponse,
|
2745
|
+
},
|
2176
2746
|
},
|
2177
2747
|
urlParameters: [
|
2178
2748
|
$host,
|
2179
2749
|
nextLink,
|
2180
|
-
subscriptionId
|
2750
|
+
subscriptionId,
|
2181
2751
|
],
|
2182
2752
|
headerParameters: [accept],
|
2183
|
-
serializer: serializer$1
|
2753
|
+
serializer: serializer$1,
|
2184
2754
|
};
|
2185
2755
|
|
2186
2756
|
/*
|
@@ -2211,14 +2781,14 @@ class ConfidentialLedgerClient extends coreClient__namespace.ServiceClient {
|
|
2211
2781
|
}
|
2212
2782
|
const defaults = {
|
2213
2783
|
requestContentType: "application/json; charset=utf-8",
|
2214
|
-
credential: credentials
|
2784
|
+
credential: credentials,
|
2215
2785
|
};
|
2216
2786
|
const packageDetails = `azsdk-js-arm-confidentialledger/1.3.0-beta.2`;
|
2217
2787
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
2218
2788
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
2219
2789
|
: `${packageDetails}`;
|
2220
2790
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
2221
|
-
userAgentPrefix
|
2791
|
+
userAgentPrefix,
|
2222
2792
|
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
2223
2793
|
super(optionsWithDefaults);
|
2224
2794
|
let bearerTokenAuthenticationPolicyFound = false;
|
@@ -2232,21 +2802,21 @@ class ConfidentialLedgerClient extends coreClient__namespace.ServiceClient {
|
|
2232
2802
|
options.pipeline.getOrderedPolicies().length == 0 ||
|
2233
2803
|
!bearerTokenAuthenticationPolicyFound) {
|
2234
2804
|
this.pipeline.removePolicy({
|
2235
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
2805
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
|
2236
2806
|
});
|
2237
2807
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
2238
2808
|
credential: credentials,
|
2239
2809
|
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
2240
2810
|
challengeCallbacks: {
|
2241
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
2242
|
-
}
|
2811
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
2812
|
+
},
|
2243
2813
|
}));
|
2244
2814
|
}
|
2245
2815
|
// Parameter assignments
|
2246
2816
|
this.subscriptionId = subscriptionId;
|
2247
2817
|
// Assigning values to Constant parameters
|
2248
2818
|
this.$host = options.$host || "https://management.azure.com";
|
2249
|
-
this.apiVersion = options.apiVersion || "2023-
|
2819
|
+
this.apiVersion = options.apiVersion || "2023-06-28-preview";
|
2250
2820
|
this.operations = new OperationsImpl(this);
|
2251
2821
|
this.ledger = new LedgerImpl(this);
|
2252
2822
|
this.managedCCFOperations = new ManagedCCFOperationsImpl(this);
|
@@ -2275,7 +2845,7 @@ class ConfidentialLedgerClient extends coreClient__namespace.ServiceClient {
|
|
2275
2845
|
}
|
2276
2846
|
return next(request);
|
2277
2847
|
});
|
2278
|
-
}
|
2848
|
+
},
|
2279
2849
|
};
|
2280
2850
|
this.pipeline.addPolicy(apiVersionPolicy);
|
2281
2851
|
}
|
@@ -2295,18 +2865,18 @@ const checkNameAvailabilityOperationSpec = {
|
|
2295
2865
|
httpMethod: "POST",
|
2296
2866
|
responses: {
|
2297
2867
|
200: {
|
2298
|
-
bodyMapper: CheckNameAvailabilityResponse
|
2868
|
+
bodyMapper: CheckNameAvailabilityResponse,
|
2299
2869
|
},
|
2300
2870
|
default: {
|
2301
|
-
bodyMapper: ErrorResponse
|
2302
|
-
}
|
2871
|
+
bodyMapper: ErrorResponse,
|
2872
|
+
},
|
2303
2873
|
},
|
2304
2874
|
requestBody: nameAvailabilityRequest,
|
2305
2875
|
queryParameters: [apiVersion],
|
2306
2876
|
urlParameters: [$host, subscriptionId],
|
2307
2877
|
headerParameters: [accept, contentType],
|
2308
2878
|
mediaType: "json",
|
2309
|
-
serializer
|
2879
|
+
serializer,
|
2310
2880
|
};
|
2311
2881
|
|
2312
2882
|
exports.ConfidentialLedgerClient = ConfidentialLedgerClient;
|