@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 {
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
VolumeSnapshotsDeleteOptionalParams,
|
|
30
30
|
VolumeSnapshotsGetOptionalParams,
|
|
31
31
|
VolumeSnapshotsGetResponse,
|
|
32
|
-
VolumeSnapshotsListByVolumeGroupNextResponse
|
|
32
|
+
VolumeSnapshotsListByVolumeGroupNextResponse,
|
|
33
33
|
} from "../models";
|
|
34
34
|
|
|
35
35
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -56,13 +56,13 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
56
56
|
resourceGroupName: string,
|
|
57
57
|
elasticSanName: string,
|
|
58
58
|
volumeGroupName: string,
|
|
59
|
-
options?: VolumeSnapshotsListByVolumeGroupOptionalParams
|
|
59
|
+
options?: VolumeSnapshotsListByVolumeGroupOptionalParams,
|
|
60
60
|
): PagedAsyncIterableIterator<Snapshot> {
|
|
61
61
|
const iter = this.listByVolumeGroupPagingAll(
|
|
62
62
|
resourceGroupName,
|
|
63
63
|
elasticSanName,
|
|
64
64
|
volumeGroupName,
|
|
65
|
-
options
|
|
65
|
+
options,
|
|
66
66
|
);
|
|
67
67
|
return {
|
|
68
68
|
next() {
|
|
@@ -80,9 +80,9 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
80
80
|
elasticSanName,
|
|
81
81
|
volumeGroupName,
|
|
82
82
|
options,
|
|
83
|
-
settings
|
|
83
|
+
settings,
|
|
84
84
|
);
|
|
85
|
-
}
|
|
85
|
+
},
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -91,7 +91,7 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
91
91
|
elasticSanName: string,
|
|
92
92
|
volumeGroupName: string,
|
|
93
93
|
options?: VolumeSnapshotsListByVolumeGroupOptionalParams,
|
|
94
|
-
settings?: PageSettings
|
|
94
|
+
settings?: PageSettings,
|
|
95
95
|
): AsyncIterableIterator<Snapshot[]> {
|
|
96
96
|
let result: VolumeSnapshotsListByVolumeGroupResponse;
|
|
97
97
|
let continuationToken = settings?.continuationToken;
|
|
@@ -100,7 +100,7 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
100
100
|
resourceGroupName,
|
|
101
101
|
elasticSanName,
|
|
102
102
|
volumeGroupName,
|
|
103
|
-
options
|
|
103
|
+
options,
|
|
104
104
|
);
|
|
105
105
|
let page = result.value || [];
|
|
106
106
|
continuationToken = result.nextLink;
|
|
@@ -113,7 +113,7 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
113
113
|
elasticSanName,
|
|
114
114
|
volumeGroupName,
|
|
115
115
|
continuationToken,
|
|
116
|
-
options
|
|
116
|
+
options,
|
|
117
117
|
);
|
|
118
118
|
continuationToken = result.nextLink;
|
|
119
119
|
let page = result.value || [];
|
|
@@ -126,13 +126,13 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
126
126
|
resourceGroupName: string,
|
|
127
127
|
elasticSanName: string,
|
|
128
128
|
volumeGroupName: string,
|
|
129
|
-
options?: VolumeSnapshotsListByVolumeGroupOptionalParams
|
|
129
|
+
options?: VolumeSnapshotsListByVolumeGroupOptionalParams,
|
|
130
130
|
): AsyncIterableIterator<Snapshot> {
|
|
131
131
|
for await (const page of this.listByVolumeGroupPagingPage(
|
|
132
132
|
resourceGroupName,
|
|
133
133
|
elasticSanName,
|
|
134
134
|
volumeGroupName,
|
|
135
|
-
options
|
|
135
|
+
options,
|
|
136
136
|
)) {
|
|
137
137
|
yield* page;
|
|
138
138
|
}
|
|
@@ -149,11 +149,11 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
149
149
|
resourceGroupName: string,
|
|
150
150
|
elasticSanName: string,
|
|
151
151
|
volumeGroupName: string,
|
|
152
|
-
options?: VolumeSnapshotsListByVolumeGroupOptionalParams
|
|
152
|
+
options?: VolumeSnapshotsListByVolumeGroupOptionalParams,
|
|
153
153
|
): Promise<VolumeSnapshotsListByVolumeGroupResponse> {
|
|
154
154
|
return this.client.sendOperationRequest(
|
|
155
155
|
{ resourceGroupName, elasticSanName, volumeGroupName, options },
|
|
156
|
-
listByVolumeGroupOperationSpec
|
|
156
|
+
listByVolumeGroupOperationSpec,
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
159
|
|
|
@@ -172,7 +172,7 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
172
172
|
volumeGroupName: string,
|
|
173
173
|
snapshotName: string,
|
|
174
174
|
parameters: Snapshot,
|
|
175
|
-
options?: VolumeSnapshotsCreateOptionalParams
|
|
175
|
+
options?: VolumeSnapshotsCreateOptionalParams,
|
|
176
176
|
): Promise<
|
|
177
177
|
SimplePollerLike<
|
|
178
178
|
OperationState<VolumeSnapshotsCreateResponse>,
|
|
@@ -181,21 +181,20 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
181
181
|
> {
|
|
182
182
|
const directSendOperation = async (
|
|
183
183
|
args: coreClient.OperationArguments,
|
|
184
|
-
spec: coreClient.OperationSpec
|
|
184
|
+
spec: coreClient.OperationSpec,
|
|
185
185
|
): Promise<VolumeSnapshotsCreateResponse> => {
|
|
186
186
|
return this.client.sendOperationRequest(args, spec);
|
|
187
187
|
};
|
|
188
188
|
const sendOperationFn = async (
|
|
189
189
|
args: coreClient.OperationArguments,
|
|
190
|
-
spec: coreClient.OperationSpec
|
|
190
|
+
spec: coreClient.OperationSpec,
|
|
191
191
|
) => {
|
|
192
|
-
let currentRawResponse:
|
|
193
|
-
|
|
194
|
-
| undefined = undefined;
|
|
192
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
193
|
+
undefined;
|
|
195
194
|
const providedCallback = args.options?.onResponse;
|
|
196
195
|
const callback: coreClient.RawResponseCallback = (
|
|
197
196
|
rawResponse: coreClient.FullOperationResponse,
|
|
198
|
-
flatResponse: unknown
|
|
197
|
+
flatResponse: unknown,
|
|
199
198
|
) => {
|
|
200
199
|
currentRawResponse = rawResponse;
|
|
201
200
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -204,8 +203,8 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
204
203
|
...args,
|
|
205
204
|
options: {
|
|
206
205
|
...args.options,
|
|
207
|
-
onResponse: callback
|
|
208
|
-
}
|
|
206
|
+
onResponse: callback,
|
|
207
|
+
},
|
|
209
208
|
};
|
|
210
209
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
211
210
|
return {
|
|
@@ -213,8 +212,8 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
213
212
|
rawResponse: {
|
|
214
213
|
statusCode: currentRawResponse!.status,
|
|
215
214
|
body: currentRawResponse!.parsedBody,
|
|
216
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
217
|
-
}
|
|
215
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
216
|
+
},
|
|
218
217
|
};
|
|
219
218
|
};
|
|
220
219
|
|
|
@@ -226,9 +225,9 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
226
225
|
volumeGroupName,
|
|
227
226
|
snapshotName,
|
|
228
227
|
parameters,
|
|
229
|
-
options
|
|
228
|
+
options,
|
|
230
229
|
},
|
|
231
|
-
spec: createOperationSpec
|
|
230
|
+
spec: createOperationSpec,
|
|
232
231
|
});
|
|
233
232
|
const poller = await createHttpPoller<
|
|
234
233
|
VolumeSnapshotsCreateResponse,
|
|
@@ -236,7 +235,7 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
236
235
|
>(lro, {
|
|
237
236
|
restoreFrom: options?.resumeFrom,
|
|
238
237
|
intervalInMs: options?.updateIntervalInMs,
|
|
239
|
-
resourceLocationConfig: "location"
|
|
238
|
+
resourceLocationConfig: "location",
|
|
240
239
|
});
|
|
241
240
|
await poller.poll();
|
|
242
241
|
return poller;
|
|
@@ -257,7 +256,7 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
257
256
|
volumeGroupName: string,
|
|
258
257
|
snapshotName: string,
|
|
259
258
|
parameters: Snapshot,
|
|
260
|
-
options?: VolumeSnapshotsCreateOptionalParams
|
|
259
|
+
options?: VolumeSnapshotsCreateOptionalParams,
|
|
261
260
|
): Promise<VolumeSnapshotsCreateResponse> {
|
|
262
261
|
const poller = await this.beginCreate(
|
|
263
262
|
resourceGroupName,
|
|
@@ -265,7 +264,7 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
265
264
|
volumeGroupName,
|
|
266
265
|
snapshotName,
|
|
267
266
|
parameters,
|
|
268
|
-
options
|
|
267
|
+
options,
|
|
269
268
|
);
|
|
270
269
|
return poller.pollUntilDone();
|
|
271
270
|
}
|
|
@@ -283,25 +282,24 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
283
282
|
elasticSanName: string,
|
|
284
283
|
volumeGroupName: string,
|
|
285
284
|
snapshotName: string,
|
|
286
|
-
options?: VolumeSnapshotsDeleteOptionalParams
|
|
285
|
+
options?: VolumeSnapshotsDeleteOptionalParams,
|
|
287
286
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
288
287
|
const directSendOperation = async (
|
|
289
288
|
args: coreClient.OperationArguments,
|
|
290
|
-
spec: coreClient.OperationSpec
|
|
289
|
+
spec: coreClient.OperationSpec,
|
|
291
290
|
): Promise<void> => {
|
|
292
291
|
return this.client.sendOperationRequest(args, spec);
|
|
293
292
|
};
|
|
294
293
|
const sendOperationFn = async (
|
|
295
294
|
args: coreClient.OperationArguments,
|
|
296
|
-
spec: coreClient.OperationSpec
|
|
295
|
+
spec: coreClient.OperationSpec,
|
|
297
296
|
) => {
|
|
298
|
-
let currentRawResponse:
|
|
299
|
-
|
|
300
|
-
| undefined = undefined;
|
|
297
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
298
|
+
undefined;
|
|
301
299
|
const providedCallback = args.options?.onResponse;
|
|
302
300
|
const callback: coreClient.RawResponseCallback = (
|
|
303
301
|
rawResponse: coreClient.FullOperationResponse,
|
|
304
|
-
flatResponse: unknown
|
|
302
|
+
flatResponse: unknown,
|
|
305
303
|
) => {
|
|
306
304
|
currentRawResponse = rawResponse;
|
|
307
305
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -310,8 +308,8 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
310
308
|
...args,
|
|
311
309
|
options: {
|
|
312
310
|
...args.options,
|
|
313
|
-
onResponse: callback
|
|
314
|
-
}
|
|
311
|
+
onResponse: callback,
|
|
312
|
+
},
|
|
315
313
|
};
|
|
316
314
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
317
315
|
return {
|
|
@@ -319,8 +317,8 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
319
317
|
rawResponse: {
|
|
320
318
|
statusCode: currentRawResponse!.status,
|
|
321
319
|
body: currentRawResponse!.parsedBody,
|
|
322
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
323
|
-
}
|
|
320
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
321
|
+
},
|
|
324
322
|
};
|
|
325
323
|
};
|
|
326
324
|
|
|
@@ -331,14 +329,14 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
331
329
|
elasticSanName,
|
|
332
330
|
volumeGroupName,
|
|
333
331
|
snapshotName,
|
|
334
|
-
options
|
|
332
|
+
options,
|
|
335
333
|
},
|
|
336
|
-
spec: deleteOperationSpec
|
|
334
|
+
spec: deleteOperationSpec,
|
|
337
335
|
});
|
|
338
336
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
339
337
|
restoreFrom: options?.resumeFrom,
|
|
340
338
|
intervalInMs: options?.updateIntervalInMs,
|
|
341
|
-
resourceLocationConfig: "location"
|
|
339
|
+
resourceLocationConfig: "location",
|
|
342
340
|
});
|
|
343
341
|
await poller.poll();
|
|
344
342
|
return poller;
|
|
@@ -357,14 +355,14 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
357
355
|
elasticSanName: string,
|
|
358
356
|
volumeGroupName: string,
|
|
359
357
|
snapshotName: string,
|
|
360
|
-
options?: VolumeSnapshotsDeleteOptionalParams
|
|
358
|
+
options?: VolumeSnapshotsDeleteOptionalParams,
|
|
361
359
|
): Promise<void> {
|
|
362
360
|
const poller = await this.beginDelete(
|
|
363
361
|
resourceGroupName,
|
|
364
362
|
elasticSanName,
|
|
365
363
|
volumeGroupName,
|
|
366
364
|
snapshotName,
|
|
367
|
-
options
|
|
365
|
+
options,
|
|
368
366
|
);
|
|
369
367
|
return poller.pollUntilDone();
|
|
370
368
|
}
|
|
@@ -382,7 +380,7 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
382
380
|
elasticSanName: string,
|
|
383
381
|
volumeGroupName: string,
|
|
384
382
|
snapshotName: string,
|
|
385
|
-
options?: VolumeSnapshotsGetOptionalParams
|
|
383
|
+
options?: VolumeSnapshotsGetOptionalParams,
|
|
386
384
|
): Promise<VolumeSnapshotsGetResponse> {
|
|
387
385
|
return this.client.sendOperationRequest(
|
|
388
386
|
{
|
|
@@ -390,9 +388,9 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
390
388
|
elasticSanName,
|
|
391
389
|
volumeGroupName,
|
|
392
390
|
snapshotName,
|
|
393
|
-
options
|
|
391
|
+
options,
|
|
394
392
|
},
|
|
395
|
-
getOperationSpec
|
|
393
|
+
getOperationSpec,
|
|
396
394
|
);
|
|
397
395
|
}
|
|
398
396
|
|
|
@@ -409,11 +407,11 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
409
407
|
elasticSanName: string,
|
|
410
408
|
volumeGroupName: string,
|
|
411
409
|
nextLink: string,
|
|
412
|
-
options?: VolumeSnapshotsListByVolumeGroupNextOptionalParams
|
|
410
|
+
options?: VolumeSnapshotsListByVolumeGroupNextOptionalParams,
|
|
413
411
|
): Promise<VolumeSnapshotsListByVolumeGroupNextResponse> {
|
|
414
412
|
return this.client.sendOperationRequest(
|
|
415
413
|
{ resourceGroupName, elasticSanName, volumeGroupName, nextLink, options },
|
|
416
|
-
listByVolumeGroupNextOperationSpec
|
|
414
|
+
listByVolumeGroupNextOperationSpec,
|
|
417
415
|
);
|
|
418
416
|
}
|
|
419
417
|
}
|
|
@@ -421,16 +419,15 @@ export class VolumeSnapshotsImpl implements VolumeSnapshots {
|
|
|
421
419
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
422
420
|
|
|
423
421
|
const listByVolumeGroupOperationSpec: coreClient.OperationSpec = {
|
|
424
|
-
path:
|
|
425
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots",
|
|
422
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots",
|
|
426
423
|
httpMethod: "GET",
|
|
427
424
|
responses: {
|
|
428
425
|
200: {
|
|
429
|
-
bodyMapper: Mappers.SnapshotList
|
|
426
|
+
bodyMapper: Mappers.SnapshotList,
|
|
430
427
|
},
|
|
431
428
|
default: {
|
|
432
|
-
bodyMapper: Mappers.ErrorResponse
|
|
433
|
-
}
|
|
429
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
430
|
+
},
|
|
434
431
|
},
|
|
435
432
|
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
|
436
433
|
urlParameters: [
|
|
@@ -438,31 +435,30 @@ const listByVolumeGroupOperationSpec: coreClient.OperationSpec = {
|
|
|
438
435
|
Parameters.subscriptionId,
|
|
439
436
|
Parameters.resourceGroupName,
|
|
440
437
|
Parameters.elasticSanName,
|
|
441
|
-
Parameters.volumeGroupName
|
|
438
|
+
Parameters.volumeGroupName,
|
|
442
439
|
],
|
|
443
440
|
headerParameters: [Parameters.accept],
|
|
444
|
-
serializer
|
|
441
|
+
serializer,
|
|
445
442
|
};
|
|
446
443
|
const createOperationSpec: coreClient.OperationSpec = {
|
|
447
|
-
path:
|
|
448
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}",
|
|
444
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}",
|
|
449
445
|
httpMethod: "PUT",
|
|
450
446
|
responses: {
|
|
451
447
|
200: {
|
|
452
|
-
bodyMapper: Mappers.Snapshot
|
|
448
|
+
bodyMapper: Mappers.Snapshot,
|
|
453
449
|
},
|
|
454
450
|
201: {
|
|
455
|
-
bodyMapper: Mappers.Snapshot
|
|
451
|
+
bodyMapper: Mappers.Snapshot,
|
|
456
452
|
},
|
|
457
453
|
202: {
|
|
458
|
-
bodyMapper: Mappers.Snapshot
|
|
454
|
+
bodyMapper: Mappers.Snapshot,
|
|
459
455
|
},
|
|
460
456
|
204: {
|
|
461
|
-
bodyMapper: Mappers.Snapshot
|
|
457
|
+
bodyMapper: Mappers.Snapshot,
|
|
462
458
|
},
|
|
463
459
|
default: {
|
|
464
|
-
bodyMapper: Mappers.ErrorResponse
|
|
465
|
-
}
|
|
460
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
461
|
+
},
|
|
466
462
|
},
|
|
467
463
|
requestBody: Parameters.parameters7,
|
|
468
464
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -472,15 +468,14 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
472
468
|
Parameters.resourceGroupName,
|
|
473
469
|
Parameters.elasticSanName,
|
|
474
470
|
Parameters.volumeGroupName,
|
|
475
|
-
Parameters.snapshotName
|
|
471
|
+
Parameters.snapshotName,
|
|
476
472
|
],
|
|
477
473
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
478
474
|
mediaType: "json",
|
|
479
|
-
serializer
|
|
475
|
+
serializer,
|
|
480
476
|
};
|
|
481
477
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
482
|
-
path:
|
|
483
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}",
|
|
478
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}",
|
|
484
479
|
httpMethod: "DELETE",
|
|
485
480
|
responses: {
|
|
486
481
|
200: {},
|
|
@@ -488,8 +483,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
488
483
|
202: {},
|
|
489
484
|
204: {},
|
|
490
485
|
default: {
|
|
491
|
-
bodyMapper: Mappers.ErrorResponse
|
|
492
|
-
}
|
|
486
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
487
|
+
},
|
|
493
488
|
},
|
|
494
489
|
queryParameters: [Parameters.apiVersion],
|
|
495
490
|
urlParameters: [
|
|
@@ -498,22 +493,21 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
498
493
|
Parameters.resourceGroupName,
|
|
499
494
|
Parameters.elasticSanName,
|
|
500
495
|
Parameters.volumeGroupName,
|
|
501
|
-
Parameters.snapshotName
|
|
496
|
+
Parameters.snapshotName,
|
|
502
497
|
],
|
|
503
498
|
headerParameters: [Parameters.accept],
|
|
504
|
-
serializer
|
|
499
|
+
serializer,
|
|
505
500
|
};
|
|
506
501
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
507
|
-
path:
|
|
508
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}",
|
|
502
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}",
|
|
509
503
|
httpMethod: "GET",
|
|
510
504
|
responses: {
|
|
511
505
|
200: {
|
|
512
|
-
bodyMapper: Mappers.Snapshot
|
|
506
|
+
bodyMapper: Mappers.Snapshot,
|
|
513
507
|
},
|
|
514
508
|
default: {
|
|
515
|
-
bodyMapper: Mappers.ErrorResponse
|
|
516
|
-
}
|
|
509
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
510
|
+
},
|
|
517
511
|
},
|
|
518
512
|
queryParameters: [Parameters.apiVersion],
|
|
519
513
|
urlParameters: [
|
|
@@ -522,21 +516,21 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
522
516
|
Parameters.resourceGroupName,
|
|
523
517
|
Parameters.elasticSanName,
|
|
524
518
|
Parameters.volumeGroupName,
|
|
525
|
-
Parameters.snapshotName
|
|
519
|
+
Parameters.snapshotName,
|
|
526
520
|
],
|
|
527
521
|
headerParameters: [Parameters.accept],
|
|
528
|
-
serializer
|
|
522
|
+
serializer,
|
|
529
523
|
};
|
|
530
524
|
const listByVolumeGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
531
525
|
path: "{nextLink}",
|
|
532
526
|
httpMethod: "GET",
|
|
533
527
|
responses: {
|
|
534
528
|
200: {
|
|
535
|
-
bodyMapper: Mappers.SnapshotList
|
|
529
|
+
bodyMapper: Mappers.SnapshotList,
|
|
536
530
|
},
|
|
537
531
|
default: {
|
|
538
|
-
bodyMapper: Mappers.ErrorResponse
|
|
539
|
-
}
|
|
532
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
533
|
+
},
|
|
540
534
|
},
|
|
541
535
|
urlParameters: [
|
|
542
536
|
Parameters.$host,
|
|
@@ -544,8 +538,8 @@ const listByVolumeGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
544
538
|
Parameters.resourceGroupName,
|
|
545
539
|
Parameters.elasticSanName,
|
|
546
540
|
Parameters.nextLink,
|
|
547
|
-
Parameters.volumeGroupName
|
|
541
|
+
Parameters.volumeGroupName,
|
|
548
542
|
],
|
|
549
543
|
headerParameters: [Parameters.accept],
|
|
550
|
-
serializer
|
|
544
|
+
serializer,
|
|
551
545
|
};
|