@azure/arm-elasticsan 1.0.1-alpha.20240924.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -9
- package/dist/index.js +849 -837
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansCreateSample.js +6 -6
- package/dist-esm/samples-dev/elasticSansDeleteSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansGetSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +2 -2
- package/dist-esm/samples-dev/elasticSansUpdateSample.js +4 -4
- package/dist-esm/samples-dev/operationsListSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +7 -7
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +2 -2
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js +2 -2
- package/dist-esm/samples-dev/skusListSample.js +3 -3
- package/dist-esm/samples-dev/skusListSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js +17 -14
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/volumeGroupsGetSample.js +2 -2
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +2 -2
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +16 -13
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js +8 -8
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.js +2 -2
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js +3 -3
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesCreateSample.js +4 -4
- package/dist-esm/samples-dev/volumesDeleteSample.js +4 -4
- package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesGetSample.js +2 -2
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +2 -2
- package/dist-esm/samples-dev/volumesUpdateSample.js +2 -2
- package/dist-esm/src/elasticSanManagement.d.ts.map +1 -1
- package/dist-esm/src/elasticSanManagement.js +9 -9
- package/dist-esm/src/elasticSanManagement.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +4 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +531 -519
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +61 -61
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/elasticSans.d.ts.map +1 -1
- package/dist-esm/src/operations/elasticSans.js +59 -59
- package/dist-esm/src/operations/elasticSans.js.map +1 -1
- package/dist-esm/src/operations/operations.js +5 -5
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +35 -35
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +5 -5
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/skus.js +5 -5
- package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/volumeGroups.js +51 -51
- package/dist-esm/src/operations/volumeGroups.js.map +1 -1
- package/dist-esm/src/operations/volumeSnapshots.d.ts.map +1 -1
- package/dist-esm/src/operations/volumeSnapshots.js +40 -40
- package/dist-esm/src/operations/volumeSnapshots.js.map +1 -1
- package/dist-esm/src/operations/volumes.d.ts.map +1 -1
- package/dist-esm/src/operations/volumes.js +54 -54
- package/dist-esm/src/operations/volumes.js.map +1 -1
- package/dist-esm/test/elasticsan_examples.spec.d.ts.map +1 -1
- package/dist-esm/test/elasticsan_examples.spec.js +28 -9
- package/dist-esm/test/elasticsan_examples.spec.js.map +1 -1
- package/package.json +6 -6
- package/review/arm-elasticsan.api.md +2 -0
- package/src/elasticSanManagement.ts +18 -17
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +26 -19
- package/src/models/mappers.ts +549 -536
- package/src/models/parameters.ts +62 -62
- package/src/operations/elasticSans.ts +115 -124
- package/src/operations/operations.ts +10 -10
- package/src/operations/privateEndpointConnections.ts +71 -76
- package/src/operations/privateLinkResources.ts +9 -10
- package/src/operations/skus.ts +9 -9
- package/src/operations/volumeGroups.ts +101 -109
- package/src/operations/volumeSnapshots.ts +79 -85
- package/src/operations/volumes.ts +104 -112
- package/src/operationsInterfaces/elasticSans.ts +10 -10
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/privateEndpointConnections.ts +7 -7
- package/src/operationsInterfaces/privateLinkResources.ts +2 -2
- package/src/operationsInterfaces/skus.ts +1 -1
- package/src/operationsInterfaces/volumeGroups.ts +9 -9
- package/src/operationsInterfaces/volumeSnapshots.ts +7 -7
- package/src/operationsInterfaces/volumes.ts +9 -9
- package/src/pagingHelper.ts +1 -1
- package/types/arm-elasticsan.d.ts +4 -0
|
@@ -16,7 +16,7 @@ import { ElasticSanManagement } from "../elasticSanManagement";
|
|
|
16
16
|
import {
|
|
17
17
|
SimplePollerLike,
|
|
18
18
|
OperationState,
|
|
19
|
-
createHttpPoller
|
|
19
|
+
createHttpPoller,
|
|
20
20
|
} from "@azure/core-lro";
|
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
|
22
22
|
import {
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
VolumesDeleteOptionalParams,
|
|
33
33
|
VolumesGetOptionalParams,
|
|
34
34
|
VolumesGetResponse,
|
|
35
|
-
VolumesListByVolumeGroupNextResponse
|
|
35
|
+
VolumesListByVolumeGroupNextResponse,
|
|
36
36
|
} from "../models";
|
|
37
37
|
|
|
38
38
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -59,13 +59,13 @@ export class VolumesImpl implements Volumes {
|
|
|
59
59
|
resourceGroupName: string,
|
|
60
60
|
elasticSanName: string,
|
|
61
61
|
volumeGroupName: string,
|
|
62
|
-
options?: VolumesListByVolumeGroupOptionalParams
|
|
62
|
+
options?: VolumesListByVolumeGroupOptionalParams,
|
|
63
63
|
): PagedAsyncIterableIterator<Volume> {
|
|
64
64
|
const iter = this.listByVolumeGroupPagingAll(
|
|
65
65
|
resourceGroupName,
|
|
66
66
|
elasticSanName,
|
|
67
67
|
volumeGroupName,
|
|
68
|
-
options
|
|
68
|
+
options,
|
|
69
69
|
);
|
|
70
70
|
return {
|
|
71
71
|
next() {
|
|
@@ -83,9 +83,9 @@ export class VolumesImpl implements Volumes {
|
|
|
83
83
|
elasticSanName,
|
|
84
84
|
volumeGroupName,
|
|
85
85
|
options,
|
|
86
|
-
settings
|
|
86
|
+
settings,
|
|
87
87
|
);
|
|
88
|
-
}
|
|
88
|
+
},
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -94,7 +94,7 @@ export class VolumesImpl implements Volumes {
|
|
|
94
94
|
elasticSanName: string,
|
|
95
95
|
volumeGroupName: string,
|
|
96
96
|
options?: VolumesListByVolumeGroupOptionalParams,
|
|
97
|
-
settings?: PageSettings
|
|
97
|
+
settings?: PageSettings,
|
|
98
98
|
): AsyncIterableIterator<Volume[]> {
|
|
99
99
|
let result: VolumesListByVolumeGroupResponse;
|
|
100
100
|
let continuationToken = settings?.continuationToken;
|
|
@@ -103,7 +103,7 @@ export class VolumesImpl implements Volumes {
|
|
|
103
103
|
resourceGroupName,
|
|
104
104
|
elasticSanName,
|
|
105
105
|
volumeGroupName,
|
|
106
|
-
options
|
|
106
|
+
options,
|
|
107
107
|
);
|
|
108
108
|
let page = result.value || [];
|
|
109
109
|
continuationToken = result.nextLink;
|
|
@@ -116,7 +116,7 @@ export class VolumesImpl implements Volumes {
|
|
|
116
116
|
elasticSanName,
|
|
117
117
|
volumeGroupName,
|
|
118
118
|
continuationToken,
|
|
119
|
-
options
|
|
119
|
+
options,
|
|
120
120
|
);
|
|
121
121
|
continuationToken = result.nextLink;
|
|
122
122
|
let page = result.value || [];
|
|
@@ -129,13 +129,13 @@ export class VolumesImpl implements Volumes {
|
|
|
129
129
|
resourceGroupName: string,
|
|
130
130
|
elasticSanName: string,
|
|
131
131
|
volumeGroupName: string,
|
|
132
|
-
options?: VolumesListByVolumeGroupOptionalParams
|
|
132
|
+
options?: VolumesListByVolumeGroupOptionalParams,
|
|
133
133
|
): AsyncIterableIterator<Volume> {
|
|
134
134
|
for await (const page of this.listByVolumeGroupPagingPage(
|
|
135
135
|
resourceGroupName,
|
|
136
136
|
elasticSanName,
|
|
137
137
|
volumeGroupName,
|
|
138
|
-
options
|
|
138
|
+
options,
|
|
139
139
|
)) {
|
|
140
140
|
yield* page;
|
|
141
141
|
}
|
|
@@ -156,7 +156,7 @@ export class VolumesImpl implements Volumes {
|
|
|
156
156
|
volumeGroupName: string,
|
|
157
157
|
volumeName: string,
|
|
158
158
|
parameters: Volume,
|
|
159
|
-
options?: VolumesCreateOptionalParams
|
|
159
|
+
options?: VolumesCreateOptionalParams,
|
|
160
160
|
): Promise<
|
|
161
161
|
SimplePollerLike<
|
|
162
162
|
OperationState<VolumesCreateResponse>,
|
|
@@ -165,21 +165,20 @@ export class VolumesImpl implements Volumes {
|
|
|
165
165
|
> {
|
|
166
166
|
const directSendOperation = async (
|
|
167
167
|
args: coreClient.OperationArguments,
|
|
168
|
-
spec: coreClient.OperationSpec
|
|
168
|
+
spec: coreClient.OperationSpec,
|
|
169
169
|
): Promise<VolumesCreateResponse> => {
|
|
170
170
|
return this.client.sendOperationRequest(args, spec);
|
|
171
171
|
};
|
|
172
172
|
const sendOperationFn = async (
|
|
173
173
|
args: coreClient.OperationArguments,
|
|
174
|
-
spec: coreClient.OperationSpec
|
|
174
|
+
spec: coreClient.OperationSpec,
|
|
175
175
|
) => {
|
|
176
|
-
let currentRawResponse:
|
|
177
|
-
|
|
178
|
-
| undefined = undefined;
|
|
176
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
177
|
+
undefined;
|
|
179
178
|
const providedCallback = args.options?.onResponse;
|
|
180
179
|
const callback: coreClient.RawResponseCallback = (
|
|
181
180
|
rawResponse: coreClient.FullOperationResponse,
|
|
182
|
-
flatResponse: unknown
|
|
181
|
+
flatResponse: unknown,
|
|
183
182
|
) => {
|
|
184
183
|
currentRawResponse = rawResponse;
|
|
185
184
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -188,8 +187,8 @@ export class VolumesImpl implements Volumes {
|
|
|
188
187
|
...args,
|
|
189
188
|
options: {
|
|
190
189
|
...args.options,
|
|
191
|
-
onResponse: callback
|
|
192
|
-
}
|
|
190
|
+
onResponse: callback,
|
|
191
|
+
},
|
|
193
192
|
};
|
|
194
193
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
195
194
|
return {
|
|
@@ -197,8 +196,8 @@ export class VolumesImpl implements Volumes {
|
|
|
197
196
|
rawResponse: {
|
|
198
197
|
statusCode: currentRawResponse!.status,
|
|
199
198
|
body: currentRawResponse!.parsedBody,
|
|
200
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
201
|
-
}
|
|
199
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
200
|
+
},
|
|
202
201
|
};
|
|
203
202
|
};
|
|
204
203
|
|
|
@@ -210,9 +209,9 @@ export class VolumesImpl implements Volumes {
|
|
|
210
209
|
volumeGroupName,
|
|
211
210
|
volumeName,
|
|
212
211
|
parameters,
|
|
213
|
-
options
|
|
212
|
+
options,
|
|
214
213
|
},
|
|
215
|
-
spec: createOperationSpec
|
|
214
|
+
spec: createOperationSpec,
|
|
216
215
|
});
|
|
217
216
|
const poller = await createHttpPoller<
|
|
218
217
|
VolumesCreateResponse,
|
|
@@ -220,7 +219,7 @@ export class VolumesImpl implements Volumes {
|
|
|
220
219
|
>(lro, {
|
|
221
220
|
restoreFrom: options?.resumeFrom,
|
|
222
221
|
intervalInMs: options?.updateIntervalInMs,
|
|
223
|
-
resourceLocationConfig: "location"
|
|
222
|
+
resourceLocationConfig: "location",
|
|
224
223
|
});
|
|
225
224
|
await poller.poll();
|
|
226
225
|
return poller;
|
|
@@ -241,7 +240,7 @@ export class VolumesImpl implements Volumes {
|
|
|
241
240
|
volumeGroupName: string,
|
|
242
241
|
volumeName: string,
|
|
243
242
|
parameters: Volume,
|
|
244
|
-
options?: VolumesCreateOptionalParams
|
|
243
|
+
options?: VolumesCreateOptionalParams,
|
|
245
244
|
): Promise<VolumesCreateResponse> {
|
|
246
245
|
const poller = await this.beginCreate(
|
|
247
246
|
resourceGroupName,
|
|
@@ -249,7 +248,7 @@ export class VolumesImpl implements Volumes {
|
|
|
249
248
|
volumeGroupName,
|
|
250
249
|
volumeName,
|
|
251
250
|
parameters,
|
|
252
|
-
options
|
|
251
|
+
options,
|
|
253
252
|
);
|
|
254
253
|
return poller.pollUntilDone();
|
|
255
254
|
}
|
|
@@ -269,7 +268,7 @@ export class VolumesImpl implements Volumes {
|
|
|
269
268
|
volumeGroupName: string,
|
|
270
269
|
volumeName: string,
|
|
271
270
|
parameters: VolumeUpdate,
|
|
272
|
-
options?: VolumesUpdateOptionalParams
|
|
271
|
+
options?: VolumesUpdateOptionalParams,
|
|
273
272
|
): Promise<
|
|
274
273
|
SimplePollerLike<
|
|
275
274
|
OperationState<VolumesUpdateResponse>,
|
|
@@ -278,21 +277,20 @@ export class VolumesImpl implements Volumes {
|
|
|
278
277
|
> {
|
|
279
278
|
const directSendOperation = async (
|
|
280
279
|
args: coreClient.OperationArguments,
|
|
281
|
-
spec: coreClient.OperationSpec
|
|
280
|
+
spec: coreClient.OperationSpec,
|
|
282
281
|
): Promise<VolumesUpdateResponse> => {
|
|
283
282
|
return this.client.sendOperationRequest(args, spec);
|
|
284
283
|
};
|
|
285
284
|
const sendOperationFn = async (
|
|
286
285
|
args: coreClient.OperationArguments,
|
|
287
|
-
spec: coreClient.OperationSpec
|
|
286
|
+
spec: coreClient.OperationSpec,
|
|
288
287
|
) => {
|
|
289
|
-
let currentRawResponse:
|
|
290
|
-
|
|
291
|
-
| undefined = undefined;
|
|
288
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
289
|
+
undefined;
|
|
292
290
|
const providedCallback = args.options?.onResponse;
|
|
293
291
|
const callback: coreClient.RawResponseCallback = (
|
|
294
292
|
rawResponse: coreClient.FullOperationResponse,
|
|
295
|
-
flatResponse: unknown
|
|
293
|
+
flatResponse: unknown,
|
|
296
294
|
) => {
|
|
297
295
|
currentRawResponse = rawResponse;
|
|
298
296
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -301,8 +299,8 @@ export class VolumesImpl implements Volumes {
|
|
|
301
299
|
...args,
|
|
302
300
|
options: {
|
|
303
301
|
...args.options,
|
|
304
|
-
onResponse: callback
|
|
305
|
-
}
|
|
302
|
+
onResponse: callback,
|
|
303
|
+
},
|
|
306
304
|
};
|
|
307
305
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
308
306
|
return {
|
|
@@ -310,8 +308,8 @@ export class VolumesImpl implements Volumes {
|
|
|
310
308
|
rawResponse: {
|
|
311
309
|
statusCode: currentRawResponse!.status,
|
|
312
310
|
body: currentRawResponse!.parsedBody,
|
|
313
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
314
|
-
}
|
|
311
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
312
|
+
},
|
|
315
313
|
};
|
|
316
314
|
};
|
|
317
315
|
|
|
@@ -323,9 +321,9 @@ export class VolumesImpl implements Volumes {
|
|
|
323
321
|
volumeGroupName,
|
|
324
322
|
volumeName,
|
|
325
323
|
parameters,
|
|
326
|
-
options
|
|
324
|
+
options,
|
|
327
325
|
},
|
|
328
|
-
spec: updateOperationSpec
|
|
326
|
+
spec: updateOperationSpec,
|
|
329
327
|
});
|
|
330
328
|
const poller = await createHttpPoller<
|
|
331
329
|
VolumesUpdateResponse,
|
|
@@ -333,7 +331,7 @@ export class VolumesImpl implements Volumes {
|
|
|
333
331
|
>(lro, {
|
|
334
332
|
restoreFrom: options?.resumeFrom,
|
|
335
333
|
intervalInMs: options?.updateIntervalInMs,
|
|
336
|
-
resourceLocationConfig: "location"
|
|
334
|
+
resourceLocationConfig: "location",
|
|
337
335
|
});
|
|
338
336
|
await poller.poll();
|
|
339
337
|
return poller;
|
|
@@ -354,7 +352,7 @@ export class VolumesImpl implements Volumes {
|
|
|
354
352
|
volumeGroupName: string,
|
|
355
353
|
volumeName: string,
|
|
356
354
|
parameters: VolumeUpdate,
|
|
357
|
-
options?: VolumesUpdateOptionalParams
|
|
355
|
+
options?: VolumesUpdateOptionalParams,
|
|
358
356
|
): Promise<VolumesUpdateResponse> {
|
|
359
357
|
const poller = await this.beginUpdate(
|
|
360
358
|
resourceGroupName,
|
|
@@ -362,7 +360,7 @@ export class VolumesImpl implements Volumes {
|
|
|
362
360
|
volumeGroupName,
|
|
363
361
|
volumeName,
|
|
364
362
|
parameters,
|
|
365
|
-
options
|
|
363
|
+
options,
|
|
366
364
|
);
|
|
367
365
|
return poller.pollUntilDone();
|
|
368
366
|
}
|
|
@@ -380,25 +378,24 @@ export class VolumesImpl implements Volumes {
|
|
|
380
378
|
elasticSanName: string,
|
|
381
379
|
volumeGroupName: string,
|
|
382
380
|
volumeName: string,
|
|
383
|
-
options?: VolumesDeleteOptionalParams
|
|
381
|
+
options?: VolumesDeleteOptionalParams,
|
|
384
382
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
385
383
|
const directSendOperation = async (
|
|
386
384
|
args: coreClient.OperationArguments,
|
|
387
|
-
spec: coreClient.OperationSpec
|
|
385
|
+
spec: coreClient.OperationSpec,
|
|
388
386
|
): Promise<void> => {
|
|
389
387
|
return this.client.sendOperationRequest(args, spec);
|
|
390
388
|
};
|
|
391
389
|
const sendOperationFn = async (
|
|
392
390
|
args: coreClient.OperationArguments,
|
|
393
|
-
spec: coreClient.OperationSpec
|
|
391
|
+
spec: coreClient.OperationSpec,
|
|
394
392
|
) => {
|
|
395
|
-
let currentRawResponse:
|
|
396
|
-
|
|
397
|
-
| undefined = undefined;
|
|
393
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
394
|
+
undefined;
|
|
398
395
|
const providedCallback = args.options?.onResponse;
|
|
399
396
|
const callback: coreClient.RawResponseCallback = (
|
|
400
397
|
rawResponse: coreClient.FullOperationResponse,
|
|
401
|
-
flatResponse: unknown
|
|
398
|
+
flatResponse: unknown,
|
|
402
399
|
) => {
|
|
403
400
|
currentRawResponse = rawResponse;
|
|
404
401
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -407,8 +404,8 @@ export class VolumesImpl implements Volumes {
|
|
|
407
404
|
...args,
|
|
408
405
|
options: {
|
|
409
406
|
...args.options,
|
|
410
|
-
onResponse: callback
|
|
411
|
-
}
|
|
407
|
+
onResponse: callback,
|
|
408
|
+
},
|
|
412
409
|
};
|
|
413
410
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
414
411
|
return {
|
|
@@ -416,8 +413,8 @@ export class VolumesImpl implements Volumes {
|
|
|
416
413
|
rawResponse: {
|
|
417
414
|
statusCode: currentRawResponse!.status,
|
|
418
415
|
body: currentRawResponse!.parsedBody,
|
|
419
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
420
|
-
}
|
|
416
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
417
|
+
},
|
|
421
418
|
};
|
|
422
419
|
};
|
|
423
420
|
|
|
@@ -428,14 +425,14 @@ export class VolumesImpl implements Volumes {
|
|
|
428
425
|
elasticSanName,
|
|
429
426
|
volumeGroupName,
|
|
430
427
|
volumeName,
|
|
431
|
-
options
|
|
428
|
+
options,
|
|
432
429
|
},
|
|
433
|
-
spec: deleteOperationSpec
|
|
430
|
+
spec: deleteOperationSpec,
|
|
434
431
|
});
|
|
435
432
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
436
433
|
restoreFrom: options?.resumeFrom,
|
|
437
434
|
intervalInMs: options?.updateIntervalInMs,
|
|
438
|
-
resourceLocationConfig: "location"
|
|
435
|
+
resourceLocationConfig: "location",
|
|
439
436
|
});
|
|
440
437
|
await poller.poll();
|
|
441
438
|
return poller;
|
|
@@ -454,14 +451,14 @@ export class VolumesImpl implements Volumes {
|
|
|
454
451
|
elasticSanName: string,
|
|
455
452
|
volumeGroupName: string,
|
|
456
453
|
volumeName: string,
|
|
457
|
-
options?: VolumesDeleteOptionalParams
|
|
454
|
+
options?: VolumesDeleteOptionalParams,
|
|
458
455
|
): Promise<void> {
|
|
459
456
|
const poller = await this.beginDelete(
|
|
460
457
|
resourceGroupName,
|
|
461
458
|
elasticSanName,
|
|
462
459
|
volumeGroupName,
|
|
463
460
|
volumeName,
|
|
464
|
-
options
|
|
461
|
+
options,
|
|
465
462
|
);
|
|
466
463
|
return poller.pollUntilDone();
|
|
467
464
|
}
|
|
@@ -479,7 +476,7 @@ export class VolumesImpl implements Volumes {
|
|
|
479
476
|
elasticSanName: string,
|
|
480
477
|
volumeGroupName: string,
|
|
481
478
|
volumeName: string,
|
|
482
|
-
options?: VolumesGetOptionalParams
|
|
479
|
+
options?: VolumesGetOptionalParams,
|
|
483
480
|
): Promise<VolumesGetResponse> {
|
|
484
481
|
return this.client.sendOperationRequest(
|
|
485
482
|
{
|
|
@@ -487,9 +484,9 @@ export class VolumesImpl implements Volumes {
|
|
|
487
484
|
elasticSanName,
|
|
488
485
|
volumeGroupName,
|
|
489
486
|
volumeName,
|
|
490
|
-
options
|
|
487
|
+
options,
|
|
491
488
|
},
|
|
492
|
-
getOperationSpec
|
|
489
|
+
getOperationSpec,
|
|
493
490
|
);
|
|
494
491
|
}
|
|
495
492
|
|
|
@@ -504,11 +501,11 @@ export class VolumesImpl implements Volumes {
|
|
|
504
501
|
resourceGroupName: string,
|
|
505
502
|
elasticSanName: string,
|
|
506
503
|
volumeGroupName: string,
|
|
507
|
-
options?: VolumesListByVolumeGroupOptionalParams
|
|
504
|
+
options?: VolumesListByVolumeGroupOptionalParams,
|
|
508
505
|
): Promise<VolumesListByVolumeGroupResponse> {
|
|
509
506
|
return this.client.sendOperationRequest(
|
|
510
507
|
{ resourceGroupName, elasticSanName, volumeGroupName, options },
|
|
511
|
-
listByVolumeGroupOperationSpec
|
|
508
|
+
listByVolumeGroupOperationSpec,
|
|
512
509
|
);
|
|
513
510
|
}
|
|
514
511
|
|
|
@@ -525,11 +522,11 @@ export class VolumesImpl implements Volumes {
|
|
|
525
522
|
elasticSanName: string,
|
|
526
523
|
volumeGroupName: string,
|
|
527
524
|
nextLink: string,
|
|
528
|
-
options?: VolumesListByVolumeGroupNextOptionalParams
|
|
525
|
+
options?: VolumesListByVolumeGroupNextOptionalParams,
|
|
529
526
|
): Promise<VolumesListByVolumeGroupNextResponse> {
|
|
530
527
|
return this.client.sendOperationRequest(
|
|
531
528
|
{ resourceGroupName, elasticSanName, volumeGroupName, nextLink, options },
|
|
532
|
-
listByVolumeGroupNextOperationSpec
|
|
529
|
+
listByVolumeGroupNextOperationSpec,
|
|
533
530
|
);
|
|
534
531
|
}
|
|
535
532
|
}
|
|
@@ -537,25 +534,24 @@ export class VolumesImpl implements Volumes {
|
|
|
537
534
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
538
535
|
|
|
539
536
|
const createOperationSpec: coreClient.OperationSpec = {
|
|
540
|
-
path:
|
|
541
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
537
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
542
538
|
httpMethod: "PUT",
|
|
543
539
|
responses: {
|
|
544
540
|
200: {
|
|
545
|
-
bodyMapper: Mappers.Volume
|
|
541
|
+
bodyMapper: Mappers.Volume,
|
|
546
542
|
},
|
|
547
543
|
201: {
|
|
548
|
-
bodyMapper: Mappers.Volume
|
|
544
|
+
bodyMapper: Mappers.Volume,
|
|
549
545
|
},
|
|
550
546
|
202: {
|
|
551
|
-
bodyMapper: Mappers.Volume
|
|
547
|
+
bodyMapper: Mappers.Volume,
|
|
552
548
|
},
|
|
553
549
|
204: {
|
|
554
|
-
bodyMapper: Mappers.Volume
|
|
550
|
+
bodyMapper: Mappers.Volume,
|
|
555
551
|
},
|
|
556
552
|
default: {
|
|
557
|
-
bodyMapper: Mappers.ErrorResponse
|
|
558
|
-
}
|
|
553
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
554
|
+
},
|
|
559
555
|
},
|
|
560
556
|
requestBody: Parameters.parameters4,
|
|
561
557
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -565,32 +561,31 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
565
561
|
Parameters.resourceGroupName,
|
|
566
562
|
Parameters.elasticSanName,
|
|
567
563
|
Parameters.volumeGroupName,
|
|
568
|
-
Parameters.volumeName
|
|
564
|
+
Parameters.volumeName,
|
|
569
565
|
],
|
|
570
566
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
571
567
|
mediaType: "json",
|
|
572
|
-
serializer
|
|
568
|
+
serializer,
|
|
573
569
|
};
|
|
574
570
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
575
|
-
path:
|
|
576
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
571
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
577
572
|
httpMethod: "PATCH",
|
|
578
573
|
responses: {
|
|
579
574
|
200: {
|
|
580
|
-
bodyMapper: Mappers.Volume
|
|
575
|
+
bodyMapper: Mappers.Volume,
|
|
581
576
|
},
|
|
582
577
|
201: {
|
|
583
|
-
bodyMapper: Mappers.Volume
|
|
578
|
+
bodyMapper: Mappers.Volume,
|
|
584
579
|
},
|
|
585
580
|
202: {
|
|
586
|
-
bodyMapper: Mappers.Volume
|
|
581
|
+
bodyMapper: Mappers.Volume,
|
|
587
582
|
},
|
|
588
583
|
204: {
|
|
589
|
-
bodyMapper: Mappers.Volume
|
|
584
|
+
bodyMapper: Mappers.Volume,
|
|
590
585
|
},
|
|
591
586
|
default: {
|
|
592
|
-
bodyMapper: Mappers.ErrorResponse
|
|
593
|
-
}
|
|
587
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
588
|
+
},
|
|
594
589
|
},
|
|
595
590
|
requestBody: Parameters.parameters5,
|
|
596
591
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -600,15 +595,14 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
600
595
|
Parameters.resourceGroupName,
|
|
601
596
|
Parameters.elasticSanName,
|
|
602
597
|
Parameters.volumeGroupName,
|
|
603
|
-
Parameters.volumeName
|
|
598
|
+
Parameters.volumeName,
|
|
604
599
|
],
|
|
605
600
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
606
601
|
mediaType: "json",
|
|
607
|
-
serializer
|
|
602
|
+
serializer,
|
|
608
603
|
};
|
|
609
604
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
610
|
-
path:
|
|
611
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
605
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
612
606
|
httpMethod: "DELETE",
|
|
613
607
|
responses: {
|
|
614
608
|
200: {},
|
|
@@ -616,8 +610,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
616
610
|
202: {},
|
|
617
611
|
204: {},
|
|
618
612
|
default: {
|
|
619
|
-
bodyMapper: Mappers.ErrorResponse
|
|
620
|
-
}
|
|
613
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
614
|
+
},
|
|
621
615
|
},
|
|
622
616
|
queryParameters: [Parameters.apiVersion],
|
|
623
617
|
urlParameters: [
|
|
@@ -626,26 +620,25 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
626
620
|
Parameters.resourceGroupName,
|
|
627
621
|
Parameters.elasticSanName,
|
|
628
622
|
Parameters.volumeGroupName,
|
|
629
|
-
Parameters.volumeName
|
|
623
|
+
Parameters.volumeName,
|
|
630
624
|
],
|
|
631
625
|
headerParameters: [
|
|
632
626
|
Parameters.accept,
|
|
633
627
|
Parameters.xMsDeleteSnapshots,
|
|
634
|
-
Parameters.xMsForceDelete
|
|
628
|
+
Parameters.xMsForceDelete,
|
|
635
629
|
],
|
|
636
|
-
serializer
|
|
630
|
+
serializer,
|
|
637
631
|
};
|
|
638
632
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
639
|
-
path:
|
|
640
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
633
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
641
634
|
httpMethod: "GET",
|
|
642
635
|
responses: {
|
|
643
636
|
200: {
|
|
644
|
-
bodyMapper: Mappers.Volume
|
|
637
|
+
bodyMapper: Mappers.Volume,
|
|
645
638
|
},
|
|
646
639
|
default: {
|
|
647
|
-
bodyMapper: Mappers.ErrorResponse
|
|
648
|
-
}
|
|
640
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
641
|
+
},
|
|
649
642
|
},
|
|
650
643
|
queryParameters: [Parameters.apiVersion],
|
|
651
644
|
urlParameters: [
|
|
@@ -654,22 +647,21 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
654
647
|
Parameters.resourceGroupName,
|
|
655
648
|
Parameters.elasticSanName,
|
|
656
649
|
Parameters.volumeGroupName,
|
|
657
|
-
Parameters.volumeName
|
|
650
|
+
Parameters.volumeName,
|
|
658
651
|
],
|
|
659
652
|
headerParameters: [Parameters.accept],
|
|
660
|
-
serializer
|
|
653
|
+
serializer,
|
|
661
654
|
};
|
|
662
655
|
const listByVolumeGroupOperationSpec: coreClient.OperationSpec = {
|
|
663
|
-
path:
|
|
664
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes",
|
|
656
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes",
|
|
665
657
|
httpMethod: "GET",
|
|
666
658
|
responses: {
|
|
667
659
|
200: {
|
|
668
|
-
bodyMapper: Mappers.VolumeList
|
|
660
|
+
bodyMapper: Mappers.VolumeList,
|
|
669
661
|
},
|
|
670
662
|
default: {
|
|
671
|
-
bodyMapper: Mappers.ErrorResponse
|
|
672
|
-
}
|
|
663
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
664
|
+
},
|
|
673
665
|
},
|
|
674
666
|
queryParameters: [Parameters.apiVersion],
|
|
675
667
|
urlParameters: [
|
|
@@ -677,21 +669,21 @@ const listByVolumeGroupOperationSpec: coreClient.OperationSpec = {
|
|
|
677
669
|
Parameters.subscriptionId,
|
|
678
670
|
Parameters.resourceGroupName,
|
|
679
671
|
Parameters.elasticSanName,
|
|
680
|
-
Parameters.volumeGroupName
|
|
672
|
+
Parameters.volumeGroupName,
|
|
681
673
|
],
|
|
682
674
|
headerParameters: [Parameters.accept],
|
|
683
|
-
serializer
|
|
675
|
+
serializer,
|
|
684
676
|
};
|
|
685
677
|
const listByVolumeGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
686
678
|
path: "{nextLink}",
|
|
687
679
|
httpMethod: "GET",
|
|
688
680
|
responses: {
|
|
689
681
|
200: {
|
|
690
|
-
bodyMapper: Mappers.VolumeList
|
|
682
|
+
bodyMapper: Mappers.VolumeList,
|
|
691
683
|
},
|
|
692
684
|
default: {
|
|
693
|
-
bodyMapper: Mappers.ErrorResponse
|
|
694
|
-
}
|
|
685
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
686
|
+
},
|
|
695
687
|
},
|
|
696
688
|
urlParameters: [
|
|
697
689
|
Parameters.$host,
|
|
@@ -699,8 +691,8 @@ const listByVolumeGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
699
691
|
Parameters.resourceGroupName,
|
|
700
692
|
Parameters.elasticSanName,
|
|
701
693
|
Parameters.nextLink,
|
|
702
|
-
Parameters.volumeGroupName
|
|
694
|
+
Parameters.volumeGroupName,
|
|
703
695
|
],
|
|
704
696
|
headerParameters: [Parameters.accept],
|
|
705
|
-
serializer
|
|
697
|
+
serializer,
|
|
706
698
|
};
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
ElasticSansUpdateResponse,
|
|
20
20
|
ElasticSansDeleteOptionalParams,
|
|
21
21
|
ElasticSansGetOptionalParams,
|
|
22
|
-
ElasticSansGetResponse
|
|
22
|
+
ElasticSansGetResponse,
|
|
23
23
|
} from "../models";
|
|
24
24
|
|
|
25
25
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -30,7 +30,7 @@ export interface ElasticSans {
|
|
|
30
30
|
* @param options The options parameters.
|
|
31
31
|
*/
|
|
32
32
|
listBySubscription(
|
|
33
|
-
options?: ElasticSansListBySubscriptionOptionalParams
|
|
33
|
+
options?: ElasticSansListBySubscriptionOptionalParams,
|
|
34
34
|
): PagedAsyncIterableIterator<ElasticSan>;
|
|
35
35
|
/**
|
|
36
36
|
* Gets a list of ElasticSan in a resource group.
|
|
@@ -39,7 +39,7 @@ export interface ElasticSans {
|
|
|
39
39
|
*/
|
|
40
40
|
listByResourceGroup(
|
|
41
41
|
resourceGroupName: string,
|
|
42
|
-
options?: ElasticSansListByResourceGroupOptionalParams
|
|
42
|
+
options?: ElasticSansListByResourceGroupOptionalParams,
|
|
43
43
|
): PagedAsyncIterableIterator<ElasticSan>;
|
|
44
44
|
/**
|
|
45
45
|
* Create ElasticSan.
|
|
@@ -52,7 +52,7 @@ export interface ElasticSans {
|
|
|
52
52
|
resourceGroupName: string,
|
|
53
53
|
elasticSanName: string,
|
|
54
54
|
parameters: ElasticSan,
|
|
55
|
-
options?: ElasticSansCreateOptionalParams
|
|
55
|
+
options?: ElasticSansCreateOptionalParams,
|
|
56
56
|
): Promise<
|
|
57
57
|
SimplePollerLike<
|
|
58
58
|
OperationState<ElasticSansCreateResponse>,
|
|
@@ -70,7 +70,7 @@ export interface ElasticSans {
|
|
|
70
70
|
resourceGroupName: string,
|
|
71
71
|
elasticSanName: string,
|
|
72
72
|
parameters: ElasticSan,
|
|
73
|
-
options?: ElasticSansCreateOptionalParams
|
|
73
|
+
options?: ElasticSansCreateOptionalParams,
|
|
74
74
|
): Promise<ElasticSansCreateResponse>;
|
|
75
75
|
/**
|
|
76
76
|
* Update a Elastic San.
|
|
@@ -83,7 +83,7 @@ export interface ElasticSans {
|
|
|
83
83
|
resourceGroupName: string,
|
|
84
84
|
elasticSanName: string,
|
|
85
85
|
parameters: ElasticSanUpdate,
|
|
86
|
-
options?: ElasticSansUpdateOptionalParams
|
|
86
|
+
options?: ElasticSansUpdateOptionalParams,
|
|
87
87
|
): Promise<
|
|
88
88
|
SimplePollerLike<
|
|
89
89
|
OperationState<ElasticSansUpdateResponse>,
|
|
@@ -101,7 +101,7 @@ export interface ElasticSans {
|
|
|
101
101
|
resourceGroupName: string,
|
|
102
102
|
elasticSanName: string,
|
|
103
103
|
parameters: ElasticSanUpdate,
|
|
104
|
-
options?: ElasticSansUpdateOptionalParams
|
|
104
|
+
options?: ElasticSansUpdateOptionalParams,
|
|
105
105
|
): Promise<ElasticSansUpdateResponse>;
|
|
106
106
|
/**
|
|
107
107
|
* Delete a Elastic San.
|
|
@@ -112,7 +112,7 @@ export interface ElasticSans {
|
|
|
112
112
|
beginDelete(
|
|
113
113
|
resourceGroupName: string,
|
|
114
114
|
elasticSanName: string,
|
|
115
|
-
options?: ElasticSansDeleteOptionalParams
|
|
115
|
+
options?: ElasticSansDeleteOptionalParams,
|
|
116
116
|
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
117
117
|
/**
|
|
118
118
|
* Delete a Elastic San.
|
|
@@ -123,7 +123,7 @@ export interface ElasticSans {
|
|
|
123
123
|
beginDeleteAndWait(
|
|
124
124
|
resourceGroupName: string,
|
|
125
125
|
elasticSanName: string,
|
|
126
|
-
options?: ElasticSansDeleteOptionalParams
|
|
126
|
+
options?: ElasticSansDeleteOptionalParams,
|
|
127
127
|
): Promise<void>;
|
|
128
128
|
/**
|
|
129
129
|
* Get a ElasticSan.
|
|
@@ -134,6 +134,6 @@ export interface ElasticSans {
|
|
|
134
134
|
get(
|
|
135
135
|
resourceGroupName: string,
|
|
136
136
|
elasticSanName: string,
|
|
137
|
-
options?: ElasticSansGetOptionalParams
|
|
137
|
+
options?: ElasticSansGetOptionalParams,
|
|
138
138
|
): Promise<ElasticSansGetResponse>;
|
|
139
139
|
}
|