@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.
Files changed (102) hide show
  1. package/CHANGELOG.md +58 -1
  2. package/LICENSE +1 -1
  3. package/dist/index.js +1013 -434
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/checkNameAvailabilitySample.js +3 -3
  8. package/dist-esm/samples-dev/checkNameAvailabilitySample.js.map +1 -1
  9. package/dist-esm/samples-dev/ledgerBackupSample.d.ts +2 -0
  10. package/dist-esm/samples-dev/ledgerBackupSample.d.ts.map +1 -0
  11. package/dist-esm/samples-dev/ledgerBackupSample.js +44 -0
  12. package/dist-esm/samples-dev/ledgerBackupSample.js.map +1 -0
  13. package/dist-esm/samples-dev/ledgerCreateSample.js +9 -8
  14. package/dist-esm/samples-dev/ledgerCreateSample.js.map +1 -1
  15. package/dist-esm/samples-dev/ledgerDeleteSample.js +1 -1
  16. package/dist-esm/samples-dev/ledgerGetSample.js +1 -1
  17. package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js +7 -5
  18. package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js.map +1 -1
  19. package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js +7 -5
  20. package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js.map +1 -1
  21. package/dist-esm/samples-dev/ledgerRestoreSample.d.ts +2 -0
  22. package/dist-esm/samples-dev/ledgerRestoreSample.d.ts.map +1 -0
  23. package/dist-esm/samples-dev/ledgerRestoreSample.js +45 -0
  24. package/dist-esm/samples-dev/ledgerRestoreSample.js.map +1 -0
  25. package/dist-esm/samples-dev/ledgerUpdateSample.js +9 -9
  26. package/dist-esm/samples-dev/ledgerUpdateSample.js.map +1 -1
  27. package/dist-esm/samples-dev/managedCcfBackupSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/managedCcfBackupSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/managedCcfBackupSample.js +44 -0
  30. package/dist-esm/samples-dev/managedCcfBackupSample.js.map +1 -0
  31. package/dist-esm/samples-dev/managedCcfCreateSample.js +7 -7
  32. package/dist-esm/samples-dev/managedCcfCreateSample.js.map +1 -1
  33. package/dist-esm/samples-dev/managedCcfDeleteSample.js +1 -1
  34. package/dist-esm/samples-dev/managedCcfGetSample.js +1 -1
  35. package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js +7 -5
  36. package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js.map +1 -1
  37. package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js +7 -5
  38. package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js.map +1 -1
  39. package/dist-esm/samples-dev/managedCcfRestoreSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/managedCcfRestoreSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/managedCcfRestoreSample.js +45 -0
  42. package/dist-esm/samples-dev/managedCcfRestoreSample.js.map +1 -0
  43. package/dist-esm/samples-dev/managedCcfUpdateSample.js +5 -5
  44. package/dist-esm/samples-dev/managedCcfUpdateSample.js.map +1 -1
  45. package/dist-esm/samples-dev/operationsListSample.js +7 -5
  46. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  47. package/dist-esm/src/confidentialLedgerClient.d.ts.map +1 -1
  48. package/dist-esm/src/confidentialLedgerClient.js +13 -13
  49. package/dist-esm/src/confidentialLedgerClient.js.map +1 -1
  50. package/dist-esm/src/lroImpl.js +1 -1
  51. package/dist-esm/src/models/index.d.ts +149 -24
  52. package/dist-esm/src/models/index.d.ts.map +1 -1
  53. package/dist-esm/src/models/index.js +10 -0
  54. package/dist-esm/src/models/index.js.map +1 -1
  55. package/dist-esm/src/models/mappers.d.ts +8 -0
  56. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  57. package/dist-esm/src/models/mappers.js +385 -213
  58. package/dist-esm/src/models/mappers.js.map +1 -1
  59. package/dist-esm/src/models/parameters.d.ts +4 -0
  60. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  61. package/dist-esm/src/models/parameters.js +55 -39
  62. package/dist-esm/src/models/parameters.js.map +1 -1
  63. package/dist-esm/src/operations/ledger.d.ts +33 -1
  64. package/dist-esm/src/operations/ledger.d.ts.map +1 -1
  65. package/dist-esm/src/operations/ledger.js +249 -67
  66. package/dist-esm/src/operations/ledger.js.map +1 -1
  67. package/dist-esm/src/operations/managedCCFOperations.d.ts +35 -3
  68. package/dist-esm/src/operations/managedCCFOperations.d.ts.map +1 -1
  69. package/dist-esm/src/operations/managedCCFOperations.js +257 -67
  70. package/dist-esm/src/operations/managedCCFOperations.js.map +1 -1
  71. package/dist-esm/src/operations/operations.js +15 -13
  72. package/dist-esm/src/operations/operations.js.map +1 -1
  73. package/dist-esm/src/operationsInterfaces/ledger.d.ts +33 -1
  74. package/dist-esm/src/operationsInterfaces/ledger.d.ts.map +1 -1
  75. package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts +35 -3
  76. package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts.map +1 -1
  77. package/dist-esm/src/pagingHelper.js.map +1 -1
  78. package/dist-esm/test/confidentialledger_operations_test.spec.d.ts +4 -0
  79. package/dist-esm/test/confidentialledger_operations_test.spec.d.ts.map +1 -0
  80. package/dist-esm/test/confidentialledger_operations_test.spec.js +71 -0
  81. package/dist-esm/test/confidentialledger_operations_test.spec.js.map +1 -0
  82. package/package.json +17 -22
  83. package/review/arm-confidentialledger.api.md +107 -2
  84. package/src/confidentialLedgerClient.ts +26 -26
  85. package/src/lroImpl.ts +3 -3
  86. package/src/models/index.ts +158 -9
  87. package/src/models/mappers.ts +396 -216
  88. package/src/models/parameters.ts +64 -40
  89. package/src/operations/ledger.ts +370 -124
  90. package/src/operations/managedCCFOperations.ts +393 -127
  91. package/src/operations/operations.ts +16 -16
  92. package/src/operationsInterfaces/ledger.ts +75 -10
  93. package/src/operationsInterfaces/managedCCFOperations.ts +86 -12
  94. package/src/operationsInterfaces/operations.ts +2 -2
  95. package/src/pagingHelper.ts +1 -1
  96. package/types/arm-confidentialledger.d.ts +211 -3
  97. package/types/tsdoc-metadata.json +1 -1
  98. package/dist-esm/test/sampleTest.d.ts +0 -2
  99. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  100. package/dist-esm/test/sampleTest.js +0 -38
  101. package/dist-esm/test/sampleTest.js.map +0 -1
  102. package/rollup.config.js +0 -122
@@ -58,6 +58,17 @@ export interface ConfidentialLedger extends TrackedResource {
58
58
  properties?: LedgerProperties;
59
59
  }
60
60
 
61
+ // @public
62
+ export interface ConfidentialLedgerBackup {
63
+ restoreRegion?: string;
64
+ uri: string;
65
+ }
66
+
67
+ // @public
68
+ export interface ConfidentialLedgerBackupResponse {
69
+ readonly message?: string;
70
+ }
71
+
61
72
  // @public (undocumented)
62
73
  export class ConfidentialLedgerClient extends coreClient.ServiceClient {
63
74
  // (undocumented)
@@ -89,6 +100,18 @@ export interface ConfidentialLedgerList {
89
100
  value?: ConfidentialLedger[];
90
101
  }
91
102
 
103
+ // @public
104
+ export interface ConfidentialLedgerRestore {
105
+ fileShareName: string;
106
+ restoreRegion: string;
107
+ uri: string;
108
+ }
109
+
110
+ // @public
111
+ export interface ConfidentialLedgerRestoreResponse {
112
+ readonly message?: string;
113
+ }
114
+
92
115
  // @public
93
116
  export type CreatedByType = string;
94
117
 
@@ -148,6 +171,13 @@ export enum KnownLedgerRoleName {
148
171
  Reader = "Reader"
149
172
  }
150
173
 
174
+ // @public
175
+ export enum KnownLedgerSku {
176
+ Basic = "Basic",
177
+ Standard = "Standard",
178
+ Unknown = "Unknown"
179
+ }
180
+
151
181
  // @public
152
182
  export enum KnownLedgerType {
153
183
  Private = "Private",
@@ -180,10 +210,14 @@ export type LanguageRuntime = string;
180
210
 
181
211
  // @public
182
212
  export interface Ledger {
213
+ beginBackup(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedgerBackup, options?: LedgerBackupOptionalParams): Promise<SimplePollerLike<OperationState<LedgerBackupResponse>, LedgerBackupResponse>>;
214
+ beginBackupAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedgerBackup, options?: LedgerBackupOptionalParams): Promise<LedgerBackupResponse>;
183
215
  beginCreate(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerCreateOptionalParams): Promise<SimplePollerLike<OperationState<LedgerCreateResponse>, LedgerCreateResponse>>;
184
216
  beginCreateAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerCreateOptionalParams): Promise<LedgerCreateResponse>;
185
217
  beginDelete(resourceGroupName: string, ledgerName: string, options?: LedgerDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
186
218
  beginDeleteAndWait(resourceGroupName: string, ledgerName: string, options?: LedgerDeleteOptionalParams): Promise<void>;
219
+ beginRestore(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedgerRestore, options?: LedgerRestoreOptionalParams): Promise<SimplePollerLike<OperationState<LedgerRestoreResponse>, LedgerRestoreResponse>>;
220
+ beginRestoreAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedgerRestore, options?: LedgerRestoreOptionalParams): Promise<LedgerRestoreResponse>;
187
221
  beginUpdate(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerUpdateOptionalParams): Promise<SimplePollerLike<OperationState<LedgerUpdateResponse>, LedgerUpdateResponse>>;
188
222
  beginUpdateAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerUpdateOptionalParams): Promise<LedgerUpdateResponse>;
189
223
  get(resourceGroupName: string, ledgerName: string, options?: LedgerGetOptionalParams): Promise<LedgerGetResponse>;
@@ -191,6 +225,15 @@ export interface Ledger {
191
225
  listBySubscription(options?: LedgerListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ConfidentialLedger>;
192
226
  }
193
227
 
228
+ // @public
229
+ export interface LedgerBackupOptionalParams extends coreClient.OperationOptions {
230
+ resumeFrom?: string;
231
+ updateIntervalInMs?: number;
232
+ }
233
+
234
+ // @public
235
+ export type LedgerBackupResponse = ConfidentialLedgerBackupResponse;
236
+
194
237
  // @public
195
238
  export interface LedgerCreateOptionalParams extends coreClient.OperationOptions {
196
239
  resumeFrom?: string;
@@ -250,15 +293,28 @@ export interface LedgerProperties {
250
293
  readonly identityServiceUri?: string;
251
294
  readonly ledgerInternalNamespace?: string;
252
295
  readonly ledgerName?: string;
296
+ ledgerSku?: LedgerSku;
253
297
  ledgerType?: LedgerType;
254
298
  readonly ledgerUri?: string;
255
299
  readonly provisioningState?: ProvisioningState;
256
300
  runningState?: RunningState;
257
301
  }
258
302
 
303
+ // @public
304
+ export interface LedgerRestoreOptionalParams extends coreClient.OperationOptions {
305
+ resumeFrom?: string;
306
+ updateIntervalInMs?: number;
307
+ }
308
+
309
+ // @public
310
+ export type LedgerRestoreResponse = ConfidentialLedgerRestoreResponse;
311
+
259
312
  // @public
260
313
  export type LedgerRoleName = string;
261
314
 
315
+ // @public
316
+ export type LedgerSku = string;
317
+
262
318
  // @public
263
319
  export type LedgerType = string;
264
320
 
@@ -276,6 +332,26 @@ export interface ManagedCCF extends TrackedResource {
276
332
  properties?: ManagedCCFProperties;
277
333
  }
278
334
 
335
+ // @public
336
+ export interface ManagedCCFBackup {
337
+ restoreRegion?: string;
338
+ uri: string;
339
+ }
340
+
341
+ // @public
342
+ export type ManagedCCFBackupOperationResponse = ManagedCCFBackupResponse;
343
+
344
+ // @public
345
+ export interface ManagedCCFBackupOptionalParams extends coreClient.OperationOptions {
346
+ resumeFrom?: string;
347
+ updateIntervalInMs?: number;
348
+ }
349
+
350
+ // @public
351
+ export interface ManagedCCFBackupResponse {
352
+ readonly message?: string;
353
+ }
354
+
279
355
  // @public
280
356
  export interface ManagedCCFCreateOptionalParams extends coreClient.OperationOptions {
281
357
  resumeFrom?: string;
@@ -336,12 +412,16 @@ export type ManagedCCFListBySubscriptionResponse = ManagedCCFList;
336
412
 
337
413
  // @public
338
414
  export interface ManagedCCFOperations {
415
+ beginBackup(resourceGroupName: string, appName: string, managedCCF: ManagedCCFBackup, options?: ManagedCCFBackupOptionalParams): Promise<SimplePollerLike<OperationState<ManagedCCFBackupOperationResponse>, ManagedCCFBackupOperationResponse>>;
416
+ beginBackupAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCFBackup, options?: ManagedCCFBackupOptionalParams): Promise<ManagedCCFBackupOperationResponse>;
339
417
  beginCreate(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFCreateOptionalParams): Promise<SimplePollerLike<OperationState<ManagedCCFCreateResponse>, ManagedCCFCreateResponse>>;
340
418
  beginCreateAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFCreateOptionalParams): Promise<ManagedCCFCreateResponse>;
341
419
  beginDelete(resourceGroupName: string, appName: string, options?: ManagedCCFDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
342
420
  beginDeleteAndWait(resourceGroupName: string, appName: string, options?: ManagedCCFDeleteOptionalParams): Promise<void>;
343
- beginUpdate(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
344
- beginUpdateAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<void>;
421
+ beginRestore(resourceGroupName: string, appName: string, managedCCF: ManagedCCFRestore, options?: ManagedCCFRestoreOptionalParams): Promise<SimplePollerLike<OperationState<ManagedCCFRestoreOperationResponse>, ManagedCCFRestoreOperationResponse>>;
422
+ beginRestoreAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCFRestore, options?: ManagedCCFRestoreOptionalParams): Promise<ManagedCCFRestoreOperationResponse>;
423
+ beginUpdate(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ManagedCCFUpdateResponse>, ManagedCCFUpdateResponse>>;
424
+ beginUpdateAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<ManagedCCFUpdateResponse>;
345
425
  get(resourceGroupName: string, appName: string, options?: ManagedCCFGetOptionalParams): Promise<ManagedCCFGetResponse>;
346
426
  listByResourceGroup(resourceGroupName: string, options?: ManagedCCFListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ManagedCCF>;
347
427
  listBySubscription(options?: ManagedCCFListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ManagedCCF>;
@@ -356,6 +436,28 @@ export interface ManagedCCFProperties {
356
436
  memberIdentityCertificates?: MemberIdentityCertificate[];
357
437
  nodeCount?: number;
358
438
  readonly provisioningState?: ProvisioningState;
439
+ runningState?: RunningState;
440
+ }
441
+
442
+ // @public
443
+ export interface ManagedCCFRestore {
444
+ fileShareName: string;
445
+ restoreRegion: string;
446
+ uri: string;
447
+ }
448
+
449
+ // @public
450
+ export type ManagedCCFRestoreOperationResponse = ManagedCCFRestoreResponse;
451
+
452
+ // @public
453
+ export interface ManagedCCFRestoreOptionalParams extends coreClient.OperationOptions {
454
+ resumeFrom?: string;
455
+ updateIntervalInMs?: number;
456
+ }
457
+
458
+ // @public
459
+ export interface ManagedCCFRestoreResponse {
460
+ readonly message?: string;
359
461
  }
360
462
 
361
463
  // @public
@@ -364,6 +466,9 @@ export interface ManagedCCFUpdateOptionalParams extends coreClient.OperationOpti
364
466
  updateIntervalInMs?: number;
365
467
  }
366
468
 
469
+ // @public
470
+ export type ManagedCCFUpdateResponse = ManagedCCF;
471
+
367
472
  // @public
368
473
  export interface MemberIdentityCertificate {
369
474
  certificate?: string;
@@ -11,18 +11,18 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
11
  import {
12
12
  PipelineRequest,
13
13
  PipelineResponse,
14
- SendRequest
14
+ SendRequest,
15
15
  } from "@azure/core-rest-pipeline";
16
16
  import * as coreAuth from "@azure/core-auth";
17
17
  import {
18
18
  OperationsImpl,
19
19
  LedgerImpl,
20
- ManagedCCFOperationsImpl
20
+ ManagedCCFOperationsImpl,
21
21
  } from "./operations";
22
22
  import {
23
23
  Operations,
24
24
  Ledger,
25
- ManagedCCFOperations
25
+ ManagedCCFOperations,
26
26
  } from "./operationsInterfaces";
27
27
  import * as Parameters from "./models/parameters";
28
28
  import * as Mappers from "./models/mappers";
@@ -30,7 +30,7 @@ import {
30
30
  ConfidentialLedgerClientOptionalParams,
31
31
  CheckNameAvailabilityRequest,
32
32
  CheckNameAvailabilityOptionalParams,
33
- CheckNameAvailabilityOperationResponse
33
+ CheckNameAvailabilityOperationResponse,
34
34
  } from "./models";
35
35
 
36
36
  export class ConfidentialLedgerClient extends coreClient.ServiceClient {
@@ -47,7 +47,7 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
47
47
  constructor(
48
48
  credentials: coreAuth.TokenCredential,
49
49
  subscriptionId: string,
50
- options?: ConfidentialLedgerClientOptionalParams
50
+ options?: ConfidentialLedgerClientOptionalParams,
51
51
  ) {
52
52
  if (credentials === undefined) {
53
53
  throw new Error("'credentials' cannot be null");
@@ -62,10 +62,10 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
62
62
  }
63
63
  const defaults: ConfidentialLedgerClientOptionalParams = {
64
64
  requestContentType: "application/json; charset=utf-8",
65
- credential: credentials
65
+ credential: credentials,
66
66
  };
67
67
 
68
- const packageDetails = `azsdk-js-arm-confidentialledger/1.3.0-beta.1`;
68
+ const packageDetails = `azsdk-js-arm-confidentialledger/1.3.0-beta.2`;
69
69
  const userAgentPrefix =
70
70
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
71
71
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -75,20 +75,21 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
75
75
  ...defaults,
76
76
  ...options,
77
77
  userAgentOptions: {
78
- userAgentPrefix
78
+ userAgentPrefix,
79
79
  },
80
80
  endpoint:
81
- options.endpoint ?? options.baseUri ?? "https://management.azure.com"
81
+ options.endpoint ?? options.baseUri ?? "https://management.azure.com",
82
82
  };
83
83
  super(optionsWithDefaults);
84
84
 
85
85
  let bearerTokenAuthenticationPolicyFound: boolean = false;
86
86
  if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
87
- const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
87
+ const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
88
+ options.pipeline.getOrderedPolicies();
88
89
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
89
90
  (pipelinePolicy) =>
90
91
  pipelinePolicy.name ===
91
- coreRestPipeline.bearerTokenAuthenticationPolicyName
92
+ coreRestPipeline.bearerTokenAuthenticationPolicyName,
92
93
  );
93
94
  }
94
95
  if (
@@ -98,7 +99,7 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
98
99
  !bearerTokenAuthenticationPolicyFound
99
100
  ) {
100
101
  this.pipeline.removePolicy({
101
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
102
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
102
103
  });
103
104
  this.pipeline.addPolicy(
104
105
  coreRestPipeline.bearerTokenAuthenticationPolicy({
@@ -108,9 +109,9 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
108
109
  `${optionsWithDefaults.endpoint}/.default`,
109
110
  challengeCallbacks: {
110
111
  authorizeRequestOnChallenge:
111
- coreClient.authorizeRequestOnClaimChallenge
112
- }
113
- })
112
+ coreClient.authorizeRequestOnClaimChallenge,
113
+ },
114
+ }),
114
115
  );
115
116
  }
116
117
  // Parameter assignments
@@ -118,7 +119,7 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
118
119
 
119
120
  // Assigning values to Constant parameters
120
121
  this.$host = options.$host || "https://management.azure.com";
121
- this.apiVersion = options.apiVersion || "2023-01-26-preview";
122
+ this.apiVersion = options.apiVersion || "2023-06-28-preview";
122
123
  this.operations = new OperationsImpl(this);
123
124
  this.ledger = new LedgerImpl(this);
124
125
  this.managedCCFOperations = new ManagedCCFOperationsImpl(this);
@@ -134,7 +135,7 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
134
135
  name: "CustomApiVersionPolicy",
135
136
  async sendRequest(
136
137
  request: PipelineRequest,
137
- next: SendRequest
138
+ next: SendRequest,
138
139
  ): Promise<PipelineResponse> {
139
140
  const param = request.url.split("?");
140
141
  if (param.length > 1) {
@@ -148,7 +149,7 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
148
149
  request.url = param[0] + "?" + newParams.join("&");
149
150
  }
150
151
  return next(request);
151
- }
152
+ },
152
153
  };
153
154
  this.pipeline.addPolicy(apiVersionPolicy);
154
155
  }
@@ -160,11 +161,11 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
160
161
  */
161
162
  checkNameAvailability(
162
163
  nameAvailabilityRequest: CheckNameAvailabilityRequest,
163
- options?: CheckNameAvailabilityOptionalParams
164
+ options?: CheckNameAvailabilityOptionalParams,
164
165
  ): Promise<CheckNameAvailabilityOperationResponse> {
165
166
  return this.sendOperationRequest(
166
167
  { nameAvailabilityRequest, options },
167
- checkNameAvailabilityOperationSpec
168
+ checkNameAvailabilityOperationSpec,
168
169
  );
169
170
  }
170
171
 
@@ -176,21 +177,20 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
176
177
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
177
178
 
178
179
  const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
179
- path:
180
- "/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/checkNameAvailability",
180
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/checkNameAvailability",
181
181
  httpMethod: "POST",
182
182
  responses: {
183
183
  200: {
184
- bodyMapper: Mappers.CheckNameAvailabilityResponse
184
+ bodyMapper: Mappers.CheckNameAvailabilityResponse,
185
185
  },
186
186
  default: {
187
- bodyMapper: Mappers.ErrorResponse
188
- }
187
+ bodyMapper: Mappers.ErrorResponse,
188
+ },
189
189
  },
190
190
  requestBody: Parameters.nameAvailabilityRequest,
191
191
  queryParameters: [Parameters.apiVersion],
192
192
  urlParameters: [Parameters.$host, Parameters.subscriptionId],
193
193
  headerParameters: [Parameters.accept, Parameters.contentType],
194
194
  mediaType: "json",
195
- serializer
195
+ serializer,
196
196
  };
package/src/lroImpl.ts CHANGED
@@ -28,15 +28,15 @@ export function createLroSpec<T>(inputs: {
28
28
  sendInitialRequest: () => sendOperationFn(args, spec),
29
29
  sendPollRequest: (
30
30
  path: string,
31
- options?: { abortSignal?: AbortSignalLike }
31
+ options?: { abortSignal?: AbortSignalLike },
32
32
  ) => {
33
33
  const { requestBody, ...restSpec } = spec;
34
34
  return sendOperationFn(args, {
35
35
  ...restSpec,
36
36
  httpMethod: "GET",
37
37
  path,
38
- abortSignal: options?.abortSignal
38
+ abortSignal: options?.abortSignal,
39
39
  });
40
- }
40
+ },
41
41
  };
42
42
  }
@@ -142,6 +142,8 @@ export interface LedgerProperties {
142
142
  * NOTE: This property will not be serialized. It can only be populated by the server.
143
143
  */
144
144
  readonly provisioningState?: ProvisioningState;
145
+ /** SKU associated with the ledger */
146
+ ledgerSku?: LedgerSku;
145
147
  /** Array of all AAD based Security Principals. */
146
148
  aadBasedSecurityPrincipals?: AADBasedSecurityPrincipal[];
147
149
  /** Array of all cert based Security Principals. */
@@ -214,6 +216,42 @@ export interface ConfidentialLedgerList {
214
216
  nextLink?: string;
215
217
  }
216
218
 
219
+ /** Object representing Backup properties of a Confidential Ledger Resource. */
220
+ export interface ConfidentialLedgerBackup {
221
+ /** The region where the backup of the ledger will eventually be restored to. */
222
+ restoreRegion?: string;
223
+ /** SAS URI used to access the backup Fileshare. */
224
+ uri: string;
225
+ }
226
+
227
+ /** Object representing the backup response of a Confidential Ledger Resource. */
228
+ export interface ConfidentialLedgerBackupResponse {
229
+ /**
230
+ * Response body stating if the ledger is being backed up.
231
+ * NOTE: This property will not be serialized. It can only be populated by the server.
232
+ */
233
+ readonly message?: string;
234
+ }
235
+
236
+ /** Object representing Restore properties of a Confidential Ledger Resource. */
237
+ export interface ConfidentialLedgerRestore {
238
+ /** Fileshare where the ledger backup is stored. */
239
+ fileShareName: string;
240
+ /** The region the ledger is being restored to. */
241
+ restoreRegion: string;
242
+ /** SAS URI used to access the backup fileshare. */
243
+ uri: string;
244
+ }
245
+
246
+ /** Object representing the restore response of a Confidential Ledger Resource. */
247
+ export interface ConfidentialLedgerRestoreResponse {
248
+ /**
249
+ * Response body stating if the ledger is being restored.
250
+ * NOTE: This property will not be serialized. It can only be populated by the server.
251
+ */
252
+ readonly message?: string;
253
+ }
254
+
217
255
  /** Additional Managed CCF properties. */
218
256
  export interface ManagedCCFProperties {
219
257
  /**
@@ -235,8 +273,10 @@ export interface ManagedCCFProperties {
235
273
  memberIdentityCertificates?: MemberIdentityCertificate[];
236
274
  /** Deployment Type of Managed CCF */
237
275
  deploymentType?: DeploymentType;
276
+ /** Object representing RunningState for Managed CCF. */
277
+ runningState?: RunningState;
238
278
  /**
239
- * Provisioning state of Ledger Resource
279
+ * Provisioning state of Managed CCF Resource
240
280
  * NOTE: This property will not be serialized. It can only be populated by the server.
241
281
  */
242
282
  readonly provisioningState?: ProvisioningState;
@@ -270,6 +310,42 @@ export interface ManagedCCFList {
270
310
  nextLink?: string;
271
311
  }
272
312
 
313
+ /** Object representing Backup properties of a Managed CCF Resource. */
314
+ export interface ManagedCCFBackup {
315
+ /** The region where the backup of the managed CCF resource will eventually be restored to. */
316
+ restoreRegion?: string;
317
+ /** SAS URI used to access the backup Fileshare. */
318
+ uri: string;
319
+ }
320
+
321
+ /** Object representing the backup response of a Managed CCF Resource. */
322
+ export interface ManagedCCFBackupResponse {
323
+ /**
324
+ * Response body stating if the managed CCF resource is being backed up.
325
+ * NOTE: This property will not be serialized. It can only be populated by the server.
326
+ */
327
+ readonly message?: string;
328
+ }
329
+
330
+ /** Object representing Restore properties of Managed CCF Resource. */
331
+ export interface ManagedCCFRestore {
332
+ /** Fileshare where the managed CCF resource backup is stored. */
333
+ fileShareName: string;
334
+ /** The region the managed CCF resource is being restored to. */
335
+ restoreRegion: string;
336
+ /** SAS URI used to access the backup Fileshare. */
337
+ uri: string;
338
+ }
339
+
340
+ /** Object representing the restore response of a Managed CCF Resource. */
341
+ export interface ManagedCCFRestoreResponse {
342
+ /**
343
+ * Response body stating if the managed CCF resource is being restored.
344
+ * NOTE: This property will not be serialized. It can only be populated by the server.
345
+ */
346
+ readonly message?: string;
347
+ }
348
+
273
349
  /** Tags for Managed CCF Certificates */
274
350
  export interface CertificateTags {
275
351
  /** Additional tags for Managed CCF Certificates */
@@ -301,7 +377,7 @@ export enum KnownCheckNameAvailabilityReason {
301
377
  /** Invalid */
302
378
  Invalid = "Invalid",
303
379
  /** AlreadyExists */
304
- AlreadyExists = "AlreadyExists"
380
+ AlreadyExists = "AlreadyExists",
305
381
  }
306
382
 
307
383
  /**
@@ -325,7 +401,7 @@ export enum KnownRunningState {
325
401
  /** Pausing */
326
402
  Pausing = "Pausing",
327
403
  /** Resuming */
328
- Resuming = "Resuming"
404
+ Resuming = "Resuming",
329
405
  }
330
406
 
331
407
  /**
@@ -348,7 +424,7 @@ export enum KnownLedgerType {
348
424
  /** Public */
349
425
  Public = "Public",
350
426
  /** Private */
351
- Private = "Private"
427
+ Private = "Private",
352
428
  }
353
429
 
354
430
  /**
@@ -377,7 +453,7 @@ export enum KnownProvisioningState {
377
453
  /** Deleting */
378
454
  Deleting = "Deleting",
379
455
  /** Updating */
380
- Updating = "Updating"
456
+ Updating = "Updating",
381
457
  }
382
458
 
383
459
  /**
@@ -395,6 +471,27 @@ export enum KnownProvisioningState {
395
471
  */
396
472
  export type ProvisioningState = string;
397
473
 
474
+ /** Known values of {@link LedgerSku} that the service accepts. */
475
+ export enum KnownLedgerSku {
476
+ /** Standard */
477
+ Standard = "Standard",
478
+ /** Basic */
479
+ Basic = "Basic",
480
+ /** Unknown */
481
+ Unknown = "Unknown",
482
+ }
483
+
484
+ /**
485
+ * Defines values for LedgerSku. \
486
+ * {@link KnownLedgerSku} can be used interchangeably with LedgerSku,
487
+ * this enum contains the known values that the service supports.
488
+ * ### Known values supported by the service
489
+ * **Standard** \
490
+ * **Basic** \
491
+ * **Unknown**
492
+ */
493
+ export type LedgerSku = string;
494
+
398
495
  /** Known values of {@link LedgerRoleName} that the service accepts. */
399
496
  export enum KnownLedgerRoleName {
400
497
  /** Reader */
@@ -402,7 +499,7 @@ export enum KnownLedgerRoleName {
402
499
  /** Contributor */
403
500
  Contributor = "Contributor",
404
501
  /** Administrator */
405
- Administrator = "Administrator"
502
+ Administrator = "Administrator",
406
503
  }
407
504
 
408
505
  /**
@@ -425,7 +522,7 @@ export enum KnownCreatedByType {
425
522
  /** ManagedIdentity */
426
523
  ManagedIdentity = "ManagedIdentity",
427
524
  /** Key */
428
- Key = "Key"
525
+ Key = "Key",
429
526
  }
430
527
 
431
528
  /**
@@ -445,7 +542,7 @@ export enum KnownLanguageRuntime {
445
542
  /** CPP */
446
543
  CPP = "CPP",
447
544
  /** JS */
448
- JS = "JS"
545
+ JS = "JS",
449
546
  }
450
547
 
451
548
  /**
@@ -477,7 +574,8 @@ export interface CheckNameAvailabilityOptionalParams
477
574
  extends coreClient.OperationOptions {}
478
575
 
479
576
  /** Contains response data for the checkNameAvailability operation. */
480
- export type CheckNameAvailabilityOperationResponse = CheckNameAvailabilityResponse;
577
+ export type CheckNameAvailabilityOperationResponse =
578
+ CheckNameAvailabilityResponse;
481
579
 
482
580
  /** Optional parameters. */
483
581
  export interface LedgerGetOptionalParams extends coreClient.OperationOptions {}
@@ -538,6 +636,30 @@ export interface LedgerListBySubscriptionOptionalParams
538
636
  /** Contains response data for the listBySubscription operation. */
539
637
  export type LedgerListBySubscriptionResponse = ConfidentialLedgerList;
540
638
 
639
+ /** Optional parameters. */
640
+ export interface LedgerBackupOptionalParams
641
+ extends coreClient.OperationOptions {
642
+ /** Delay to wait until next poll, in milliseconds. */
643
+ updateIntervalInMs?: number;
644
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
645
+ resumeFrom?: string;
646
+ }
647
+
648
+ /** Contains response data for the backup operation. */
649
+ export type LedgerBackupResponse = ConfidentialLedgerBackupResponse;
650
+
651
+ /** Optional parameters. */
652
+ export interface LedgerRestoreOptionalParams
653
+ extends coreClient.OperationOptions {
654
+ /** Delay to wait until next poll, in milliseconds. */
655
+ updateIntervalInMs?: number;
656
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
657
+ resumeFrom?: string;
658
+ }
659
+
660
+ /** Contains response data for the restore operation. */
661
+ export type LedgerRestoreResponse = ConfidentialLedgerRestoreResponse;
662
+
541
663
  /** Optional parameters. */
542
664
  export interface LedgerListByResourceGroupNextOptionalParams
543
665
  extends coreClient.OperationOptions {}
@@ -589,6 +711,9 @@ export interface ManagedCCFUpdateOptionalParams
589
711
  resumeFrom?: string;
590
712
  }
591
713
 
714
+ /** Contains response data for the update operation. */
715
+ export type ManagedCCFUpdateResponse = ManagedCCF;
716
+
592
717
  /** Optional parameters. */
593
718
  export interface ManagedCCFListByResourceGroupOptionalParams
594
719
  extends coreClient.OperationOptions {
@@ -609,6 +734,30 @@ export interface ManagedCCFListBySubscriptionOptionalParams
609
734
  /** Contains response data for the listBySubscription operation. */
610
735
  export type ManagedCCFListBySubscriptionResponse = ManagedCCFList;
611
736
 
737
+ /** Optional parameters. */
738
+ export interface ManagedCCFBackupOptionalParams
739
+ extends coreClient.OperationOptions {
740
+ /** Delay to wait until next poll, in milliseconds. */
741
+ updateIntervalInMs?: number;
742
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
743
+ resumeFrom?: string;
744
+ }
745
+
746
+ /** Contains response data for the backup operation. */
747
+ export type ManagedCCFBackupOperationResponse = ManagedCCFBackupResponse;
748
+
749
+ /** Optional parameters. */
750
+ export interface ManagedCCFRestoreOptionalParams
751
+ extends coreClient.OperationOptions {
752
+ /** Delay to wait until next poll, in milliseconds. */
753
+ updateIntervalInMs?: number;
754
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
755
+ resumeFrom?: string;
756
+ }
757
+
758
+ /** Contains response data for the restore operation. */
759
+ export type ManagedCCFRestoreOperationResponse = ManagedCCFRestoreResponse;
760
+
612
761
  /** Optional parameters. */
613
762
  export interface ManagedCCFListByResourceGroupNextOptionalParams
614
763
  extends coreClient.OperationOptions {}