@azure/arm-confidentialledger 1.3.0-alpha.20250619.1 → 1.3.0-alpha.20250718.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/confidentialLedgerClient.js +16 -5
- package/dist/browser/confidentialLedgerClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +17 -7
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/ledger.js +100 -109
- package/dist/browser/operations/ledger.js.map +1 -1
- package/dist/browser/operations/managedCCFOperations.js +100 -109
- package/dist/browser/operations/managedCCFOperations.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/confidentialLedgerClient.js +16 -5
- package/dist/commonjs/confidentialLedgerClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +17 -7
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/ledger.js +100 -108
- package/dist/commonjs/operations/ledger.js.map +1 -1
- package/dist/commonjs/operations/managedCCFOperations.js +100 -108
- package/dist/commonjs/operations/managedCCFOperations.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/confidentialLedgerClient.js +16 -5
- package/dist/esm/confidentialLedgerClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +17 -7
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/ledger.js +100 -109
- package/dist/esm/operations/ledger.js.map +1 -1
- package/dist/esm/operations/managedCCFOperations.js +100 -109
- package/dist/esm/operations/managedCCFOperations.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/confidentialLedgerClient.js +16 -5
- package/dist/react-native/confidentialLedgerClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +17 -7
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/ledger.js +100 -109
- package/dist/react-native/operations/ledger.js.map +1 -1
- package/dist/react-native/operations/managedCCFOperations.js +100 -109
- package/dist/react-native/operations/managedCCFOperations.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-confidentialledger.api.md → arm-confidentialledger-node.api.md} +0 -0
@@ -5,7 +5,6 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
10
9
|
import * as coreClient from "@azure/core-client";
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
16
15
|
/** Class containing Ledger operations. */
|
17
16
|
export class LedgerImpl {
|
17
|
+
client;
|
18
18
|
/**
|
19
19
|
* Initialize a new instance of the class Ledger class.
|
20
20
|
* @param client Reference to the service client
|
@@ -37,52 +37,35 @@ export class LedgerImpl {
|
|
37
37
|
return this;
|
38
38
|
},
|
39
39
|
byPage: (settings) => {
|
40
|
-
if (settings
|
40
|
+
if (settings?.maxPageSize) {
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
42
42
|
}
|
43
43
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
44
44
|
},
|
45
45
|
};
|
46
46
|
}
|
47
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
}
|
65
|
-
});
|
47
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
48
|
+
let result;
|
49
|
+
let continuationToken = settings?.continuationToken;
|
50
|
+
if (!continuationToken) {
|
51
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
52
|
+
let page = result.value || [];
|
53
|
+
continuationToken = result.nextLink;
|
54
|
+
setContinuationToken(page, continuationToken);
|
55
|
+
yield page;
|
56
|
+
}
|
57
|
+
while (continuationToken) {
|
58
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
59
|
+
continuationToken = result.nextLink;
|
60
|
+
let page = result.value || [];
|
61
|
+
setContinuationToken(page, continuationToken);
|
62
|
+
yield page;
|
63
|
+
}
|
66
64
|
}
|
67
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
72
|
-
_c = _f.value;
|
73
|
-
_d = false;
|
74
|
-
const page = _c;
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
76
|
-
}
|
77
|
-
}
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
79
|
-
finally {
|
80
|
-
try {
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
82
|
-
}
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
84
|
-
}
|
85
|
-
});
|
65
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
66
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
67
|
+
yield* page;
|
68
|
+
}
|
86
69
|
}
|
87
70
|
/**
|
88
71
|
* Retrieves the properties of all Confidential Ledgers.
|
@@ -98,52 +81,35 @@ export class LedgerImpl {
|
|
98
81
|
return this;
|
99
82
|
},
|
100
83
|
byPage: (settings) => {
|
101
|
-
if (settings
|
84
|
+
if (settings?.maxPageSize) {
|
102
85
|
throw new Error("maxPageSize is not supported by this operation.");
|
103
86
|
}
|
104
87
|
return this.listBySubscriptionPagingPage(options, settings);
|
105
88
|
},
|
106
89
|
};
|
107
90
|
}
|
108
|
-
listBySubscriptionPagingPage(options, settings) {
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
}
|
126
|
-
});
|
91
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
92
|
+
let result;
|
93
|
+
let continuationToken = settings?.continuationToken;
|
94
|
+
if (!continuationToken) {
|
95
|
+
result = await this._listBySubscription(options);
|
96
|
+
let page = result.value || [];
|
97
|
+
continuationToken = result.nextLink;
|
98
|
+
setContinuationToken(page, continuationToken);
|
99
|
+
yield page;
|
100
|
+
}
|
101
|
+
while (continuationToken) {
|
102
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
103
|
+
continuationToken = result.nextLink;
|
104
|
+
let page = result.value || [];
|
105
|
+
setContinuationToken(page, continuationToken);
|
106
|
+
yield page;
|
107
|
+
}
|
127
108
|
}
|
128
|
-
listBySubscriptionPagingAll(options) {
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
133
|
-
_c = _f.value;
|
134
|
-
_d = false;
|
135
|
-
const page = _c;
|
136
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
137
|
-
}
|
138
|
-
}
|
139
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
140
|
-
finally {
|
141
|
-
try {
|
142
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
143
|
-
}
|
144
|
-
finally { if (e_2) throw e_2.error; }
|
145
|
-
}
|
146
|
-
});
|
109
|
+
async *listBySubscriptionPagingAll(options) {
|
110
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
111
|
+
yield* page;
|
112
|
+
}
|
147
113
|
}
|
148
114
|
/**
|
149
115
|
* Retrieves the properties of a Confidential Ledger.
|
@@ -165,14 +131,19 @@ export class LedgerImpl {
|
|
165
131
|
return this.client.sendOperationRequest(args, spec);
|
166
132
|
};
|
167
133
|
const sendOperationFn = async (args, spec) => {
|
168
|
-
var _a;
|
169
134
|
let currentRawResponse = undefined;
|
170
|
-
const providedCallback =
|
135
|
+
const providedCallback = args.options?.onResponse;
|
171
136
|
const callback = (rawResponse, flatResponse) => {
|
172
137
|
currentRawResponse = rawResponse;
|
173
|
-
providedCallback
|
138
|
+
providedCallback?.(rawResponse, flatResponse);
|
139
|
+
};
|
140
|
+
const updatedArgs = {
|
141
|
+
...args,
|
142
|
+
options: {
|
143
|
+
...args.options,
|
144
|
+
onResponse: callback,
|
145
|
+
},
|
174
146
|
};
|
175
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
176
147
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
177
148
|
return {
|
178
149
|
flatResponse,
|
@@ -189,8 +160,8 @@ export class LedgerImpl {
|
|
189
160
|
spec: deleteOperationSpec,
|
190
161
|
});
|
191
162
|
const poller = await createHttpPoller(lro, {
|
192
|
-
restoreFrom: options
|
193
|
-
intervalInMs: options
|
163
|
+
restoreFrom: options?.resumeFrom,
|
164
|
+
intervalInMs: options?.updateIntervalInMs,
|
194
165
|
});
|
195
166
|
await poller.poll();
|
196
167
|
return poller;
|
@@ -217,14 +188,19 @@ export class LedgerImpl {
|
|
217
188
|
return this.client.sendOperationRequest(args, spec);
|
218
189
|
};
|
219
190
|
const sendOperationFn = async (args, spec) => {
|
220
|
-
var _a;
|
221
191
|
let currentRawResponse = undefined;
|
222
|
-
const providedCallback =
|
192
|
+
const providedCallback = args.options?.onResponse;
|
223
193
|
const callback = (rawResponse, flatResponse) => {
|
224
194
|
currentRawResponse = rawResponse;
|
225
|
-
providedCallback
|
195
|
+
providedCallback?.(rawResponse, flatResponse);
|
196
|
+
};
|
197
|
+
const updatedArgs = {
|
198
|
+
...args,
|
199
|
+
options: {
|
200
|
+
...args.options,
|
201
|
+
onResponse: callback,
|
202
|
+
},
|
226
203
|
};
|
227
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
228
204
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
229
205
|
return {
|
230
206
|
flatResponse,
|
@@ -241,8 +217,8 @@ export class LedgerImpl {
|
|
241
217
|
spec: createOperationSpec,
|
242
218
|
});
|
243
219
|
const poller = await createHttpPoller(lro, {
|
244
|
-
restoreFrom: options
|
245
|
-
intervalInMs: options
|
220
|
+
restoreFrom: options?.resumeFrom,
|
221
|
+
intervalInMs: options?.updateIntervalInMs,
|
246
222
|
resourceLocationConfig: "azure-async-operation",
|
247
223
|
});
|
248
224
|
await poller.poll();
|
@@ -271,14 +247,19 @@ export class LedgerImpl {
|
|
271
247
|
return this.client.sendOperationRequest(args, spec);
|
272
248
|
};
|
273
249
|
const sendOperationFn = async (args, spec) => {
|
274
|
-
var _a;
|
275
250
|
let currentRawResponse = undefined;
|
276
|
-
const providedCallback =
|
251
|
+
const providedCallback = args.options?.onResponse;
|
277
252
|
const callback = (rawResponse, flatResponse) => {
|
278
253
|
currentRawResponse = rawResponse;
|
279
|
-
providedCallback
|
254
|
+
providedCallback?.(rawResponse, flatResponse);
|
255
|
+
};
|
256
|
+
const updatedArgs = {
|
257
|
+
...args,
|
258
|
+
options: {
|
259
|
+
...args.options,
|
260
|
+
onResponse: callback,
|
261
|
+
},
|
280
262
|
};
|
281
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
282
263
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
283
264
|
return {
|
284
265
|
flatResponse,
|
@@ -295,8 +276,8 @@ export class LedgerImpl {
|
|
295
276
|
spec: updateOperationSpec,
|
296
277
|
});
|
297
278
|
const poller = await createHttpPoller(lro, {
|
298
|
-
restoreFrom: options
|
299
|
-
intervalInMs: options
|
279
|
+
restoreFrom: options?.resumeFrom,
|
280
|
+
intervalInMs: options?.updateIntervalInMs,
|
300
281
|
});
|
301
282
|
await poller.poll();
|
302
283
|
return poller;
|
@@ -339,14 +320,19 @@ export class LedgerImpl {
|
|
339
320
|
return this.client.sendOperationRequest(args, spec);
|
340
321
|
};
|
341
322
|
const sendOperationFn = async (args, spec) => {
|
342
|
-
var _a;
|
343
323
|
let currentRawResponse = undefined;
|
344
|
-
const providedCallback =
|
324
|
+
const providedCallback = args.options?.onResponse;
|
345
325
|
const callback = (rawResponse, flatResponse) => {
|
346
326
|
currentRawResponse = rawResponse;
|
347
|
-
providedCallback
|
327
|
+
providedCallback?.(rawResponse, flatResponse);
|
328
|
+
};
|
329
|
+
const updatedArgs = {
|
330
|
+
...args,
|
331
|
+
options: {
|
332
|
+
...args.options,
|
333
|
+
onResponse: callback,
|
334
|
+
},
|
348
335
|
};
|
349
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
350
336
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
351
337
|
return {
|
352
338
|
flatResponse,
|
@@ -363,8 +349,8 @@ export class LedgerImpl {
|
|
363
349
|
spec: backupOperationSpec,
|
364
350
|
});
|
365
351
|
const poller = await createHttpPoller(lro, {
|
366
|
-
restoreFrom: options
|
367
|
-
intervalInMs: options
|
352
|
+
restoreFrom: options?.resumeFrom,
|
353
|
+
intervalInMs: options?.updateIntervalInMs,
|
368
354
|
});
|
369
355
|
await poller.poll();
|
370
356
|
return poller;
|
@@ -392,14 +378,19 @@ export class LedgerImpl {
|
|
392
378
|
return this.client.sendOperationRequest(args, spec);
|
393
379
|
};
|
394
380
|
const sendOperationFn = async (args, spec) => {
|
395
|
-
var _a;
|
396
381
|
let currentRawResponse = undefined;
|
397
|
-
const providedCallback =
|
382
|
+
const providedCallback = args.options?.onResponse;
|
398
383
|
const callback = (rawResponse, flatResponse) => {
|
399
384
|
currentRawResponse = rawResponse;
|
400
|
-
providedCallback
|
385
|
+
providedCallback?.(rawResponse, flatResponse);
|
386
|
+
};
|
387
|
+
const updatedArgs = {
|
388
|
+
...args,
|
389
|
+
options: {
|
390
|
+
...args.options,
|
391
|
+
onResponse: callback,
|
392
|
+
},
|
401
393
|
};
|
402
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
403
394
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
404
395
|
return {
|
405
396
|
flatResponse,
|
@@ -416,8 +407,8 @@ export class LedgerImpl {
|
|
416
407
|
spec: restoreOperationSpec,
|
417
408
|
});
|
418
409
|
const poller = await createHttpPoller(lro, {
|
419
|
-
restoreFrom: options
|
420
|
-
intervalInMs: options
|
410
|
+
restoreFrom: options?.resumeFrom,
|
411
|
+
intervalInMs: options?.updateIntervalInMs,
|
421
412
|
});
|
422
413
|
await poller.poll();
|
423
414
|
return poller;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ledger.js","sourceRoot":"","sources":["../../../src/operations/ledger.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AA0B9C,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAM,OAAO,UAAU;IAGrB;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAAiD;QAEjD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,6BAA6B,CACvC,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,6BAA6B,CAC1C,iBAAyB,EACzB,OAAiD,EACjD,QAAuB;;YAEvB,I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C;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Ledger } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ConfidentialLedgerClient } from \"../confidentialLedgerClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ConfidentialLedger,\n LedgerListByResourceGroupNextOptionalParams,\n LedgerListByResourceGroupOptionalParams,\n LedgerListByResourceGroupResponse,\n LedgerListBySubscriptionNextOptionalParams,\n LedgerListBySubscriptionOptionalParams,\n LedgerListBySubscriptionResponse,\n LedgerGetOptionalParams,\n LedgerGetResponse,\n LedgerDeleteOptionalParams,\n LedgerCreateOptionalParams,\n LedgerCreateResponse,\n LedgerUpdateOptionalParams,\n LedgerUpdateResponse,\n ConfidentialLedgerBackup,\n LedgerBackupOptionalParams,\n LedgerBackupResponse,\n ConfidentialLedgerRestore,\n LedgerRestoreOptionalParams,\n LedgerRestoreResponse,\n LedgerListByResourceGroupNextResponse,\n LedgerListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Ledger operations. */\nexport class LedgerImpl implements Ledger {\n private readonly client: ConfidentialLedgerClient;\n\n /**\n * Initialize a new instance of the class Ledger class.\n * @param client Reference to the service client\n */\n constructor(client: ConfidentialLedgerClient) {\n this.client = client;\n }\n\n /**\n * Retrieves the properties of all Confidential Ledgers.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: LedgerListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<ConfidentialLedger> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: LedgerListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ConfidentialLedger[]> {\n let result: LedgerListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: LedgerListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<ConfidentialLedger> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieves the properties of all Confidential Ledgers.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: LedgerListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<ConfidentialLedger> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: LedgerListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ConfidentialLedger[]> {\n let result: LedgerListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: LedgerListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<ConfidentialLedger> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves the properties of a Confidential Ledger.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n ledgerName: string,\n options?: LedgerGetOptionalParams,\n ): Promise<LedgerGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, ledgerName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes an existing Confidential Ledger.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n ledgerName: string,\n options?: LedgerDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, ledgerName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an existing Confidential Ledger.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n ledgerName: string,\n options?: LedgerDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n ledgerName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Creates a Confidential Ledger with the specified ledger parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger Create Request Body\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedger,\n options?: LedgerCreateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<LedgerCreateResponse>, LedgerCreateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<LedgerCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, ledgerName, confidentialLedger, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n LedgerCreateResponse,\n OperationState<LedgerCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a Confidential Ledger with the specified ledger parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger Create Request Body\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedger,\n options?: LedgerCreateOptionalParams,\n ): Promise<LedgerCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n ledgerName,\n confidentialLedger,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates properties of Confidential Ledger\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger request body for Updating Ledger\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedger,\n options?: LedgerUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<LedgerUpdateResponse>, LedgerUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<LedgerUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, ledgerName, confidentialLedger, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n LedgerUpdateResponse,\n OperationState<LedgerUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates properties of Confidential Ledger\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger request body for Updating Ledger\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedger,\n options?: LedgerUpdateOptionalParams,\n ): Promise<LedgerUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n ledgerName,\n confidentialLedger,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieves the properties of all Confidential Ledgers.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: LedgerListByResourceGroupOptionalParams,\n ): Promise<LedgerListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Retrieves the properties of all Confidential Ledgers.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: LedgerListBySubscriptionOptionalParams,\n ): Promise<LedgerListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * Backs up a Confidential Ledger Resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger Backup Request Body\n * @param options The options parameters.\n */\n async beginBackup(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedgerBackup,\n options?: LedgerBackupOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<LedgerBackupResponse>, LedgerBackupResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<LedgerBackupResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, ledgerName, confidentialLedger, options },\n spec: backupOperationSpec,\n });\n const poller = await createHttpPoller<\n LedgerBackupResponse,\n OperationState<LedgerBackupResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Backs up a Confidential Ledger Resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger Backup Request Body\n * @param options The options parameters.\n */\n async beginBackupAndWait(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedgerBackup,\n options?: LedgerBackupOptionalParams,\n ): Promise<LedgerBackupResponse> {\n const poller = await this.beginBackup(\n resourceGroupName,\n ledgerName,\n confidentialLedger,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Restores a Confidential Ledger Resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger Restore Request Body\n * @param options The options parameters.\n */\n async beginRestore(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedgerRestore,\n options?: LedgerRestoreOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<LedgerRestoreResponse>,\n LedgerRestoreResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<LedgerRestoreResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, ledgerName, confidentialLedger, options },\n spec: restoreOperationSpec,\n });\n const poller = await createHttpPoller<\n LedgerRestoreResponse,\n OperationState<LedgerRestoreResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Restores a Confidential Ledger Resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger Restore Request Body\n * @param options The options parameters.\n */\n async beginRestoreAndWait(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedgerRestore,\n options?: LedgerRestoreOptionalParams,\n ): Promise<LedgerRestoreResponse> {\n const poller = await this.beginRestore(\n resourceGroupName,\n ledgerName,\n confidentialLedger,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: LedgerListByResourceGroupNextOptionalParams,\n ): Promise<LedgerListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: LedgerListBySubscriptionNextOptionalParams,\n ): Promise<LedgerListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.ledgerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.ledgerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n 201: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n 202: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n 204: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.confidentialLedger,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.ledgerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n 201: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n 202: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n 204: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.confidentialLedger,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.ledgerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedgerList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/ledgers/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedgerList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst backupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}/backup\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedgerBackupResponse,\n },\n 201: {\n bodyMapper: Mappers.ConfidentialLedgerBackupResponse,\n },\n 202: {\n bodyMapper: Mappers.ConfidentialLedgerBackupResponse,\n },\n 204: {\n bodyMapper: Mappers.ConfidentialLedgerBackupResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.confidentialLedger1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.ledgerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst restoreOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}/restore\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedgerRestoreResponse,\n },\n 201: {\n bodyMapper: Mappers.ConfidentialLedgerRestoreResponse,\n },\n 202: {\n bodyMapper: Mappers.ConfidentialLedgerRestoreResponse,\n },\n 204: {\n bodyMapper: Mappers.ConfidentialLedgerRestoreResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.confidentialLedger2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.ledgerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedgerList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedgerList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
1
|
+
{"version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ACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Ledger } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ConfidentialLedgerClient } from \"../confidentialLedgerClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ConfidentialLedger,\n LedgerListByResourceGroupNextOptionalParams,\n LedgerListByResourceGroupOptionalParams,\n LedgerListByResourceGroupResponse,\n LedgerListBySubscriptionNextOptionalParams,\n LedgerListBySubscriptionOptionalParams,\n LedgerListBySubscriptionResponse,\n LedgerGetOptionalParams,\n LedgerGetResponse,\n LedgerDeleteOptionalParams,\n LedgerCreateOptionalParams,\n LedgerCreateResponse,\n LedgerUpdateOptionalParams,\n LedgerUpdateResponse,\n ConfidentialLedgerBackup,\n LedgerBackupOptionalParams,\n LedgerBackupResponse,\n ConfidentialLedgerRestore,\n LedgerRestoreOptionalParams,\n LedgerRestoreResponse,\n LedgerListByResourceGroupNextResponse,\n LedgerListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Ledger operations. */\nexport class LedgerImpl implements Ledger {\n private readonly client: ConfidentialLedgerClient;\n\n /**\n * Initialize a new instance of the class Ledger class.\n * @param client Reference to the service client\n */\n constructor(client: ConfidentialLedgerClient) {\n this.client = client;\n }\n\n /**\n * Retrieves the properties of all Confidential Ledgers.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: LedgerListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<ConfidentialLedger> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: LedgerListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ConfidentialLedger[]> {\n let result: LedgerListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: LedgerListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<ConfidentialLedger> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieves the properties of all Confidential Ledgers.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: LedgerListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<ConfidentialLedger> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: LedgerListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ConfidentialLedger[]> {\n let result: LedgerListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: LedgerListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<ConfidentialLedger> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves the properties of a Confidential Ledger.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n ledgerName: string,\n options?: LedgerGetOptionalParams,\n ): Promise<LedgerGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, ledgerName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes an existing Confidential Ledger.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n ledgerName: string,\n options?: LedgerDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, ledgerName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an existing Confidential Ledger.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n ledgerName: string,\n options?: LedgerDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n ledgerName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Creates a Confidential Ledger with the specified ledger parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger Create Request Body\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedger,\n options?: LedgerCreateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<LedgerCreateResponse>, LedgerCreateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<LedgerCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, ledgerName, confidentialLedger, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n LedgerCreateResponse,\n OperationState<LedgerCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a Confidential Ledger with the specified ledger parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger Create Request Body\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedger,\n options?: LedgerCreateOptionalParams,\n ): Promise<LedgerCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n ledgerName,\n confidentialLedger,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates properties of Confidential Ledger\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger request body for Updating Ledger\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedger,\n options?: LedgerUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<LedgerUpdateResponse>, LedgerUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<LedgerUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, ledgerName, confidentialLedger, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n LedgerUpdateResponse,\n OperationState<LedgerUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates properties of Confidential Ledger\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger request body for Updating Ledger\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedger,\n options?: LedgerUpdateOptionalParams,\n ): Promise<LedgerUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n ledgerName,\n confidentialLedger,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieves the properties of all Confidential Ledgers.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: LedgerListByResourceGroupOptionalParams,\n ): Promise<LedgerListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Retrieves the properties of all Confidential Ledgers.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: LedgerListBySubscriptionOptionalParams,\n ): Promise<LedgerListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * Backs up a Confidential Ledger Resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger Backup Request Body\n * @param options The options parameters.\n */\n async beginBackup(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedgerBackup,\n options?: LedgerBackupOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<LedgerBackupResponse>, LedgerBackupResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<LedgerBackupResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, ledgerName, confidentialLedger, options },\n spec: backupOperationSpec,\n });\n const poller = await createHttpPoller<\n LedgerBackupResponse,\n OperationState<LedgerBackupResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Backs up a Confidential Ledger Resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger Backup Request Body\n * @param options The options parameters.\n */\n async beginBackupAndWait(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedgerBackup,\n options?: LedgerBackupOptionalParams,\n ): Promise<LedgerBackupResponse> {\n const poller = await this.beginBackup(\n resourceGroupName,\n ledgerName,\n confidentialLedger,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Restores a Confidential Ledger Resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger Restore Request Body\n * @param options The options parameters.\n */\n async beginRestore(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedgerRestore,\n options?: LedgerRestoreOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<LedgerRestoreResponse>,\n LedgerRestoreResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<LedgerRestoreResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, ledgerName, confidentialLedger, options },\n spec: restoreOperationSpec,\n });\n const poller = await createHttpPoller<\n LedgerRestoreResponse,\n OperationState<LedgerRestoreResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Restores a Confidential Ledger Resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param ledgerName Name of the Confidential Ledger\n * @param confidentialLedger Confidential Ledger Restore Request Body\n * @param options The options parameters.\n */\n async beginRestoreAndWait(\n resourceGroupName: string,\n ledgerName: string,\n confidentialLedger: ConfidentialLedgerRestore,\n options?: LedgerRestoreOptionalParams,\n ): Promise<LedgerRestoreResponse> {\n const poller = await this.beginRestore(\n resourceGroupName,\n ledgerName,\n confidentialLedger,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: LedgerListByResourceGroupNextOptionalParams,\n ): Promise<LedgerListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: LedgerListBySubscriptionNextOptionalParams,\n ): Promise<LedgerListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.ledgerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.ledgerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n 201: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n 202: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n 204: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.confidentialLedger,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.ledgerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n 201: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n 202: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n 204: {\n bodyMapper: Mappers.ConfidentialLedger,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.confidentialLedger,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.ledgerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedgerList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/ledgers/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedgerList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst backupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}/backup\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedgerBackupResponse,\n },\n 201: {\n bodyMapper: Mappers.ConfidentialLedgerBackupResponse,\n },\n 202: {\n bodyMapper: Mappers.ConfidentialLedgerBackupResponse,\n },\n 204: {\n bodyMapper: Mappers.ConfidentialLedgerBackupResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.confidentialLedger1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.ledgerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst restoreOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}/restore\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedgerRestoreResponse,\n },\n 201: {\n bodyMapper: Mappers.ConfidentialLedgerRestoreResponse,\n },\n 202: {\n bodyMapper: Mappers.ConfidentialLedgerRestoreResponse,\n },\n 204: {\n bodyMapper: Mappers.ConfidentialLedgerRestoreResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.confidentialLedger2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.ledgerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedgerList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfidentialLedgerList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|