@azure/arm-confidentialledger 1.3.0-beta.1 → 1.3.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -1
- package/LICENSE +1 -1
- package/dist/index.js +1013 -434
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js +3 -3
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerBackupSample.d.ts +2 -0
- package/dist-esm/samples-dev/ledgerBackupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/ledgerBackupSample.js +44 -0
- package/dist-esm/samples-dev/ledgerBackupSample.js.map +1 -0
- package/dist-esm/samples-dev/ledgerCreateSample.js +9 -8
- package/dist-esm/samples-dev/ledgerCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerDeleteSample.js +1 -1
- package/dist-esm/samples-dev/ledgerGetSample.js +1 -1
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js +7 -5
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js +7 -5
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerRestoreSample.d.ts +2 -0
- package/dist-esm/samples-dev/ledgerRestoreSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/ledgerRestoreSample.js +45 -0
- package/dist-esm/samples-dev/ledgerRestoreSample.js.map +1 -0
- package/dist-esm/samples-dev/ledgerUpdateSample.js +9 -9
- package/dist-esm/samples-dev/ledgerUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/managedCcfBackupSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfBackupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfBackupSample.js +44 -0
- package/dist-esm/samples-dev/managedCcfBackupSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfCreateSample.js +7 -7
- package/dist-esm/samples-dev/managedCcfCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/managedCcfDeleteSample.js +1 -1
- package/dist-esm/samples-dev/managedCcfGetSample.js +1 -1
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js +7 -5
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js +7 -5
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/managedCcfRestoreSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfRestoreSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfRestoreSample.js +45 -0
- package/dist-esm/samples-dev/managedCcfRestoreSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfUpdateSample.js +5 -5
- package/dist-esm/samples-dev/managedCcfUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +7 -5
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/src/confidentialLedgerClient.d.ts.map +1 -1
- package/dist-esm/src/confidentialLedgerClient.js +13 -13
- package/dist-esm/src/confidentialLedgerClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +149 -24
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +10 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +8 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +385 -213
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +55 -39
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/ledger.d.ts +33 -1
- package/dist-esm/src/operations/ledger.d.ts.map +1 -1
- package/dist-esm/src/operations/ledger.js +249 -67
- package/dist-esm/src/operations/ledger.js.map +1 -1
- package/dist-esm/src/operations/managedCCFOperations.d.ts +35 -3
- package/dist-esm/src/operations/managedCCFOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/managedCCFOperations.js +257 -67
- package/dist-esm/src/operations/managedCCFOperations.js.map +1 -1
- package/dist-esm/src/operations/operations.js +15 -13
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/ledger.d.ts +33 -1
- package/dist-esm/src/operationsInterfaces/ledger.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts +35 -3
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/confidentialledger_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/confidentialledger_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/confidentialledger_operations_test.spec.js +71 -0
- package/dist-esm/test/confidentialledger_operations_test.spec.js.map +1 -0
- package/package.json +17 -22
- package/review/arm-confidentialledger.api.md +107 -2
- package/src/confidentialLedgerClient.ts +26 -26
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +158 -9
- package/src/models/mappers.ts +396 -216
- package/src/models/parameters.ts +64 -40
- package/src/operations/ledger.ts +370 -124
- package/src/operations/managedCCFOperations.ts +393 -127
- package/src/operations/operations.ts +16 -16
- package/src/operationsInterfaces/ledger.ts +75 -10
- package/src/operationsInterfaces/managedCCFOperations.ts +86 -12
- package/src/operationsInterfaces/operations.ts +2 -2
- package/src/pagingHelper.ts +1 -1
- package/types/arm-confidentialledger.d.ts +211 -3
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/rollup.config.js +0 -122
@@ -16,7 +16,7 @@ import { ConfidentialLedgerClient } from "../confidentialLedgerClient";
|
|
16
16
|
import {
|
17
17
|
SimplePollerLike,
|
18
18
|
OperationState,
|
19
|
-
createHttpPoller
|
19
|
+
createHttpPoller,
|
20
20
|
} from "@azure/core-lro";
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
22
22
|
import {
|
@@ -33,8 +33,15 @@ import {
|
|
33
33
|
ManagedCCFCreateOptionalParams,
|
34
34
|
ManagedCCFCreateResponse,
|
35
35
|
ManagedCCFUpdateOptionalParams,
|
36
|
+
ManagedCCFUpdateResponse,
|
37
|
+
ManagedCCFBackup,
|
38
|
+
ManagedCCFBackupOptionalParams,
|
39
|
+
ManagedCCFBackupOperationResponse,
|
40
|
+
ManagedCCFRestore,
|
41
|
+
ManagedCCFRestoreOptionalParams,
|
42
|
+
ManagedCCFRestoreOperationResponse,
|
36
43
|
ManagedCCFListByResourceGroupNextResponse,
|
37
|
-
ManagedCCFListBySubscriptionNextResponse
|
44
|
+
ManagedCCFListBySubscriptionNextResponse,
|
38
45
|
} from "../models";
|
39
46
|
|
40
47
|
/// <reference lib="esnext.asynciterable" />
|
@@ -57,7 +64,7 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
57
64
|
*/
|
58
65
|
public listByResourceGroup(
|
59
66
|
resourceGroupName: string,
|
60
|
-
options?: ManagedCCFListByResourceGroupOptionalParams
|
67
|
+
options?: ManagedCCFListByResourceGroupOptionalParams,
|
61
68
|
): PagedAsyncIterableIterator<ManagedCCF> {
|
62
69
|
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
63
70
|
return {
|
@@ -74,16 +81,16 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
74
81
|
return this.listByResourceGroupPagingPage(
|
75
82
|
resourceGroupName,
|
76
83
|
options,
|
77
|
-
settings
|
84
|
+
settings,
|
78
85
|
);
|
79
|
-
}
|
86
|
+
},
|
80
87
|
};
|
81
88
|
}
|
82
89
|
|
83
90
|
private async *listByResourceGroupPagingPage(
|
84
91
|
resourceGroupName: string,
|
85
92
|
options?: ManagedCCFListByResourceGroupOptionalParams,
|
86
|
-
settings?: PageSettings
|
93
|
+
settings?: PageSettings,
|
87
94
|
): AsyncIterableIterator<ManagedCCF[]> {
|
88
95
|
let result: ManagedCCFListByResourceGroupResponse;
|
89
96
|
let continuationToken = settings?.continuationToken;
|
@@ -98,7 +105,7 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
98
105
|
result = await this._listByResourceGroupNext(
|
99
106
|
resourceGroupName,
|
100
107
|
continuationToken,
|
101
|
-
options
|
108
|
+
options,
|
102
109
|
);
|
103
110
|
continuationToken = result.nextLink;
|
104
111
|
let page = result.value || [];
|
@@ -109,11 +116,11 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
109
116
|
|
110
117
|
private async *listByResourceGroupPagingAll(
|
111
118
|
resourceGroupName: string,
|
112
|
-
options?: ManagedCCFListByResourceGroupOptionalParams
|
119
|
+
options?: ManagedCCFListByResourceGroupOptionalParams,
|
113
120
|
): AsyncIterableIterator<ManagedCCF> {
|
114
121
|
for await (const page of this.listByResourceGroupPagingPage(
|
115
122
|
resourceGroupName,
|
116
|
-
options
|
123
|
+
options,
|
117
124
|
)) {
|
118
125
|
yield* page;
|
119
126
|
}
|
@@ -124,7 +131,7 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
124
131
|
* @param options The options parameters.
|
125
132
|
*/
|
126
133
|
public listBySubscription(
|
127
|
-
options?: ManagedCCFListBySubscriptionOptionalParams
|
134
|
+
options?: ManagedCCFListBySubscriptionOptionalParams,
|
128
135
|
): PagedAsyncIterableIterator<ManagedCCF> {
|
129
136
|
const iter = this.listBySubscriptionPagingAll(options);
|
130
137
|
return {
|
@@ -139,13 +146,13 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
139
146
|
throw new Error("maxPageSize is not supported by this operation.");
|
140
147
|
}
|
141
148
|
return this.listBySubscriptionPagingPage(options, settings);
|
142
|
-
}
|
149
|
+
},
|
143
150
|
};
|
144
151
|
}
|
145
152
|
|
146
153
|
private async *listBySubscriptionPagingPage(
|
147
154
|
options?: ManagedCCFListBySubscriptionOptionalParams,
|
148
|
-
settings?: PageSettings
|
155
|
+
settings?: PageSettings,
|
149
156
|
): AsyncIterableIterator<ManagedCCF[]> {
|
150
157
|
let result: ManagedCCFListBySubscriptionResponse;
|
151
158
|
let continuationToken = settings?.continuationToken;
|
@@ -166,7 +173,7 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
166
173
|
}
|
167
174
|
|
168
175
|
private async *listBySubscriptionPagingAll(
|
169
|
-
options?: ManagedCCFListBySubscriptionOptionalParams
|
176
|
+
options?: ManagedCCFListBySubscriptionOptionalParams,
|
170
177
|
): AsyncIterableIterator<ManagedCCF> {
|
171
178
|
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
172
179
|
yield* page;
|
@@ -182,11 +189,11 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
182
189
|
get(
|
183
190
|
resourceGroupName: string,
|
184
191
|
appName: string,
|
185
|
-
options?: ManagedCCFGetOptionalParams
|
192
|
+
options?: ManagedCCFGetOptionalParams,
|
186
193
|
): Promise<ManagedCCFGetResponse> {
|
187
194
|
return this.client.sendOperationRequest(
|
188
195
|
{ resourceGroupName, appName, options },
|
189
|
-
getOperationSpec
|
196
|
+
getOperationSpec,
|
190
197
|
);
|
191
198
|
}
|
192
199
|
|
@@ -199,25 +206,24 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
199
206
|
async beginDelete(
|
200
207
|
resourceGroupName: string,
|
201
208
|
appName: string,
|
202
|
-
options?: ManagedCCFDeleteOptionalParams
|
209
|
+
options?: ManagedCCFDeleteOptionalParams,
|
203
210
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
204
211
|
const directSendOperation = async (
|
205
212
|
args: coreClient.OperationArguments,
|
206
|
-
spec: coreClient.OperationSpec
|
213
|
+
spec: coreClient.OperationSpec,
|
207
214
|
): Promise<void> => {
|
208
215
|
return this.client.sendOperationRequest(args, spec);
|
209
216
|
};
|
210
217
|
const sendOperationFn = async (
|
211
218
|
args: coreClient.OperationArguments,
|
212
|
-
spec: coreClient.OperationSpec
|
219
|
+
spec: coreClient.OperationSpec,
|
213
220
|
) => {
|
214
|
-
let currentRawResponse:
|
215
|
-
|
216
|
-
| undefined = undefined;
|
221
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
222
|
+
undefined;
|
217
223
|
const providedCallback = args.options?.onResponse;
|
218
224
|
const callback: coreClient.RawResponseCallback = (
|
219
225
|
rawResponse: coreClient.FullOperationResponse,
|
220
|
-
flatResponse: unknown
|
226
|
+
flatResponse: unknown,
|
221
227
|
) => {
|
222
228
|
currentRawResponse = rawResponse;
|
223
229
|
providedCallback?.(rawResponse, flatResponse);
|
@@ -226,8 +232,8 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
226
232
|
...args,
|
227
233
|
options: {
|
228
234
|
...args.options,
|
229
|
-
onResponse: callback
|
230
|
-
}
|
235
|
+
onResponse: callback,
|
236
|
+
},
|
231
237
|
};
|
232
238
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
233
239
|
return {
|
@@ -235,19 +241,19 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
235
241
|
rawResponse: {
|
236
242
|
statusCode: currentRawResponse!.status,
|
237
243
|
body: currentRawResponse!.parsedBody,
|
238
|
-
headers: currentRawResponse!.headers.toJSON()
|
239
|
-
}
|
244
|
+
headers: currentRawResponse!.headers.toJSON(),
|
245
|
+
},
|
240
246
|
};
|
241
247
|
};
|
242
248
|
|
243
249
|
const lro = createLroSpec({
|
244
250
|
sendOperationFn,
|
245
251
|
args: { resourceGroupName, appName, options },
|
246
|
-
spec: deleteOperationSpec
|
252
|
+
spec: deleteOperationSpec,
|
247
253
|
});
|
248
254
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
249
255
|
restoreFrom: options?.resumeFrom,
|
250
|
-
intervalInMs: options?.updateIntervalInMs
|
256
|
+
intervalInMs: options?.updateIntervalInMs,
|
251
257
|
});
|
252
258
|
await poller.poll();
|
253
259
|
return poller;
|
@@ -262,7 +268,7 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
262
268
|
async beginDeleteAndWait(
|
263
269
|
resourceGroupName: string,
|
264
270
|
appName: string,
|
265
|
-
options?: ManagedCCFDeleteOptionalParams
|
271
|
+
options?: ManagedCCFDeleteOptionalParams,
|
266
272
|
): Promise<void> {
|
267
273
|
const poller = await this.beginDelete(resourceGroupName, appName, options);
|
268
274
|
return poller.pollUntilDone();
|
@@ -279,7 +285,7 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
279
285
|
resourceGroupName: string,
|
280
286
|
appName: string,
|
281
287
|
managedCCF: ManagedCCF,
|
282
|
-
options?: ManagedCCFCreateOptionalParams
|
288
|
+
options?: ManagedCCFCreateOptionalParams,
|
283
289
|
): Promise<
|
284
290
|
SimplePollerLike<
|
285
291
|
OperationState<ManagedCCFCreateResponse>,
|
@@ -288,21 +294,20 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
288
294
|
> {
|
289
295
|
const directSendOperation = async (
|
290
296
|
args: coreClient.OperationArguments,
|
291
|
-
spec: coreClient.OperationSpec
|
297
|
+
spec: coreClient.OperationSpec,
|
292
298
|
): Promise<ManagedCCFCreateResponse> => {
|
293
299
|
return this.client.sendOperationRequest(args, spec);
|
294
300
|
};
|
295
301
|
const sendOperationFn = async (
|
296
302
|
args: coreClient.OperationArguments,
|
297
|
-
spec: coreClient.OperationSpec
|
303
|
+
spec: coreClient.OperationSpec,
|
298
304
|
) => {
|
299
|
-
let currentRawResponse:
|
300
|
-
|
301
|
-
| undefined = undefined;
|
305
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
306
|
+
undefined;
|
302
307
|
const providedCallback = args.options?.onResponse;
|
303
308
|
const callback: coreClient.RawResponseCallback = (
|
304
309
|
rawResponse: coreClient.FullOperationResponse,
|
305
|
-
flatResponse: unknown
|
310
|
+
flatResponse: unknown,
|
306
311
|
) => {
|
307
312
|
currentRawResponse = rawResponse;
|
308
313
|
providedCallback?.(rawResponse, flatResponse);
|
@@ -311,8 +316,8 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
311
316
|
...args,
|
312
317
|
options: {
|
313
318
|
...args.options,
|
314
|
-
onResponse: callback
|
315
|
-
}
|
319
|
+
onResponse: callback,
|
320
|
+
},
|
316
321
|
};
|
317
322
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
318
323
|
return {
|
@@ -320,15 +325,15 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
320
325
|
rawResponse: {
|
321
326
|
statusCode: currentRawResponse!.status,
|
322
327
|
body: currentRawResponse!.parsedBody,
|
323
|
-
headers: currentRawResponse!.headers.toJSON()
|
324
|
-
}
|
328
|
+
headers: currentRawResponse!.headers.toJSON(),
|
329
|
+
},
|
325
330
|
};
|
326
331
|
};
|
327
332
|
|
328
333
|
const lro = createLroSpec({
|
329
334
|
sendOperationFn,
|
330
335
|
args: { resourceGroupName, appName, managedCCF, options },
|
331
|
-
spec: createOperationSpec
|
336
|
+
spec: createOperationSpec,
|
332
337
|
});
|
333
338
|
const poller = await createHttpPoller<
|
334
339
|
ManagedCCFCreateResponse,
|
@@ -336,7 +341,7 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
336
341
|
>(lro, {
|
337
342
|
restoreFrom: options?.resumeFrom,
|
338
343
|
intervalInMs: options?.updateIntervalInMs,
|
339
|
-
resourceLocationConfig: "azure-async-operation"
|
344
|
+
resourceLocationConfig: "azure-async-operation",
|
340
345
|
});
|
341
346
|
await poller.poll();
|
342
347
|
return poller;
|
@@ -353,13 +358,13 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
353
358
|
resourceGroupName: string,
|
354
359
|
appName: string,
|
355
360
|
managedCCF: ManagedCCF,
|
356
|
-
options?: ManagedCCFCreateOptionalParams
|
361
|
+
options?: ManagedCCFCreateOptionalParams,
|
357
362
|
): Promise<ManagedCCFCreateResponse> {
|
358
363
|
const poller = await this.beginCreate(
|
359
364
|
resourceGroupName,
|
360
365
|
appName,
|
361
366
|
managedCCF,
|
362
|
-
options
|
367
|
+
options,
|
363
368
|
);
|
364
369
|
return poller.pollUntilDone();
|
365
370
|
}
|
@@ -375,25 +380,29 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
375
380
|
resourceGroupName: string,
|
376
381
|
appName: string,
|
377
382
|
managedCCF: ManagedCCF,
|
378
|
-
options?: ManagedCCFUpdateOptionalParams
|
379
|
-
): Promise<
|
383
|
+
options?: ManagedCCFUpdateOptionalParams,
|
384
|
+
): Promise<
|
385
|
+
SimplePollerLike<
|
386
|
+
OperationState<ManagedCCFUpdateResponse>,
|
387
|
+
ManagedCCFUpdateResponse
|
388
|
+
>
|
389
|
+
> {
|
380
390
|
const directSendOperation = async (
|
381
391
|
args: coreClient.OperationArguments,
|
382
|
-
spec: coreClient.OperationSpec
|
383
|
-
): Promise<
|
392
|
+
spec: coreClient.OperationSpec,
|
393
|
+
): Promise<ManagedCCFUpdateResponse> => {
|
384
394
|
return this.client.sendOperationRequest(args, spec);
|
385
395
|
};
|
386
396
|
const sendOperationFn = async (
|
387
397
|
args: coreClient.OperationArguments,
|
388
|
-
spec: coreClient.OperationSpec
|
398
|
+
spec: coreClient.OperationSpec,
|
389
399
|
) => {
|
390
|
-
let currentRawResponse:
|
391
|
-
|
392
|
-
| undefined = undefined;
|
400
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
401
|
+
undefined;
|
393
402
|
const providedCallback = args.options?.onResponse;
|
394
403
|
const callback: coreClient.RawResponseCallback = (
|
395
404
|
rawResponse: coreClient.FullOperationResponse,
|
396
|
-
flatResponse: unknown
|
405
|
+
flatResponse: unknown,
|
397
406
|
) => {
|
398
407
|
currentRawResponse = rawResponse;
|
399
408
|
providedCallback?.(rawResponse, flatResponse);
|
@@ -402,8 +411,8 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
402
411
|
...args,
|
403
412
|
options: {
|
404
413
|
...args.options,
|
405
|
-
onResponse: callback
|
406
|
-
}
|
414
|
+
onResponse: callback,
|
415
|
+
},
|
407
416
|
};
|
408
417
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
409
418
|
return {
|
@@ -411,19 +420,22 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
411
420
|
rawResponse: {
|
412
421
|
statusCode: currentRawResponse!.status,
|
413
422
|
body: currentRawResponse!.parsedBody,
|
414
|
-
headers: currentRawResponse!.headers.toJSON()
|
415
|
-
}
|
423
|
+
headers: currentRawResponse!.headers.toJSON(),
|
424
|
+
},
|
416
425
|
};
|
417
426
|
};
|
418
427
|
|
419
428
|
const lro = createLroSpec({
|
420
429
|
sendOperationFn,
|
421
430
|
args: { resourceGroupName, appName, managedCCF, options },
|
422
|
-
spec: updateOperationSpec
|
431
|
+
spec: updateOperationSpec,
|
423
432
|
});
|
424
|
-
const poller = await createHttpPoller<
|
433
|
+
const poller = await createHttpPoller<
|
434
|
+
ManagedCCFUpdateResponse,
|
435
|
+
OperationState<ManagedCCFUpdateResponse>
|
436
|
+
>(lro, {
|
425
437
|
restoreFrom: options?.resumeFrom,
|
426
|
-
intervalInMs: options?.updateIntervalInMs
|
438
|
+
intervalInMs: options?.updateIntervalInMs,
|
427
439
|
});
|
428
440
|
await poller.poll();
|
429
441
|
return poller;
|
@@ -440,13 +452,13 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
440
452
|
resourceGroupName: string,
|
441
453
|
appName: string,
|
442
454
|
managedCCF: ManagedCCF,
|
443
|
-
options?: ManagedCCFUpdateOptionalParams
|
444
|
-
): Promise<
|
455
|
+
options?: ManagedCCFUpdateOptionalParams,
|
456
|
+
): Promise<ManagedCCFUpdateResponse> {
|
445
457
|
const poller = await this.beginUpdate(
|
446
458
|
resourceGroupName,
|
447
459
|
appName,
|
448
460
|
managedCCF,
|
449
|
-
options
|
461
|
+
options,
|
450
462
|
);
|
451
463
|
return poller.pollUntilDone();
|
452
464
|
}
|
@@ -458,11 +470,11 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
458
470
|
*/
|
459
471
|
private _listByResourceGroup(
|
460
472
|
resourceGroupName: string,
|
461
|
-
options?: ManagedCCFListByResourceGroupOptionalParams
|
473
|
+
options?: ManagedCCFListByResourceGroupOptionalParams,
|
462
474
|
): Promise<ManagedCCFListByResourceGroupResponse> {
|
463
475
|
return this.client.sendOperationRequest(
|
464
476
|
{ resourceGroupName, options },
|
465
|
-
listByResourceGroupOperationSpec
|
477
|
+
listByResourceGroupOperationSpec,
|
466
478
|
);
|
467
479
|
}
|
468
480
|
|
@@ -471,12 +483,200 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
471
483
|
* @param options The options parameters.
|
472
484
|
*/
|
473
485
|
private _listBySubscription(
|
474
|
-
options?: ManagedCCFListBySubscriptionOptionalParams
|
486
|
+
options?: ManagedCCFListBySubscriptionOptionalParams,
|
475
487
|
): Promise<ManagedCCFListBySubscriptionResponse> {
|
476
488
|
return this.client.sendOperationRequest(
|
477
489
|
{ options },
|
478
|
-
listBySubscriptionOperationSpec
|
490
|
+
listBySubscriptionOperationSpec,
|
491
|
+
);
|
492
|
+
}
|
493
|
+
|
494
|
+
/**
|
495
|
+
* Backs up a Managed CCF Resource.
|
496
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
497
|
+
* @param appName Name of the Managed CCF
|
498
|
+
* @param managedCCF Managed CCF Backup Request Body
|
499
|
+
* @param options The options parameters.
|
500
|
+
*/
|
501
|
+
async beginBackup(
|
502
|
+
resourceGroupName: string,
|
503
|
+
appName: string,
|
504
|
+
managedCCF: ManagedCCFBackup,
|
505
|
+
options?: ManagedCCFBackupOptionalParams,
|
506
|
+
): Promise<
|
507
|
+
SimplePollerLike<
|
508
|
+
OperationState<ManagedCCFBackupOperationResponse>,
|
509
|
+
ManagedCCFBackupOperationResponse
|
510
|
+
>
|
511
|
+
> {
|
512
|
+
const directSendOperation = async (
|
513
|
+
args: coreClient.OperationArguments,
|
514
|
+
spec: coreClient.OperationSpec,
|
515
|
+
): Promise<ManagedCCFBackupOperationResponse> => {
|
516
|
+
return this.client.sendOperationRequest(args, spec);
|
517
|
+
};
|
518
|
+
const sendOperationFn = async (
|
519
|
+
args: coreClient.OperationArguments,
|
520
|
+
spec: coreClient.OperationSpec,
|
521
|
+
) => {
|
522
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
523
|
+
undefined;
|
524
|
+
const providedCallback = args.options?.onResponse;
|
525
|
+
const callback: coreClient.RawResponseCallback = (
|
526
|
+
rawResponse: coreClient.FullOperationResponse,
|
527
|
+
flatResponse: unknown,
|
528
|
+
) => {
|
529
|
+
currentRawResponse = rawResponse;
|
530
|
+
providedCallback?.(rawResponse, flatResponse);
|
531
|
+
};
|
532
|
+
const updatedArgs = {
|
533
|
+
...args,
|
534
|
+
options: {
|
535
|
+
...args.options,
|
536
|
+
onResponse: callback,
|
537
|
+
},
|
538
|
+
};
|
539
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
540
|
+
return {
|
541
|
+
flatResponse,
|
542
|
+
rawResponse: {
|
543
|
+
statusCode: currentRawResponse!.status,
|
544
|
+
body: currentRawResponse!.parsedBody,
|
545
|
+
headers: currentRawResponse!.headers.toJSON(),
|
546
|
+
},
|
547
|
+
};
|
548
|
+
};
|
549
|
+
|
550
|
+
const lro = createLroSpec({
|
551
|
+
sendOperationFn,
|
552
|
+
args: { resourceGroupName, appName, managedCCF, options },
|
553
|
+
spec: backupOperationSpec,
|
554
|
+
});
|
555
|
+
const poller = await createHttpPoller<
|
556
|
+
ManagedCCFBackupOperationResponse,
|
557
|
+
OperationState<ManagedCCFBackupOperationResponse>
|
558
|
+
>(lro, {
|
559
|
+
restoreFrom: options?.resumeFrom,
|
560
|
+
intervalInMs: options?.updateIntervalInMs,
|
561
|
+
});
|
562
|
+
await poller.poll();
|
563
|
+
return poller;
|
564
|
+
}
|
565
|
+
|
566
|
+
/**
|
567
|
+
* Backs up a Managed CCF Resource.
|
568
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
569
|
+
* @param appName Name of the Managed CCF
|
570
|
+
* @param managedCCF Managed CCF Backup Request Body
|
571
|
+
* @param options The options parameters.
|
572
|
+
*/
|
573
|
+
async beginBackupAndWait(
|
574
|
+
resourceGroupName: string,
|
575
|
+
appName: string,
|
576
|
+
managedCCF: ManagedCCFBackup,
|
577
|
+
options?: ManagedCCFBackupOptionalParams,
|
578
|
+
): Promise<ManagedCCFBackupOperationResponse> {
|
579
|
+
const poller = await this.beginBackup(
|
580
|
+
resourceGroupName,
|
581
|
+
appName,
|
582
|
+
managedCCF,
|
583
|
+
options,
|
479
584
|
);
|
585
|
+
return poller.pollUntilDone();
|
586
|
+
}
|
587
|
+
|
588
|
+
/**
|
589
|
+
* Restores a Managed CCF Resource.
|
590
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
591
|
+
* @param appName Name of the Managed CCF
|
592
|
+
* @param managedCCF Managed CCF Restore Request Body
|
593
|
+
* @param options The options parameters.
|
594
|
+
*/
|
595
|
+
async beginRestore(
|
596
|
+
resourceGroupName: string,
|
597
|
+
appName: string,
|
598
|
+
managedCCF: ManagedCCFRestore,
|
599
|
+
options?: ManagedCCFRestoreOptionalParams,
|
600
|
+
): Promise<
|
601
|
+
SimplePollerLike<
|
602
|
+
OperationState<ManagedCCFRestoreOperationResponse>,
|
603
|
+
ManagedCCFRestoreOperationResponse
|
604
|
+
>
|
605
|
+
> {
|
606
|
+
const directSendOperation = async (
|
607
|
+
args: coreClient.OperationArguments,
|
608
|
+
spec: coreClient.OperationSpec,
|
609
|
+
): Promise<ManagedCCFRestoreOperationResponse> => {
|
610
|
+
return this.client.sendOperationRequest(args, spec);
|
611
|
+
};
|
612
|
+
const sendOperationFn = async (
|
613
|
+
args: coreClient.OperationArguments,
|
614
|
+
spec: coreClient.OperationSpec,
|
615
|
+
) => {
|
616
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
617
|
+
undefined;
|
618
|
+
const providedCallback = args.options?.onResponse;
|
619
|
+
const callback: coreClient.RawResponseCallback = (
|
620
|
+
rawResponse: coreClient.FullOperationResponse,
|
621
|
+
flatResponse: unknown,
|
622
|
+
) => {
|
623
|
+
currentRawResponse = rawResponse;
|
624
|
+
providedCallback?.(rawResponse, flatResponse);
|
625
|
+
};
|
626
|
+
const updatedArgs = {
|
627
|
+
...args,
|
628
|
+
options: {
|
629
|
+
...args.options,
|
630
|
+
onResponse: callback,
|
631
|
+
},
|
632
|
+
};
|
633
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
634
|
+
return {
|
635
|
+
flatResponse,
|
636
|
+
rawResponse: {
|
637
|
+
statusCode: currentRawResponse!.status,
|
638
|
+
body: currentRawResponse!.parsedBody,
|
639
|
+
headers: currentRawResponse!.headers.toJSON(),
|
640
|
+
},
|
641
|
+
};
|
642
|
+
};
|
643
|
+
|
644
|
+
const lro = createLroSpec({
|
645
|
+
sendOperationFn,
|
646
|
+
args: { resourceGroupName, appName, managedCCF, options },
|
647
|
+
spec: restoreOperationSpec,
|
648
|
+
});
|
649
|
+
const poller = await createHttpPoller<
|
650
|
+
ManagedCCFRestoreOperationResponse,
|
651
|
+
OperationState<ManagedCCFRestoreOperationResponse>
|
652
|
+
>(lro, {
|
653
|
+
restoreFrom: options?.resumeFrom,
|
654
|
+
intervalInMs: options?.updateIntervalInMs,
|
655
|
+
});
|
656
|
+
await poller.poll();
|
657
|
+
return poller;
|
658
|
+
}
|
659
|
+
|
660
|
+
/**
|
661
|
+
* Restores a Managed CCF Resource.
|
662
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
663
|
+
* @param appName Name of the Managed CCF
|
664
|
+
* @param managedCCF Managed CCF Restore Request Body
|
665
|
+
* @param options The options parameters.
|
666
|
+
*/
|
667
|
+
async beginRestoreAndWait(
|
668
|
+
resourceGroupName: string,
|
669
|
+
appName: string,
|
670
|
+
managedCCF: ManagedCCFRestore,
|
671
|
+
options?: ManagedCCFRestoreOptionalParams,
|
672
|
+
): Promise<ManagedCCFRestoreOperationResponse> {
|
673
|
+
const poller = await this.beginRestore(
|
674
|
+
resourceGroupName,
|
675
|
+
appName,
|
676
|
+
managedCCF,
|
677
|
+
options,
|
678
|
+
);
|
679
|
+
return poller.pollUntilDone();
|
480
680
|
}
|
481
681
|
|
482
682
|
/**
|
@@ -488,11 +688,11 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
488
688
|
private _listByResourceGroupNext(
|
489
689
|
resourceGroupName: string,
|
490
690
|
nextLink: string,
|
491
|
-
options?: ManagedCCFListByResourceGroupNextOptionalParams
|
691
|
+
options?: ManagedCCFListByResourceGroupNextOptionalParams,
|
492
692
|
): Promise<ManagedCCFListByResourceGroupNextResponse> {
|
493
693
|
return this.client.sendOperationRequest(
|
494
694
|
{ resourceGroupName, nextLink, options },
|
495
|
-
listByResourceGroupNextOperationSpec
|
695
|
+
listByResourceGroupNextOperationSpec,
|
496
696
|
);
|
497
697
|
}
|
498
698
|
|
@@ -503,11 +703,11 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
503
703
|
*/
|
504
704
|
private _listBySubscriptionNext(
|
505
705
|
nextLink: string,
|
506
|
-
options?: ManagedCCFListBySubscriptionNextOptionalParams
|
706
|
+
options?: ManagedCCFListBySubscriptionNextOptionalParams,
|
507
707
|
): Promise<ManagedCCFListBySubscriptionNextResponse> {
|
508
708
|
return this.client.sendOperationRequest(
|
509
709
|
{ nextLink, options },
|
510
|
-
listBySubscriptionNextOperationSpec
|
710
|
+
listBySubscriptionNextOperationSpec,
|
511
711
|
);
|
512
712
|
}
|
513
713
|
}
|
@@ -515,30 +715,28 @@ export class ManagedCCFOperationsImpl implements ManagedCCFOperations {
|
|
515
715
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
516
716
|
|
517
717
|
const getOperationSpec: coreClient.OperationSpec = {
|
518
|
-
path:
|
519
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
718
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
520
719
|
httpMethod: "GET",
|
521
720
|
responses: {
|
522
721
|
200: {
|
523
|
-
bodyMapper: Mappers.ManagedCCF
|
722
|
+
bodyMapper: Mappers.ManagedCCF,
|
524
723
|
},
|
525
724
|
default: {
|
526
|
-
bodyMapper: Mappers.ErrorResponse
|
527
|
-
}
|
725
|
+
bodyMapper: Mappers.ErrorResponse,
|
726
|
+
},
|
528
727
|
},
|
529
728
|
queryParameters: [Parameters.apiVersion],
|
530
729
|
urlParameters: [
|
531
730
|
Parameters.$host,
|
532
731
|
Parameters.subscriptionId,
|
533
732
|
Parameters.resourceGroupName,
|
534
|
-
Parameters.appName
|
733
|
+
Parameters.appName,
|
535
734
|
],
|
536
735
|
headerParameters: [Parameters.accept],
|
537
|
-
serializer
|
736
|
+
serializer,
|
538
737
|
};
|
539
738
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
540
|
-
path:
|
541
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
739
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
542
740
|
httpMethod: "DELETE",
|
543
741
|
responses: {
|
544
742
|
200: {},
|
@@ -546,39 +744,38 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
546
744
|
202: {},
|
547
745
|
204: {},
|
548
746
|
default: {
|
549
|
-
bodyMapper: Mappers.ErrorResponse
|
550
|
-
}
|
747
|
+
bodyMapper: Mappers.ErrorResponse,
|
748
|
+
},
|
551
749
|
},
|
552
750
|
queryParameters: [Parameters.apiVersion],
|
553
751
|
urlParameters: [
|
554
752
|
Parameters.$host,
|
555
753
|
Parameters.subscriptionId,
|
556
754
|
Parameters.resourceGroupName,
|
557
|
-
Parameters.appName
|
755
|
+
Parameters.appName,
|
558
756
|
],
|
559
757
|
headerParameters: [Parameters.accept],
|
560
|
-
serializer
|
758
|
+
serializer,
|
561
759
|
};
|
562
760
|
const createOperationSpec: coreClient.OperationSpec = {
|
563
|
-
path:
|
564
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
761
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
565
762
|
httpMethod: "PUT",
|
566
763
|
responses: {
|
567
764
|
200: {
|
568
|
-
bodyMapper: Mappers.ManagedCCF
|
765
|
+
bodyMapper: Mappers.ManagedCCF,
|
569
766
|
},
|
570
767
|
201: {
|
571
|
-
bodyMapper: Mappers.ManagedCCF
|
768
|
+
bodyMapper: Mappers.ManagedCCF,
|
572
769
|
},
|
573
770
|
202: {
|
574
|
-
bodyMapper: Mappers.ManagedCCF
|
771
|
+
bodyMapper: Mappers.ManagedCCF,
|
575
772
|
},
|
576
773
|
204: {
|
577
|
-
bodyMapper: Mappers.ManagedCCF
|
774
|
+
bodyMapper: Mappers.ManagedCCF,
|
578
775
|
},
|
579
776
|
default: {
|
580
|
-
bodyMapper: Mappers.ErrorResponse
|
581
|
-
}
|
777
|
+
bodyMapper: Mappers.ErrorResponse,
|
778
|
+
},
|
582
779
|
},
|
583
780
|
requestBody: Parameters.managedCCF,
|
584
781
|
queryParameters: [Parameters.apiVersion],
|
@@ -586,24 +783,31 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
586
783
|
Parameters.$host,
|
587
784
|
Parameters.subscriptionId,
|
588
785
|
Parameters.resourceGroupName,
|
589
|
-
Parameters.appName
|
786
|
+
Parameters.appName,
|
590
787
|
],
|
591
788
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
592
789
|
mediaType: "json",
|
593
|
-
serializer
|
790
|
+
serializer,
|
594
791
|
};
|
595
792
|
const updateOperationSpec: coreClient.OperationSpec = {
|
596
|
-
path:
|
597
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
793
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
598
794
|
httpMethod: "PATCH",
|
599
795
|
responses: {
|
600
|
-
200: {
|
601
|
-
|
602
|
-
|
603
|
-
|
796
|
+
200: {
|
797
|
+
bodyMapper: Mappers.ManagedCCF,
|
798
|
+
},
|
799
|
+
201: {
|
800
|
+
bodyMapper: Mappers.ManagedCCF,
|
801
|
+
},
|
802
|
+
202: {
|
803
|
+
bodyMapper: Mappers.ManagedCCF,
|
804
|
+
},
|
805
|
+
204: {
|
806
|
+
bodyMapper: Mappers.ManagedCCF,
|
807
|
+
},
|
604
808
|
default: {
|
605
|
-
bodyMapper: Mappers.ErrorResponse
|
606
|
-
}
|
809
|
+
bodyMapper: Mappers.ErrorResponse,
|
810
|
+
},
|
607
811
|
},
|
608
812
|
requestBody: Parameters.managedCCF,
|
609
813
|
queryParameters: [Parameters.apiVersion],
|
@@ -611,86 +815,148 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
611
815
|
Parameters.$host,
|
612
816
|
Parameters.subscriptionId,
|
613
817
|
Parameters.resourceGroupName,
|
614
|
-
Parameters.appName
|
818
|
+
Parameters.appName,
|
615
819
|
],
|
616
820
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
617
821
|
mediaType: "json",
|
618
|
-
serializer
|
822
|
+
serializer,
|
619
823
|
};
|
620
824
|
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
621
|
-
path:
|
622
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs",
|
825
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs",
|
623
826
|
httpMethod: "GET",
|
624
827
|
responses: {
|
625
828
|
200: {
|
626
|
-
bodyMapper: Mappers.ManagedCCFList
|
829
|
+
bodyMapper: Mappers.ManagedCCFList,
|
627
830
|
},
|
628
831
|
default: {
|
629
|
-
bodyMapper: Mappers.ErrorResponse
|
630
|
-
}
|
832
|
+
bodyMapper: Mappers.ErrorResponse,
|
833
|
+
},
|
631
834
|
},
|
632
835
|
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
633
836
|
urlParameters: [
|
634
837
|
Parameters.$host,
|
635
838
|
Parameters.subscriptionId,
|
636
|
-
Parameters.resourceGroupName
|
839
|
+
Parameters.resourceGroupName,
|
637
840
|
],
|
638
841
|
headerParameters: [Parameters.accept],
|
639
|
-
serializer
|
842
|
+
serializer,
|
640
843
|
};
|
641
844
|
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
642
|
-
path:
|
643
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/managedCCFs/",
|
845
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/managedCCFs/",
|
644
846
|
httpMethod: "GET",
|
645
847
|
responses: {
|
646
848
|
200: {
|
647
|
-
bodyMapper: Mappers.ManagedCCFList
|
849
|
+
bodyMapper: Mappers.ManagedCCFList,
|
648
850
|
},
|
649
851
|
default: {
|
650
|
-
bodyMapper: Mappers.ErrorResponse
|
651
|
-
}
|
852
|
+
bodyMapper: Mappers.ErrorResponse,
|
853
|
+
},
|
652
854
|
},
|
653
855
|
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
654
856
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
655
857
|
headerParameters: [Parameters.accept],
|
656
|
-
serializer
|
858
|
+
serializer,
|
859
|
+
};
|
860
|
+
const backupOperationSpec: coreClient.OperationSpec = {
|
861
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}/backup",
|
862
|
+
httpMethod: "POST",
|
863
|
+
responses: {
|
864
|
+
200: {
|
865
|
+
bodyMapper: Mappers.ManagedCCFBackupResponse,
|
866
|
+
},
|
867
|
+
201: {
|
868
|
+
bodyMapper: Mappers.ManagedCCFBackupResponse,
|
869
|
+
},
|
870
|
+
202: {
|
871
|
+
bodyMapper: Mappers.ManagedCCFBackupResponse,
|
872
|
+
},
|
873
|
+
204: {
|
874
|
+
bodyMapper: Mappers.ManagedCCFBackupResponse,
|
875
|
+
},
|
876
|
+
default: {
|
877
|
+
bodyMapper: Mappers.ErrorResponse,
|
878
|
+
},
|
879
|
+
},
|
880
|
+
requestBody: Parameters.managedCCF1,
|
881
|
+
queryParameters: [Parameters.apiVersion],
|
882
|
+
urlParameters: [
|
883
|
+
Parameters.$host,
|
884
|
+
Parameters.subscriptionId,
|
885
|
+
Parameters.resourceGroupName,
|
886
|
+
Parameters.appName,
|
887
|
+
],
|
888
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
889
|
+
mediaType: "json",
|
890
|
+
serializer,
|
891
|
+
};
|
892
|
+
const restoreOperationSpec: coreClient.OperationSpec = {
|
893
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}/restore",
|
894
|
+
httpMethod: "POST",
|
895
|
+
responses: {
|
896
|
+
200: {
|
897
|
+
bodyMapper: Mappers.ManagedCCFRestoreResponse,
|
898
|
+
},
|
899
|
+
201: {
|
900
|
+
bodyMapper: Mappers.ManagedCCFRestoreResponse,
|
901
|
+
},
|
902
|
+
202: {
|
903
|
+
bodyMapper: Mappers.ManagedCCFRestoreResponse,
|
904
|
+
},
|
905
|
+
204: {
|
906
|
+
bodyMapper: Mappers.ManagedCCFRestoreResponse,
|
907
|
+
},
|
908
|
+
default: {
|
909
|
+
bodyMapper: Mappers.ErrorResponse,
|
910
|
+
},
|
911
|
+
},
|
912
|
+
requestBody: Parameters.managedCCF2,
|
913
|
+
queryParameters: [Parameters.apiVersion],
|
914
|
+
urlParameters: [
|
915
|
+
Parameters.$host,
|
916
|
+
Parameters.subscriptionId,
|
917
|
+
Parameters.resourceGroupName,
|
918
|
+
Parameters.appName,
|
919
|
+
],
|
920
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
921
|
+
mediaType: "json",
|
922
|
+
serializer,
|
657
923
|
};
|
658
924
|
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
659
925
|
path: "{nextLink}",
|
660
926
|
httpMethod: "GET",
|
661
927
|
responses: {
|
662
928
|
200: {
|
663
|
-
bodyMapper: Mappers.ManagedCCFList
|
929
|
+
bodyMapper: Mappers.ManagedCCFList,
|
664
930
|
},
|
665
931
|
default: {
|
666
|
-
bodyMapper: Mappers.ErrorResponse
|
667
|
-
}
|
932
|
+
bodyMapper: Mappers.ErrorResponse,
|
933
|
+
},
|
668
934
|
},
|
669
935
|
urlParameters: [
|
670
936
|
Parameters.$host,
|
671
937
|
Parameters.nextLink,
|
672
938
|
Parameters.subscriptionId,
|
673
|
-
Parameters.resourceGroupName
|
939
|
+
Parameters.resourceGroupName,
|
674
940
|
],
|
675
941
|
headerParameters: [Parameters.accept],
|
676
|
-
serializer
|
942
|
+
serializer,
|
677
943
|
};
|
678
944
|
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
679
945
|
path: "{nextLink}",
|
680
946
|
httpMethod: "GET",
|
681
947
|
responses: {
|
682
948
|
200: {
|
683
|
-
bodyMapper: Mappers.ManagedCCFList
|
949
|
+
bodyMapper: Mappers.ManagedCCFList,
|
684
950
|
},
|
685
951
|
default: {
|
686
|
-
bodyMapper: Mappers.ErrorResponse
|
687
|
-
}
|
952
|
+
bodyMapper: Mappers.ErrorResponse,
|
953
|
+
},
|
688
954
|
},
|
689
955
|
urlParameters: [
|
690
956
|
Parameters.$host,
|
691
957
|
Parameters.nextLink,
|
692
|
-
Parameters.subscriptionId
|
958
|
+
Parameters.subscriptionId,
|
693
959
|
],
|
694
960
|
headerParameters: [Parameters.accept],
|
695
|
-
serializer
|
961
|
+
serializer,
|
696
962
|
};
|