@azure/arm-elasticsan 1.2.0-alpha.20250718.1 → 1.2.0-alpha.20250721.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/elasticSanManagement.js +32 -11
- package/dist/browser/elasticSanManagement.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 +42 -17
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/elasticSans.js +78 -97
- package/dist/browser/operations/elasticSans.js.map +1 -1
- package/dist/browser/operations/operations.js +10 -27
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +32 -39
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/skus.js +10 -27
- package/dist/browser/operations/skus.js.map +1 -1
- package/dist/browser/operations/volumeGroups.js +56 -58
- package/dist/browser/operations/volumeGroups.js.map +1 -1
- package/dist/browser/operations/volumeSnapshots.js +45 -52
- package/dist/browser/operations/volumeSnapshots.js.map +1 -1
- package/dist/browser/operations/volumes.js +78 -70
- package/dist/browser/operations/volumes.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/elasticSanManagement.js +32 -11
- package/dist/commonjs/elasticSanManagement.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 +42 -17
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/elasticSans.js +78 -96
- package/dist/commonjs/operations/elasticSans.js.map +1 -1
- package/dist/commonjs/operations/operations.js +10 -26
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/skus.js +10 -26
- package/dist/commonjs/operations/skus.js.map +1 -1
- package/dist/commonjs/operations/volumeGroups.js +56 -57
- package/dist/commonjs/operations/volumeGroups.js.map +1 -1
- package/dist/commonjs/operations/volumeSnapshots.js +45 -51
- package/dist/commonjs/operations/volumeSnapshots.js.map +1 -1
- package/dist/commonjs/operations/volumes.js +78 -69
- package/dist/commonjs/operations/volumes.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/esm/elasticSanManagement.js +32 -11
- package/dist/esm/elasticSanManagement.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 +42 -17
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/elasticSans.js +78 -97
- package/dist/esm/operations/elasticSans.js.map +1 -1
- package/dist/esm/operations/operations.js +10 -27
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +32 -39
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/skus.js +10 -27
- package/dist/esm/operations/skus.js.map +1 -1
- package/dist/esm/operations/volumeGroups.js +56 -58
- package/dist/esm/operations/volumeGroups.js.map +1 -1
- package/dist/esm/operations/volumeSnapshots.js +45 -52
- package/dist/esm/operations/volumeSnapshots.js.map +1 -1
- package/dist/esm/operations/volumes.js +78 -70
- package/dist/esm/operations/volumes.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/elasticSanManagement.js +32 -11
- package/dist/react-native/elasticSanManagement.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 +42 -17
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/elasticSans.js +78 -97
- package/dist/react-native/operations/elasticSans.js.map +1 -1
- package/dist/react-native/operations/operations.js +10 -27
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +32 -39
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/skus.js +10 -27
- package/dist/react-native/operations/skus.js.map +1 -1
- package/dist/react-native/operations/volumeGroups.js +56 -58
- package/dist/react-native/operations/volumeGroups.js.map +1 -1
- package/dist/react-native/operations/volumeSnapshots.js +45 -52
- package/dist/react-native/operations/volumeSnapshots.js.map +1 -1
- package/dist/react-native/operations/volumes.js +78 -70
- package/dist/react-native/operations/volumes.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
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Volumes operations. */
|
|
20
20
|
class VolumesImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Volumes class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -42,52 +43,35 @@ class VolumesImpl {
|
|
|
42
43
|
return this;
|
|
43
44
|
},
|
|
44
45
|
byPage: (settings) => {
|
|
45
|
-
if (settings
|
|
46
|
+
if (settings?.maxPageSize) {
|
|
46
47
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
48
|
}
|
|
48
49
|
return this.listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings);
|
|
49
50
|
},
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
|
-
listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
});
|
|
53
|
+
async *listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings) {
|
|
54
|
+
let result;
|
|
55
|
+
let continuationToken = settings?.continuationToken;
|
|
56
|
+
if (!continuationToken) {
|
|
57
|
+
result = await this._listByVolumeGroup(resourceGroupName, elasticSanName, volumeGroupName, options);
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listByVolumeGroupNext(resourceGroupName, elasticSanName, volumeGroupName, continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
let page = result.value || [];
|
|
67
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
68
|
+
yield page;
|
|
69
|
+
}
|
|
71
70
|
}
|
|
72
|
-
listByVolumeGroupPagingAll(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
77
|
-
_c = _f.value;
|
|
78
|
-
_d = false;
|
|
79
|
-
const page = _c;
|
|
80
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
84
|
-
finally {
|
|
85
|
-
try {
|
|
86
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
87
|
-
}
|
|
88
|
-
finally { if (e_1) throw e_1.error; }
|
|
89
|
-
}
|
|
90
|
-
});
|
|
71
|
+
async *listByVolumeGroupPagingAll(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
72
|
+
for await (const page of this.listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options)) {
|
|
73
|
+
yield* page;
|
|
74
|
+
}
|
|
91
75
|
}
|
|
92
76
|
/**
|
|
93
77
|
* Create a Volume.
|
|
@@ -103,14 +87,19 @@ class VolumesImpl {
|
|
|
103
87
|
return this.client.sendOperationRequest(args, spec);
|
|
104
88
|
};
|
|
105
89
|
const sendOperationFn = async (args, spec) => {
|
|
106
|
-
var _a;
|
|
107
90
|
let currentRawResponse = undefined;
|
|
108
|
-
const providedCallback =
|
|
91
|
+
const providedCallback = args.options?.onResponse;
|
|
109
92
|
const callback = (rawResponse, flatResponse) => {
|
|
110
93
|
currentRawResponse = rawResponse;
|
|
111
|
-
providedCallback
|
|
94
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
95
|
+
};
|
|
96
|
+
const updatedArgs = {
|
|
97
|
+
...args,
|
|
98
|
+
options: {
|
|
99
|
+
...args.options,
|
|
100
|
+
onResponse: callback,
|
|
101
|
+
},
|
|
112
102
|
};
|
|
113
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
114
103
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
115
104
|
return {
|
|
116
105
|
flatResponse,
|
|
@@ -134,8 +123,8 @@ class VolumesImpl {
|
|
|
134
123
|
spec: createOperationSpec,
|
|
135
124
|
});
|
|
136
125
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
137
|
-
restoreFrom: options
|
|
138
|
-
intervalInMs: options
|
|
126
|
+
restoreFrom: options?.resumeFrom,
|
|
127
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
139
128
|
resourceLocationConfig: "location",
|
|
140
129
|
});
|
|
141
130
|
await poller.poll();
|
|
@@ -168,14 +157,19 @@ class VolumesImpl {
|
|
|
168
157
|
return this.client.sendOperationRequest(args, spec);
|
|
169
158
|
};
|
|
170
159
|
const sendOperationFn = async (args, spec) => {
|
|
171
|
-
var _a;
|
|
172
160
|
let currentRawResponse = undefined;
|
|
173
|
-
const providedCallback =
|
|
161
|
+
const providedCallback = args.options?.onResponse;
|
|
174
162
|
const callback = (rawResponse, flatResponse) => {
|
|
175
163
|
currentRawResponse = rawResponse;
|
|
176
|
-
providedCallback
|
|
164
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
165
|
+
};
|
|
166
|
+
const updatedArgs = {
|
|
167
|
+
...args,
|
|
168
|
+
options: {
|
|
169
|
+
...args.options,
|
|
170
|
+
onResponse: callback,
|
|
171
|
+
},
|
|
177
172
|
};
|
|
178
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
179
173
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
180
174
|
return {
|
|
181
175
|
flatResponse,
|
|
@@ -199,8 +193,8 @@ class VolumesImpl {
|
|
|
199
193
|
spec: updateOperationSpec,
|
|
200
194
|
});
|
|
201
195
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
202
|
-
restoreFrom: options
|
|
203
|
-
intervalInMs: options
|
|
196
|
+
restoreFrom: options?.resumeFrom,
|
|
197
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
204
198
|
resourceLocationConfig: "location",
|
|
205
199
|
});
|
|
206
200
|
await poller.poll();
|
|
@@ -232,14 +226,19 @@ class VolumesImpl {
|
|
|
232
226
|
return this.client.sendOperationRequest(args, spec);
|
|
233
227
|
};
|
|
234
228
|
const sendOperationFn = async (args, spec) => {
|
|
235
|
-
var _a;
|
|
236
229
|
let currentRawResponse = undefined;
|
|
237
|
-
const providedCallback =
|
|
230
|
+
const providedCallback = args.options?.onResponse;
|
|
238
231
|
const callback = (rawResponse, flatResponse) => {
|
|
239
232
|
currentRawResponse = rawResponse;
|
|
240
|
-
providedCallback
|
|
233
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
234
|
+
};
|
|
235
|
+
const updatedArgs = {
|
|
236
|
+
...args,
|
|
237
|
+
options: {
|
|
238
|
+
...args.options,
|
|
239
|
+
onResponse: callback,
|
|
240
|
+
},
|
|
241
241
|
};
|
|
242
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
243
242
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
244
243
|
return {
|
|
245
244
|
flatResponse,
|
|
@@ -262,8 +261,8 @@ class VolumesImpl {
|
|
|
262
261
|
spec: deleteOperationSpec,
|
|
263
262
|
});
|
|
264
263
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
265
|
-
restoreFrom: options
|
|
266
|
-
intervalInMs: options
|
|
264
|
+
restoreFrom: options?.resumeFrom,
|
|
265
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
267
266
|
resourceLocationConfig: "location",
|
|
268
267
|
});
|
|
269
268
|
await poller.poll();
|
|
@@ -322,14 +321,19 @@ class VolumesImpl {
|
|
|
322
321
|
return this.client.sendOperationRequest(args, spec);
|
|
323
322
|
};
|
|
324
323
|
const sendOperationFn = async (args, spec) => {
|
|
325
|
-
var _a;
|
|
326
324
|
let currentRawResponse = undefined;
|
|
327
|
-
const providedCallback =
|
|
325
|
+
const providedCallback = args.options?.onResponse;
|
|
328
326
|
const callback = (rawResponse, flatResponse) => {
|
|
329
327
|
currentRawResponse = rawResponse;
|
|
330
|
-
providedCallback
|
|
328
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
329
|
+
};
|
|
330
|
+
const updatedArgs = {
|
|
331
|
+
...args,
|
|
332
|
+
options: {
|
|
333
|
+
...args.options,
|
|
334
|
+
onResponse: callback,
|
|
335
|
+
},
|
|
331
336
|
};
|
|
332
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
333
337
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
334
338
|
return {
|
|
335
339
|
flatResponse,
|
|
@@ -352,8 +356,8 @@ class VolumesImpl {
|
|
|
352
356
|
spec: preBackupOperationSpec,
|
|
353
357
|
});
|
|
354
358
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
355
|
-
restoreFrom: options
|
|
356
|
-
intervalInMs: options
|
|
359
|
+
restoreFrom: options?.resumeFrom,
|
|
360
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
357
361
|
resourceLocationConfig: "location",
|
|
358
362
|
});
|
|
359
363
|
await poller.poll();
|
|
@@ -387,14 +391,19 @@ class VolumesImpl {
|
|
|
387
391
|
return this.client.sendOperationRequest(args, spec);
|
|
388
392
|
};
|
|
389
393
|
const sendOperationFn = async (args, spec) => {
|
|
390
|
-
var _a;
|
|
391
394
|
let currentRawResponse = undefined;
|
|
392
|
-
const providedCallback =
|
|
395
|
+
const providedCallback = args.options?.onResponse;
|
|
393
396
|
const callback = (rawResponse, flatResponse) => {
|
|
394
397
|
currentRawResponse = rawResponse;
|
|
395
|
-
providedCallback
|
|
398
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
399
|
+
};
|
|
400
|
+
const updatedArgs = {
|
|
401
|
+
...args,
|
|
402
|
+
options: {
|
|
403
|
+
...args.options,
|
|
404
|
+
onResponse: callback,
|
|
405
|
+
},
|
|
396
406
|
};
|
|
397
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
398
407
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
399
408
|
return {
|
|
400
409
|
flatResponse,
|
|
@@ -417,8 +426,8 @@ class VolumesImpl {
|
|
|
417
426
|
spec: preRestoreOperationSpec,
|
|
418
427
|
});
|
|
419
428
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
420
|
-
restoreFrom: options
|
|
421
|
-
intervalInMs: options
|
|
429
|
+
restoreFrom: options?.resumeFrom,
|
|
430
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
422
431
|
resourceLocationConfig: "location",
|
|
423
432
|
});
|
|
424
433
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumes.js","sourceRoot":"","sources":["../../../src/operations/volumes.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAuB9C,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAa,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,iBAAiB,CACtB,iBAAyB,EACzB,cAAsB,EACtB,eAAuB,EACvB,OAAgD;QAEhD,MAAM,IAAI,GAAG,IAAI,CAAC,0BAA0B,CAC1C,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,OAAO,CACR,CAAC;QACF,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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E,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,6BAA6B;KACzC;IACD,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 { Volumes } 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 { ElasticSanManagement } from \"../elasticSanManagement.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Volume,\n VolumesListByVolumeGroupNextOptionalParams,\n VolumesListByVolumeGroupOptionalParams,\n VolumesListByVolumeGroupResponse,\n VolumesCreateOptionalParams,\n VolumesCreateResponse,\n VolumeUpdate,\n VolumesUpdateOptionalParams,\n VolumesUpdateResponse,\n VolumesDeleteOptionalParams,\n VolumesGetOptionalParams,\n VolumesGetResponse,\n VolumeNameList,\n VolumesPreBackupOptionalParams,\n VolumesPreBackupResponse,\n DiskSnapshotList,\n VolumesPreRestoreOptionalParams,\n VolumesPreRestoreResponse,\n VolumesListByVolumeGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Volumes operations. */\nexport class VolumesImpl implements Volumes {\n private readonly client: ElasticSanManagement;\n\n /**\n * Initialize a new instance of the class Volumes class.\n * @param client Reference to the service client\n */\n constructor(client: ElasticSanManagement) {\n this.client = client;\n }\n\n /**\n * List Volumes in a VolumeGroup.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param options The options parameters.\n */\n public listByVolumeGroup(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n options?: VolumesListByVolumeGroupOptionalParams,\n ): PagedAsyncIterableIterator<Volume> {\n const iter = this.listByVolumeGroupPagingAll(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n options,\n );\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.listByVolumeGroupPagingPage(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByVolumeGroupPagingPage(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n options?: VolumesListByVolumeGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Volume[]> {\n let result: VolumesListByVolumeGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByVolumeGroup(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByVolumeGroupNext(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\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 *listByVolumeGroupPagingAll(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n options?: VolumesListByVolumeGroupOptionalParams,\n ): AsyncIterableIterator<Volume> {\n for await (const page of this.listByVolumeGroupPagingPage(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Create a Volume.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param volumeName The name of the Volume.\n * @param parameters Volume object.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n volumeName: string,\n parameters: Volume,\n options?: VolumesCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<VolumesCreateResponse>,\n VolumesCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VolumesCreateResponse> => {\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: {\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n volumeName,\n parameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n VolumesCreateResponse,\n OperationState<VolumesCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a Volume.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param volumeName The name of the Volume.\n * @param parameters Volume object.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n volumeName: string,\n parameters: Volume,\n options?: VolumesCreateOptionalParams,\n ): Promise<VolumesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n volumeName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an Volume.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param volumeName The name of the Volume.\n * @param parameters Volume object.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n volumeName: string,\n parameters: VolumeUpdate,\n options?: VolumesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<VolumesUpdateResponse>,\n VolumesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VolumesUpdateResponse> => {\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: {\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n volumeName,\n parameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n VolumesUpdateResponse,\n OperationState<VolumesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an Volume.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param volumeName The name of the Volume.\n * @param parameters Volume object.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n volumeName: string,\n parameters: VolumeUpdate,\n options?: VolumesUpdateOptionalParams,\n ): Promise<VolumesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n volumeName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete an Volume.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param volumeName The name of the Volume.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n volumeName: string,\n options?: VolumesDeleteOptionalParams,\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: {\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n volumeName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete an Volume.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param volumeName The name of the Volume.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n volumeName: string,\n options?: VolumesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n volumeName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get an Volume.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param volumeName The name of the Volume.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n volumeName: string,\n options?: VolumesGetOptionalParams,\n ): Promise<VolumesGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n volumeName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * List Volumes in a VolumeGroup.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param options The options parameters.\n */\n private _listByVolumeGroup(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n options?: VolumesListByVolumeGroupOptionalParams,\n ): Promise<VolumesListByVolumeGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, elasticSanName, volumeGroupName, options },\n listByVolumeGroupOperationSpec,\n );\n }\n\n /**\n * Validate whether a disk snapshot backup can be taken for list of volumes.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param parameters Volume Name List (currently only one volume name in the list is supported. Server\n * would return error if list is bigger)\n * @param options The options parameters.\n */\n async beginPreBackup(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n parameters: VolumeNameList,\n options?: VolumesPreBackupOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<VolumesPreBackupResponse>,\n VolumesPreBackupResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VolumesPreBackupResponse> => {\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: {\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n parameters,\n options,\n },\n spec: preBackupOperationSpec,\n });\n const poller = await createHttpPoller<\n VolumesPreBackupResponse,\n OperationState<VolumesPreBackupResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Validate whether a disk snapshot backup can be taken for list of volumes.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param parameters Volume Name List (currently only one volume name in the list is supported. Server\n * would return error if list is bigger)\n * @param options The options parameters.\n */\n async beginPreBackupAndWait(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n parameters: VolumeNameList,\n options?: VolumesPreBackupOptionalParams,\n ): Promise<VolumesPreBackupResponse> {\n const poller = await this.beginPreBackup(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Validate whether a list of backed up disk snapshots can be restored into ElasticSan volumes.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param parameters Disk Snapshot List (currently only one Disk Snapshot in the list is supported and\n * that the Disk Snapshot must be in same azure region as the ElasticSan. Server would return error if\n * list is bigger)\n * @param options The options parameters.\n */\n async beginPreRestore(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n parameters: DiskSnapshotList,\n options?: VolumesPreRestoreOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<VolumesPreRestoreResponse>,\n VolumesPreRestoreResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VolumesPreRestoreResponse> => {\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: {\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n parameters,\n options,\n },\n spec: preRestoreOperationSpec,\n });\n const poller = await createHttpPoller<\n VolumesPreRestoreResponse,\n OperationState<VolumesPreRestoreResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Validate whether a list of backed up disk snapshots can be restored into ElasticSan volumes.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param parameters Disk Snapshot List (currently only one Disk Snapshot in the list is supported and\n * that the Disk Snapshot must be in same azure region as the ElasticSan. Server would return error if\n * list is bigger)\n * @param options The options parameters.\n */\n async beginPreRestoreAndWait(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n parameters: DiskSnapshotList,\n options?: VolumesPreRestoreOptionalParams,\n ): Promise<VolumesPreRestoreResponse> {\n const poller = await this.beginPreRestore(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByVolumeGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param nextLink The nextLink from the previous successful call to the ListByVolumeGroup method.\n * @param options The options parameters.\n */\n private _listByVolumeGroupNext(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n nextLink: string,\n options?: VolumesListByVolumeGroupNextOptionalParams,\n ): Promise<VolumesListByVolumeGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, elasticSanName, volumeGroupName, nextLink, options },\n listByVolumeGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Volume,\n },\n 201: {\n bodyMapper: Mappers.Volume,\n },\n 202: {\n bodyMapper: Mappers.Volume,\n },\n 204: {\n bodyMapper: Mappers.Volume,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.elasticSanName,\n Parameters.volumeGroupName,\n Parameters.volumeName,\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.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Volume,\n },\n 201: {\n bodyMapper: Mappers.Volume,\n },\n 202: {\n bodyMapper: Mappers.Volume,\n },\n 204: {\n bodyMapper: Mappers.Volume,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.elasticSanName,\n Parameters.volumeGroupName,\n Parameters.volumeName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}\",\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, Parameters.deleteType],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.elasticSanName,\n Parameters.volumeGroupName,\n Parameters.volumeName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.xMsDeleteSnapshots,\n Parameters.xMsForceDelete,\n ],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Volume,\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.elasticSanName,\n Parameters.volumeGroupName,\n Parameters.volumeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByVolumeGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VolumeList,\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.elasticSanName,\n Parameters.volumeGroupName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.xMsAccessSoftDeletedResources,\n ],\n serializer,\n};\nconst preBackupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/preBackup\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n 201: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n 202: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n 204: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.elasticSanName,\n Parameters.volumeGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst preRestoreOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/preRestore\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n 201: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n 202: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n 204: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters7,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.elasticSanName,\n Parameters.volumeGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByVolumeGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VolumeList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.elasticSanName,\n Parameters.nextLink,\n Parameters.volumeGroupName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.xMsAccessSoftDeletedResources,\n ],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file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UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,6BAA6B;KACzC;IACD,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 { Volumes } 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 { ElasticSanManagement } from \"../elasticSanManagement.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Volume,\n VolumesListByVolumeGroupNextOptionalParams,\n VolumesListByVolumeGroupOptionalParams,\n VolumesListByVolumeGroupResponse,\n VolumesCreateOptionalParams,\n VolumesCreateResponse,\n VolumeUpdate,\n VolumesUpdateOptionalParams,\n VolumesUpdateResponse,\n VolumesDeleteOptionalParams,\n VolumesGetOptionalParams,\n VolumesGetResponse,\n VolumeNameList,\n VolumesPreBackupOptionalParams,\n VolumesPreBackupResponse,\n DiskSnapshotList,\n VolumesPreRestoreOptionalParams,\n VolumesPreRestoreResponse,\n VolumesListByVolumeGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Volumes operations. */\nexport class VolumesImpl implements Volumes {\n private readonly client: ElasticSanManagement;\n\n /**\n * Initialize a new instance of the class Volumes class.\n * @param client Reference to the service client\n */\n constructor(client: ElasticSanManagement) {\n this.client = client;\n }\n\n /**\n * List Volumes in a VolumeGroup.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param options The options parameters.\n */\n public listByVolumeGroup(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n options?: VolumesListByVolumeGroupOptionalParams,\n ): PagedAsyncIterableIterator<Volume> {\n const iter = this.listByVolumeGroupPagingAll(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n options,\n );\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.listByVolumeGroupPagingPage(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByVolumeGroupPagingPage(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n options?: VolumesListByVolumeGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Volume[]> {\n let result: VolumesListByVolumeGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByVolumeGroup(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByVolumeGroupNext(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\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 *listByVolumeGroupPagingAll(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n options?: VolumesListByVolumeGroupOptionalParams,\n ): AsyncIterableIterator<Volume> {\n for await (const page of this.listByVolumeGroupPagingPage(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Create a Volume.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param volumeName The name of the Volume.\n * @param parameters Volume object.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n volumeName: string,\n parameters: Volume,\n options?: VolumesCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<VolumesCreateResponse>,\n VolumesCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VolumesCreateResponse> => {\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: {\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n volumeName,\n parameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n VolumesCreateResponse,\n OperationState<VolumesCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a Volume.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param volumeName The name of the Volume.\n * @param parameters Volume object.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n volumeName: string,\n parameters: Volume,\n options?: VolumesCreateOptionalParams,\n ): Promise<VolumesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n volumeName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an Volume.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param volumeName The name of the Volume.\n * @param parameters Volume object.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n volumeName: string,\n parameters: VolumeUpdate,\n options?: VolumesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<VolumesUpdateResponse>,\n VolumesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VolumesUpdateResponse> => {\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: {\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n volumeName,\n parameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n VolumesUpdateResponse,\n OperationState<VolumesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an Volume.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param volumeName The name of the Volume.\n * @param parameters Volume object.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n volumeName: string,\n parameters: VolumeUpdate,\n options?: VolumesUpdateOptionalParams,\n ): Promise<VolumesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n volumeName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete an Volume.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param volumeName The name of the Volume.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n volumeName: string,\n options?: VolumesDeleteOptionalParams,\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: {\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n volumeName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete an Volume.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param volumeName The name of the Volume.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n volumeName: string,\n options?: VolumesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n volumeName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get an Volume.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param volumeName The name of the Volume.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n volumeName: string,\n options?: VolumesGetOptionalParams,\n ): Promise<VolumesGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n volumeName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * List Volumes in a VolumeGroup.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param options The options parameters.\n */\n private _listByVolumeGroup(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n options?: VolumesListByVolumeGroupOptionalParams,\n ): Promise<VolumesListByVolumeGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, elasticSanName, volumeGroupName, options },\n listByVolumeGroupOperationSpec,\n );\n }\n\n /**\n * Validate whether a disk snapshot backup can be taken for list of volumes.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param parameters Volume Name List (currently only one volume name in the list is supported. Server\n * would return error if list is bigger)\n * @param options The options parameters.\n */\n async beginPreBackup(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n parameters: VolumeNameList,\n options?: VolumesPreBackupOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<VolumesPreBackupResponse>,\n VolumesPreBackupResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VolumesPreBackupResponse> => {\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: {\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n parameters,\n options,\n },\n spec: preBackupOperationSpec,\n });\n const poller = await createHttpPoller<\n VolumesPreBackupResponse,\n OperationState<VolumesPreBackupResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Validate whether a disk snapshot backup can be taken for list of volumes.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param parameters Volume Name List (currently only one volume name in the list is supported. Server\n * would return error if list is bigger)\n * @param options The options parameters.\n */\n async beginPreBackupAndWait(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n parameters: VolumeNameList,\n options?: VolumesPreBackupOptionalParams,\n ): Promise<VolumesPreBackupResponse> {\n const poller = await this.beginPreBackup(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Validate whether a list of backed up disk snapshots can be restored into ElasticSan volumes.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param parameters Disk Snapshot List (currently only one Disk Snapshot in the list is supported and\n * that the Disk Snapshot must be in same azure region as the ElasticSan. Server would return error if\n * list is bigger)\n * @param options The options parameters.\n */\n async beginPreRestore(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n parameters: DiskSnapshotList,\n options?: VolumesPreRestoreOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<VolumesPreRestoreResponse>,\n VolumesPreRestoreResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VolumesPreRestoreResponse> => {\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: {\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n parameters,\n options,\n },\n spec: preRestoreOperationSpec,\n });\n const poller = await createHttpPoller<\n VolumesPreRestoreResponse,\n OperationState<VolumesPreRestoreResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Validate whether a list of backed up disk snapshots can be restored into ElasticSan volumes.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param parameters Disk Snapshot List (currently only one Disk Snapshot in the list is supported and\n * that the Disk Snapshot must be in same azure region as the ElasticSan. Server would return error if\n * list is bigger)\n * @param options The options parameters.\n */\n async beginPreRestoreAndWait(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n parameters: DiskSnapshotList,\n options?: VolumesPreRestoreOptionalParams,\n ): Promise<VolumesPreRestoreResponse> {\n const poller = await this.beginPreRestore(\n resourceGroupName,\n elasticSanName,\n volumeGroupName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByVolumeGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param elasticSanName The name of the ElasticSan.\n * @param volumeGroupName The name of the VolumeGroup.\n * @param nextLink The nextLink from the previous successful call to the ListByVolumeGroup method.\n * @param options The options parameters.\n */\n private _listByVolumeGroupNext(\n resourceGroupName: string,\n elasticSanName: string,\n volumeGroupName: string,\n nextLink: string,\n options?: VolumesListByVolumeGroupNextOptionalParams,\n ): Promise<VolumesListByVolumeGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, elasticSanName, volumeGroupName, nextLink, options },\n listByVolumeGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Volume,\n },\n 201: {\n bodyMapper: Mappers.Volume,\n },\n 202: {\n bodyMapper: Mappers.Volume,\n },\n 204: {\n bodyMapper: Mappers.Volume,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.elasticSanName,\n Parameters.volumeGroupName,\n Parameters.volumeName,\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.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Volume,\n },\n 201: {\n bodyMapper: Mappers.Volume,\n },\n 202: {\n bodyMapper: Mappers.Volume,\n },\n 204: {\n bodyMapper: Mappers.Volume,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.elasticSanName,\n Parameters.volumeGroupName,\n Parameters.volumeName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}\",\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, Parameters.deleteType],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.elasticSanName,\n Parameters.volumeGroupName,\n Parameters.volumeName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.xMsDeleteSnapshots,\n Parameters.xMsForceDelete,\n ],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Volume,\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.elasticSanName,\n Parameters.volumeGroupName,\n Parameters.volumeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByVolumeGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VolumeList,\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.elasticSanName,\n Parameters.volumeGroupName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.xMsAccessSoftDeletedResources,\n ],\n serializer,\n};\nconst preBackupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/preBackup\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n 201: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n 202: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n 204: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.elasticSanName,\n Parameters.volumeGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst preRestoreOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/preRestore\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n 201: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n 202: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n 204: {\n bodyMapper: Mappers.PreValidationResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters7,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.elasticSanName,\n Parameters.volumeGroupName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByVolumeGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VolumeList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.elasticSanName,\n Parameters.nextLink,\n Parameters.volumeGroupName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.xMsAccessSoftDeletedResources,\n ],\n serializer,\n};\n"]}
|
|
@@ -18,18 +18,16 @@ const pageMap = new WeakMap();
|
|
|
18
18
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
19
19
|
*/
|
|
20
20
|
function getContinuationToken(page) {
|
|
21
|
-
var _a;
|
|
22
21
|
if (typeof page !== "object" || page === null) {
|
|
23
22
|
return undefined;
|
|
24
23
|
}
|
|
25
|
-
return
|
|
24
|
+
return pageMap.get(page)?.continuationToken;
|
|
26
25
|
}
|
|
27
26
|
function setContinuationToken(page, continuationToken) {
|
|
28
|
-
var _a;
|
|
29
27
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
30
28
|
return;
|
|
31
29
|
}
|
|
32
|
-
const pageInfo =
|
|
30
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
33
31
|
pageInfo.continuationToken = continuationToken;
|
|
34
32
|
pageMap.set(page, pageInfo);
|
|
35
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -13,6 +13,9 @@ import { OperationsImpl, SkusImpl, ElasticSansImpl, VolumeGroupsImpl, VolumesImp
|
|
|
13
13
|
import * as Parameters from "./models/parameters.js";
|
|
14
14
|
import * as Mappers from "./models/mappers.js";
|
|
15
15
|
export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
16
|
+
$host;
|
|
17
|
+
apiVersion;
|
|
18
|
+
subscriptionId;
|
|
16
19
|
/**
|
|
17
20
|
* Initializes a new instance of the ElasticSanManagement class.
|
|
18
21
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -20,7 +23,6 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
20
23
|
* @param options The parameter options
|
|
21
24
|
*/
|
|
22
25
|
constructor(credentials, subscriptionId, options) {
|
|
23
|
-
var _a, _b, _c;
|
|
24
26
|
if (credentials === undefined) {
|
|
25
27
|
throw new Error("'credentials' cannot be null");
|
|
26
28
|
}
|
|
@@ -39,12 +41,17 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
39
41
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
40
42
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
41
43
|
: `${packageDetails}`;
|
|
42
|
-
const optionsWithDefaults =
|
|
44
|
+
const optionsWithDefaults = {
|
|
45
|
+
...defaults,
|
|
46
|
+
...options,
|
|
47
|
+
userAgentOptions: {
|
|
43
48
|
userAgentPrefix,
|
|
44
|
-
},
|
|
49
|
+
},
|
|
50
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
51
|
+
};
|
|
45
52
|
super(optionsWithDefaults);
|
|
46
53
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
47
|
-
if (
|
|
54
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
48
55
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
49
56
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
50
57
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -58,7 +65,8 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
58
65
|
});
|
|
59
66
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
60
67
|
credential: credentials,
|
|
61
|
-
scopes:
|
|
68
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
69
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
62
70
|
challengeCallbacks: {
|
|
63
71
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
64
72
|
},
|
|
@@ -118,14 +126,19 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
118
126
|
return this.sendOperationRequest(args, spec);
|
|
119
127
|
};
|
|
120
128
|
const sendOperationFn = async (args, spec) => {
|
|
121
|
-
var _a;
|
|
122
129
|
let currentRawResponse = undefined;
|
|
123
|
-
const providedCallback =
|
|
130
|
+
const providedCallback = args.options?.onResponse;
|
|
124
131
|
const callback = (rawResponse, flatResponse) => {
|
|
125
132
|
currentRawResponse = rawResponse;
|
|
126
|
-
providedCallback
|
|
133
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
134
|
+
};
|
|
135
|
+
const updatedArgs = {
|
|
136
|
+
...args,
|
|
137
|
+
options: {
|
|
138
|
+
...args.options,
|
|
139
|
+
onResponse: callback,
|
|
140
|
+
},
|
|
127
141
|
};
|
|
128
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
129
142
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
130
143
|
return {
|
|
131
144
|
flatResponse,
|
|
@@ -148,8 +161,8 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
148
161
|
spec: restoreVolumeOperationSpec,
|
|
149
162
|
});
|
|
150
163
|
const poller = await createHttpPoller(lro, {
|
|
151
|
-
restoreFrom: options
|
|
152
|
-
intervalInMs: options
|
|
164
|
+
restoreFrom: options?.resumeFrom,
|
|
165
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
153
166
|
resourceLocationConfig: "location",
|
|
154
167
|
});
|
|
155
168
|
await poller.poll();
|
|
@@ -168,6 +181,14 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
|
|
|
168
181
|
const poller = await this.beginRestoreVolume(resourceGroupName, elasticSanName, volumeGroupName, volumeName, options);
|
|
169
182
|
return poller.pollUntilDone();
|
|
170
183
|
}
|
|
184
|
+
operations;
|
|
185
|
+
skus;
|
|
186
|
+
elasticSans;
|
|
187
|
+
volumeGroups;
|
|
188
|
+
volumes;
|
|
189
|
+
privateEndpointConnections;
|
|
190
|
+
privateLinkResources;
|
|
191
|
+
volumeSnapshots;
|
|
171
192
|
}
|
|
172
193
|
// Operation Specifications
|
|
173
194
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|