@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
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing Volumes operations. */
|
|
17
16
|
export class VolumesImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Volumes class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -39,52 +39,35 @@ export class VolumesImpl {
|
|
|
39
39
|
return this;
|
|
40
40
|
},
|
|
41
41
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
43
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
44
|
}
|
|
45
45
|
return this.listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings);
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
49
|
+
async *listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._listByVolumeGroup(resourceGroupName, elasticSanName, volumeGroupName, options);
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
setContinuationToken(page, continuationToken);
|
|
57
|
+
yield page;
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = await this._listByVolumeGroupNext(resourceGroupName, elasticSanName, volumeGroupName, continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
setContinuationToken(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
68
66
|
}
|
|
69
|
-
listByVolumeGroupPagingAll(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = __asyncValues(this.listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
67
|
+
async *listByVolumeGroupPagingAll(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
68
|
+
for await (const page of this.listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
88
71
|
}
|
|
89
72
|
/**
|
|
90
73
|
* Create a Volume.
|
|
@@ -100,14 +83,19 @@ export class VolumesImpl {
|
|
|
100
83
|
return this.client.sendOperationRequest(args, spec);
|
|
101
84
|
};
|
|
102
85
|
const sendOperationFn = async (args, spec) => {
|
|
103
|
-
var _a;
|
|
104
86
|
let currentRawResponse = undefined;
|
|
105
|
-
const providedCallback =
|
|
87
|
+
const providedCallback = args.options?.onResponse;
|
|
106
88
|
const callback = (rawResponse, flatResponse) => {
|
|
107
89
|
currentRawResponse = rawResponse;
|
|
108
|
-
providedCallback
|
|
90
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
91
|
+
};
|
|
92
|
+
const updatedArgs = {
|
|
93
|
+
...args,
|
|
94
|
+
options: {
|
|
95
|
+
...args.options,
|
|
96
|
+
onResponse: callback,
|
|
97
|
+
},
|
|
109
98
|
};
|
|
110
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
111
99
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
112
100
|
return {
|
|
113
101
|
flatResponse,
|
|
@@ -131,8 +119,8 @@ export class VolumesImpl {
|
|
|
131
119
|
spec: createOperationSpec,
|
|
132
120
|
});
|
|
133
121
|
const poller = await createHttpPoller(lro, {
|
|
134
|
-
restoreFrom: options
|
|
135
|
-
intervalInMs: options
|
|
122
|
+
restoreFrom: options?.resumeFrom,
|
|
123
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
136
124
|
resourceLocationConfig: "location",
|
|
137
125
|
});
|
|
138
126
|
await poller.poll();
|
|
@@ -165,14 +153,19 @@ export class VolumesImpl {
|
|
|
165
153
|
return this.client.sendOperationRequest(args, spec);
|
|
166
154
|
};
|
|
167
155
|
const sendOperationFn = async (args, spec) => {
|
|
168
|
-
var _a;
|
|
169
156
|
let currentRawResponse = undefined;
|
|
170
|
-
const providedCallback =
|
|
157
|
+
const providedCallback = args.options?.onResponse;
|
|
171
158
|
const callback = (rawResponse, flatResponse) => {
|
|
172
159
|
currentRawResponse = rawResponse;
|
|
173
|
-
providedCallback
|
|
160
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
161
|
+
};
|
|
162
|
+
const updatedArgs = {
|
|
163
|
+
...args,
|
|
164
|
+
options: {
|
|
165
|
+
...args.options,
|
|
166
|
+
onResponse: callback,
|
|
167
|
+
},
|
|
174
168
|
};
|
|
175
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
176
169
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
177
170
|
return {
|
|
178
171
|
flatResponse,
|
|
@@ -196,8 +189,8 @@ export class VolumesImpl {
|
|
|
196
189
|
spec: updateOperationSpec,
|
|
197
190
|
});
|
|
198
191
|
const poller = await createHttpPoller(lro, {
|
|
199
|
-
restoreFrom: options
|
|
200
|
-
intervalInMs: options
|
|
192
|
+
restoreFrom: options?.resumeFrom,
|
|
193
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
201
194
|
resourceLocationConfig: "location",
|
|
202
195
|
});
|
|
203
196
|
await poller.poll();
|
|
@@ -229,14 +222,19 @@ export class VolumesImpl {
|
|
|
229
222
|
return this.client.sendOperationRequest(args, spec);
|
|
230
223
|
};
|
|
231
224
|
const sendOperationFn = async (args, spec) => {
|
|
232
|
-
var _a;
|
|
233
225
|
let currentRawResponse = undefined;
|
|
234
|
-
const providedCallback =
|
|
226
|
+
const providedCallback = args.options?.onResponse;
|
|
235
227
|
const callback = (rawResponse, flatResponse) => {
|
|
236
228
|
currentRawResponse = rawResponse;
|
|
237
|
-
providedCallback
|
|
229
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
230
|
+
};
|
|
231
|
+
const updatedArgs = {
|
|
232
|
+
...args,
|
|
233
|
+
options: {
|
|
234
|
+
...args.options,
|
|
235
|
+
onResponse: callback,
|
|
236
|
+
},
|
|
238
237
|
};
|
|
239
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
240
238
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
241
239
|
return {
|
|
242
240
|
flatResponse,
|
|
@@ -259,8 +257,8 @@ export class VolumesImpl {
|
|
|
259
257
|
spec: deleteOperationSpec,
|
|
260
258
|
});
|
|
261
259
|
const poller = await createHttpPoller(lro, {
|
|
262
|
-
restoreFrom: options
|
|
263
|
-
intervalInMs: options
|
|
260
|
+
restoreFrom: options?.resumeFrom,
|
|
261
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
264
262
|
resourceLocationConfig: "location",
|
|
265
263
|
});
|
|
266
264
|
await poller.poll();
|
|
@@ -319,14 +317,19 @@ export class VolumesImpl {
|
|
|
319
317
|
return this.client.sendOperationRequest(args, spec);
|
|
320
318
|
};
|
|
321
319
|
const sendOperationFn = async (args, spec) => {
|
|
322
|
-
var _a;
|
|
323
320
|
let currentRawResponse = undefined;
|
|
324
|
-
const providedCallback =
|
|
321
|
+
const providedCallback = args.options?.onResponse;
|
|
325
322
|
const callback = (rawResponse, flatResponse) => {
|
|
326
323
|
currentRawResponse = rawResponse;
|
|
327
|
-
providedCallback
|
|
324
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
325
|
+
};
|
|
326
|
+
const updatedArgs = {
|
|
327
|
+
...args,
|
|
328
|
+
options: {
|
|
329
|
+
...args.options,
|
|
330
|
+
onResponse: callback,
|
|
331
|
+
},
|
|
328
332
|
};
|
|
329
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
330
333
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
331
334
|
return {
|
|
332
335
|
flatResponse,
|
|
@@ -349,8 +352,8 @@ export class VolumesImpl {
|
|
|
349
352
|
spec: preBackupOperationSpec,
|
|
350
353
|
});
|
|
351
354
|
const poller = await createHttpPoller(lro, {
|
|
352
|
-
restoreFrom: options
|
|
353
|
-
intervalInMs: options
|
|
355
|
+
restoreFrom: options?.resumeFrom,
|
|
356
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
354
357
|
resourceLocationConfig: "location",
|
|
355
358
|
});
|
|
356
359
|
await poller.poll();
|
|
@@ -384,14 +387,19 @@ export class VolumesImpl {
|
|
|
384
387
|
return this.client.sendOperationRequest(args, spec);
|
|
385
388
|
};
|
|
386
389
|
const sendOperationFn = async (args, spec) => {
|
|
387
|
-
var _a;
|
|
388
390
|
let currentRawResponse = undefined;
|
|
389
|
-
const providedCallback =
|
|
391
|
+
const providedCallback = args.options?.onResponse;
|
|
390
392
|
const callback = (rawResponse, flatResponse) => {
|
|
391
393
|
currentRawResponse = rawResponse;
|
|
392
|
-
providedCallback
|
|
394
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
395
|
+
};
|
|
396
|
+
const updatedArgs = {
|
|
397
|
+
...args,
|
|
398
|
+
options: {
|
|
399
|
+
...args.options,
|
|
400
|
+
onResponse: callback,
|
|
401
|
+
},
|
|
393
402
|
};
|
|
394
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
395
403
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
396
404
|
return {
|
|
397
405
|
flatResponse,
|
|
@@ -414,8 +422,8 @@ export class VolumesImpl {
|
|
|
414
422
|
spec: preRestoreOperationSpec,
|
|
415
423
|
});
|
|
416
424
|
const poller = await createHttpPoller(lro, {
|
|
417
|
-
restoreFrom: options
|
|
418
|
-
intervalInMs: options
|
|
425
|
+
restoreFrom: options?.resumeFrom,
|
|
426
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
419
427
|
resourceLocationConfig: "location",
|
|
420
428
|
});
|
|
421
429
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumes.js","sourceRoot":"","sources":["../../../src/operations/volumes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAuB9C,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAM,OAAO,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,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E,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"]}
|
|
1
|
+
{"version":3,"file":"volumes.js","sourceRoot":"","sources":["../../../src/operations/volumes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAuB9C,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IACL,MAAM,CAAuB;IAE9C;;;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,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM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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"]}
|
package/dist/esm/pagingHelper.js
CHANGED
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,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,MAAM,UAAU,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);
|