@azure/arm-elasticsan 1.0.1-alpha.20240925.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
|
VolumeGroupsDeleteOptionalParams,
|
|
33
33
|
VolumeGroupsGetOptionalParams,
|
|
34
34
|
VolumeGroupsGetResponse,
|
|
35
|
-
VolumeGroupsListByElasticSanNextResponse
|
|
35
|
+
VolumeGroupsListByElasticSanNextResponse,
|
|
36
36
|
} from "../models";
|
|
37
37
|
|
|
38
38
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -57,12 +57,12 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
57
57
|
public listByElasticSan(
|
|
58
58
|
resourceGroupName: string,
|
|
59
59
|
elasticSanName: string,
|
|
60
|
-
options?: VolumeGroupsListByElasticSanOptionalParams
|
|
60
|
+
options?: VolumeGroupsListByElasticSanOptionalParams,
|
|
61
61
|
): PagedAsyncIterableIterator<VolumeGroup> {
|
|
62
62
|
const iter = this.listByElasticSanPagingAll(
|
|
63
63
|
resourceGroupName,
|
|
64
64
|
elasticSanName,
|
|
65
|
-
options
|
|
65
|
+
options,
|
|
66
66
|
);
|
|
67
67
|
return {
|
|
68
68
|
next() {
|
|
@@ -79,9 +79,9 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
79
79
|
resourceGroupName,
|
|
80
80
|
elasticSanName,
|
|
81
81
|
options,
|
|
82
|
-
settings
|
|
82
|
+
settings,
|
|
83
83
|
);
|
|
84
|
-
}
|
|
84
|
+
},
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -89,7 +89,7 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
89
89
|
resourceGroupName: string,
|
|
90
90
|
elasticSanName: string,
|
|
91
91
|
options?: VolumeGroupsListByElasticSanOptionalParams,
|
|
92
|
-
settings?: PageSettings
|
|
92
|
+
settings?: PageSettings,
|
|
93
93
|
): AsyncIterableIterator<VolumeGroup[]> {
|
|
94
94
|
let result: VolumeGroupsListByElasticSanResponse;
|
|
95
95
|
let continuationToken = settings?.continuationToken;
|
|
@@ -97,7 +97,7 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
97
97
|
result = await this._listByElasticSan(
|
|
98
98
|
resourceGroupName,
|
|
99
99
|
elasticSanName,
|
|
100
|
-
options
|
|
100
|
+
options,
|
|
101
101
|
);
|
|
102
102
|
let page = result.value || [];
|
|
103
103
|
continuationToken = result.nextLink;
|
|
@@ -109,7 +109,7 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
109
109
|
resourceGroupName,
|
|
110
110
|
elasticSanName,
|
|
111
111
|
continuationToken,
|
|
112
|
-
options
|
|
112
|
+
options,
|
|
113
113
|
);
|
|
114
114
|
continuationToken = result.nextLink;
|
|
115
115
|
let page = result.value || [];
|
|
@@ -121,12 +121,12 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
121
121
|
private async *listByElasticSanPagingAll(
|
|
122
122
|
resourceGroupName: string,
|
|
123
123
|
elasticSanName: string,
|
|
124
|
-
options?: VolumeGroupsListByElasticSanOptionalParams
|
|
124
|
+
options?: VolumeGroupsListByElasticSanOptionalParams,
|
|
125
125
|
): AsyncIterableIterator<VolumeGroup> {
|
|
126
126
|
for await (const page of this.listByElasticSanPagingPage(
|
|
127
127
|
resourceGroupName,
|
|
128
128
|
elasticSanName,
|
|
129
|
-
options
|
|
129
|
+
options,
|
|
130
130
|
)) {
|
|
131
131
|
yield* page;
|
|
132
132
|
}
|
|
@@ -141,11 +141,11 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
141
141
|
private _listByElasticSan(
|
|
142
142
|
resourceGroupName: string,
|
|
143
143
|
elasticSanName: string,
|
|
144
|
-
options?: VolumeGroupsListByElasticSanOptionalParams
|
|
144
|
+
options?: VolumeGroupsListByElasticSanOptionalParams,
|
|
145
145
|
): Promise<VolumeGroupsListByElasticSanResponse> {
|
|
146
146
|
return this.client.sendOperationRequest(
|
|
147
147
|
{ resourceGroupName, elasticSanName, options },
|
|
148
|
-
listByElasticSanOperationSpec
|
|
148
|
+
listByElasticSanOperationSpec,
|
|
149
149
|
);
|
|
150
150
|
}
|
|
151
151
|
|
|
@@ -162,7 +162,7 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
162
162
|
elasticSanName: string,
|
|
163
163
|
volumeGroupName: string,
|
|
164
164
|
parameters: VolumeGroup,
|
|
165
|
-
options?: VolumeGroupsCreateOptionalParams
|
|
165
|
+
options?: VolumeGroupsCreateOptionalParams,
|
|
166
166
|
): Promise<
|
|
167
167
|
SimplePollerLike<
|
|
168
168
|
OperationState<VolumeGroupsCreateResponse>,
|
|
@@ -171,21 +171,20 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
171
171
|
> {
|
|
172
172
|
const directSendOperation = async (
|
|
173
173
|
args: coreClient.OperationArguments,
|
|
174
|
-
spec: coreClient.OperationSpec
|
|
174
|
+
spec: coreClient.OperationSpec,
|
|
175
175
|
): Promise<VolumeGroupsCreateResponse> => {
|
|
176
176
|
return this.client.sendOperationRequest(args, spec);
|
|
177
177
|
};
|
|
178
178
|
const sendOperationFn = async (
|
|
179
179
|
args: coreClient.OperationArguments,
|
|
180
|
-
spec: coreClient.OperationSpec
|
|
180
|
+
spec: coreClient.OperationSpec,
|
|
181
181
|
) => {
|
|
182
|
-
let currentRawResponse:
|
|
183
|
-
|
|
184
|
-
| undefined = undefined;
|
|
182
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
183
|
+
undefined;
|
|
185
184
|
const providedCallback = args.options?.onResponse;
|
|
186
185
|
const callback: coreClient.RawResponseCallback = (
|
|
187
186
|
rawResponse: coreClient.FullOperationResponse,
|
|
188
|
-
flatResponse: unknown
|
|
187
|
+
flatResponse: unknown,
|
|
189
188
|
) => {
|
|
190
189
|
currentRawResponse = rawResponse;
|
|
191
190
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -194,8 +193,8 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
194
193
|
...args,
|
|
195
194
|
options: {
|
|
196
195
|
...args.options,
|
|
197
|
-
onResponse: callback
|
|
198
|
-
}
|
|
196
|
+
onResponse: callback,
|
|
197
|
+
},
|
|
199
198
|
};
|
|
200
199
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
201
200
|
return {
|
|
@@ -203,8 +202,8 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
203
202
|
rawResponse: {
|
|
204
203
|
statusCode: currentRawResponse!.status,
|
|
205
204
|
body: currentRawResponse!.parsedBody,
|
|
206
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
207
|
-
}
|
|
205
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
206
|
+
},
|
|
208
207
|
};
|
|
209
208
|
};
|
|
210
209
|
|
|
@@ -215,9 +214,9 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
215
214
|
elasticSanName,
|
|
216
215
|
volumeGroupName,
|
|
217
216
|
parameters,
|
|
218
|
-
options
|
|
217
|
+
options,
|
|
219
218
|
},
|
|
220
|
-
spec: createOperationSpec
|
|
219
|
+
spec: createOperationSpec,
|
|
221
220
|
});
|
|
222
221
|
const poller = await createHttpPoller<
|
|
223
222
|
VolumeGroupsCreateResponse,
|
|
@@ -225,7 +224,7 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
225
224
|
>(lro, {
|
|
226
225
|
restoreFrom: options?.resumeFrom,
|
|
227
226
|
intervalInMs: options?.updateIntervalInMs,
|
|
228
|
-
resourceLocationConfig: "location"
|
|
227
|
+
resourceLocationConfig: "location",
|
|
229
228
|
});
|
|
230
229
|
await poller.poll();
|
|
231
230
|
return poller;
|
|
@@ -244,14 +243,14 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
244
243
|
elasticSanName: string,
|
|
245
244
|
volumeGroupName: string,
|
|
246
245
|
parameters: VolumeGroup,
|
|
247
|
-
options?: VolumeGroupsCreateOptionalParams
|
|
246
|
+
options?: VolumeGroupsCreateOptionalParams,
|
|
248
247
|
): Promise<VolumeGroupsCreateResponse> {
|
|
249
248
|
const poller = await this.beginCreate(
|
|
250
249
|
resourceGroupName,
|
|
251
250
|
elasticSanName,
|
|
252
251
|
volumeGroupName,
|
|
253
252
|
parameters,
|
|
254
|
-
options
|
|
253
|
+
options,
|
|
255
254
|
);
|
|
256
255
|
return poller.pollUntilDone();
|
|
257
256
|
}
|
|
@@ -269,7 +268,7 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
269
268
|
elasticSanName: string,
|
|
270
269
|
volumeGroupName: string,
|
|
271
270
|
parameters: VolumeGroupUpdate,
|
|
272
|
-
options?: VolumeGroupsUpdateOptionalParams
|
|
271
|
+
options?: VolumeGroupsUpdateOptionalParams,
|
|
273
272
|
): Promise<
|
|
274
273
|
SimplePollerLike<
|
|
275
274
|
OperationState<VolumeGroupsUpdateResponse>,
|
|
@@ -278,21 +277,20 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
278
277
|
> {
|
|
279
278
|
const directSendOperation = async (
|
|
280
279
|
args: coreClient.OperationArguments,
|
|
281
|
-
spec: coreClient.OperationSpec
|
|
280
|
+
spec: coreClient.OperationSpec,
|
|
282
281
|
): Promise<VolumeGroupsUpdateResponse> => {
|
|
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 VolumeGroupsImpl implements VolumeGroups {
|
|
|
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 VolumeGroupsImpl implements VolumeGroups {
|
|
|
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
|
|
|
@@ -322,9 +320,9 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
322
320
|
elasticSanName,
|
|
323
321
|
volumeGroupName,
|
|
324
322
|
parameters,
|
|
325
|
-
options
|
|
323
|
+
options,
|
|
326
324
|
},
|
|
327
|
-
spec: updateOperationSpec
|
|
325
|
+
spec: updateOperationSpec,
|
|
328
326
|
});
|
|
329
327
|
const poller = await createHttpPoller<
|
|
330
328
|
VolumeGroupsUpdateResponse,
|
|
@@ -332,7 +330,7 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
332
330
|
>(lro, {
|
|
333
331
|
restoreFrom: options?.resumeFrom,
|
|
334
332
|
intervalInMs: options?.updateIntervalInMs,
|
|
335
|
-
resourceLocationConfig: "location"
|
|
333
|
+
resourceLocationConfig: "location",
|
|
336
334
|
});
|
|
337
335
|
await poller.poll();
|
|
338
336
|
return poller;
|
|
@@ -351,14 +349,14 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
351
349
|
elasticSanName: string,
|
|
352
350
|
volumeGroupName: string,
|
|
353
351
|
parameters: VolumeGroupUpdate,
|
|
354
|
-
options?: VolumeGroupsUpdateOptionalParams
|
|
352
|
+
options?: VolumeGroupsUpdateOptionalParams,
|
|
355
353
|
): Promise<VolumeGroupsUpdateResponse> {
|
|
356
354
|
const poller = await this.beginUpdate(
|
|
357
355
|
resourceGroupName,
|
|
358
356
|
elasticSanName,
|
|
359
357
|
volumeGroupName,
|
|
360
358
|
parameters,
|
|
361
|
-
options
|
|
359
|
+
options,
|
|
362
360
|
);
|
|
363
361
|
return poller.pollUntilDone();
|
|
364
362
|
}
|
|
@@ -374,25 +372,24 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
374
372
|
resourceGroupName: string,
|
|
375
373
|
elasticSanName: string,
|
|
376
374
|
volumeGroupName: string,
|
|
377
|
-
options?: VolumeGroupsDeleteOptionalParams
|
|
375
|
+
options?: VolumeGroupsDeleteOptionalParams,
|
|
378
376
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
379
377
|
const directSendOperation = async (
|
|
380
378
|
args: coreClient.OperationArguments,
|
|
381
|
-
spec: coreClient.OperationSpec
|
|
379
|
+
spec: coreClient.OperationSpec,
|
|
382
380
|
): Promise<void> => {
|
|
383
381
|
return this.client.sendOperationRequest(args, spec);
|
|
384
382
|
};
|
|
385
383
|
const sendOperationFn = async (
|
|
386
384
|
args: coreClient.OperationArguments,
|
|
387
|
-
spec: coreClient.OperationSpec
|
|
385
|
+
spec: coreClient.OperationSpec,
|
|
388
386
|
) => {
|
|
389
|
-
let currentRawResponse:
|
|
390
|
-
|
|
391
|
-
| undefined = undefined;
|
|
387
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
388
|
+
undefined;
|
|
392
389
|
const providedCallback = args.options?.onResponse;
|
|
393
390
|
const callback: coreClient.RawResponseCallback = (
|
|
394
391
|
rawResponse: coreClient.FullOperationResponse,
|
|
395
|
-
flatResponse: unknown
|
|
392
|
+
flatResponse: unknown,
|
|
396
393
|
) => {
|
|
397
394
|
currentRawResponse = rawResponse;
|
|
398
395
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -401,8 +398,8 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
401
398
|
...args,
|
|
402
399
|
options: {
|
|
403
400
|
...args.options,
|
|
404
|
-
onResponse: callback
|
|
405
|
-
}
|
|
401
|
+
onResponse: callback,
|
|
402
|
+
},
|
|
406
403
|
};
|
|
407
404
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
408
405
|
return {
|
|
@@ -410,20 +407,20 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
410
407
|
rawResponse: {
|
|
411
408
|
statusCode: currentRawResponse!.status,
|
|
412
409
|
body: currentRawResponse!.parsedBody,
|
|
413
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
414
|
-
}
|
|
410
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
411
|
+
},
|
|
415
412
|
};
|
|
416
413
|
};
|
|
417
414
|
|
|
418
415
|
const lro = createLroSpec({
|
|
419
416
|
sendOperationFn,
|
|
420
417
|
args: { resourceGroupName, elasticSanName, volumeGroupName, options },
|
|
421
|
-
spec: deleteOperationSpec
|
|
418
|
+
spec: deleteOperationSpec,
|
|
422
419
|
});
|
|
423
420
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
424
421
|
restoreFrom: options?.resumeFrom,
|
|
425
422
|
intervalInMs: options?.updateIntervalInMs,
|
|
426
|
-
resourceLocationConfig: "location"
|
|
423
|
+
resourceLocationConfig: "location",
|
|
427
424
|
});
|
|
428
425
|
await poller.poll();
|
|
429
426
|
return poller;
|
|
@@ -440,13 +437,13 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
440
437
|
resourceGroupName: string,
|
|
441
438
|
elasticSanName: string,
|
|
442
439
|
volumeGroupName: string,
|
|
443
|
-
options?: VolumeGroupsDeleteOptionalParams
|
|
440
|
+
options?: VolumeGroupsDeleteOptionalParams,
|
|
444
441
|
): Promise<void> {
|
|
445
442
|
const poller = await this.beginDelete(
|
|
446
443
|
resourceGroupName,
|
|
447
444
|
elasticSanName,
|
|
448
445
|
volumeGroupName,
|
|
449
|
-
options
|
|
446
|
+
options,
|
|
450
447
|
);
|
|
451
448
|
return poller.pollUntilDone();
|
|
452
449
|
}
|
|
@@ -462,11 +459,11 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
462
459
|
resourceGroupName: string,
|
|
463
460
|
elasticSanName: string,
|
|
464
461
|
volumeGroupName: string,
|
|
465
|
-
options?: VolumeGroupsGetOptionalParams
|
|
462
|
+
options?: VolumeGroupsGetOptionalParams,
|
|
466
463
|
): Promise<VolumeGroupsGetResponse> {
|
|
467
464
|
return this.client.sendOperationRequest(
|
|
468
465
|
{ resourceGroupName, elasticSanName, volumeGroupName, options },
|
|
469
|
-
getOperationSpec
|
|
466
|
+
getOperationSpec,
|
|
470
467
|
);
|
|
471
468
|
}
|
|
472
469
|
|
|
@@ -481,11 +478,11 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
481
478
|
resourceGroupName: string,
|
|
482
479
|
elasticSanName: string,
|
|
483
480
|
nextLink: string,
|
|
484
|
-
options?: VolumeGroupsListByElasticSanNextOptionalParams
|
|
481
|
+
options?: VolumeGroupsListByElasticSanNextOptionalParams,
|
|
485
482
|
): Promise<VolumeGroupsListByElasticSanNextResponse> {
|
|
486
483
|
return this.client.sendOperationRequest(
|
|
487
484
|
{ resourceGroupName, elasticSanName, nextLink, options },
|
|
488
|
-
listByElasticSanNextOperationSpec
|
|
485
|
+
listByElasticSanNextOperationSpec,
|
|
489
486
|
);
|
|
490
487
|
}
|
|
491
488
|
}
|
|
@@ -493,47 +490,45 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
493
490
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
494
491
|
|
|
495
492
|
const listByElasticSanOperationSpec: coreClient.OperationSpec = {
|
|
496
|
-
path:
|
|
497
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumeGroups",
|
|
493
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumeGroups",
|
|
498
494
|
httpMethod: "GET",
|
|
499
495
|
responses: {
|
|
500
496
|
200: {
|
|
501
|
-
bodyMapper: Mappers.VolumeGroupList
|
|
497
|
+
bodyMapper: Mappers.VolumeGroupList,
|
|
502
498
|
},
|
|
503
499
|
default: {
|
|
504
|
-
bodyMapper: Mappers.ErrorResponse
|
|
505
|
-
}
|
|
500
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
501
|
+
},
|
|
506
502
|
},
|
|
507
503
|
queryParameters: [Parameters.apiVersion],
|
|
508
504
|
urlParameters: [
|
|
509
505
|
Parameters.$host,
|
|
510
506
|
Parameters.subscriptionId,
|
|
511
507
|
Parameters.resourceGroupName,
|
|
512
|
-
Parameters.elasticSanName
|
|
508
|
+
Parameters.elasticSanName,
|
|
513
509
|
],
|
|
514
510
|
headerParameters: [Parameters.accept],
|
|
515
|
-
serializer
|
|
511
|
+
serializer,
|
|
516
512
|
};
|
|
517
513
|
const createOperationSpec: coreClient.OperationSpec = {
|
|
518
|
-
path:
|
|
519
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
514
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
520
515
|
httpMethod: "PUT",
|
|
521
516
|
responses: {
|
|
522
517
|
200: {
|
|
523
|
-
bodyMapper: Mappers.VolumeGroup
|
|
518
|
+
bodyMapper: Mappers.VolumeGroup,
|
|
524
519
|
},
|
|
525
520
|
201: {
|
|
526
|
-
bodyMapper: Mappers.VolumeGroup
|
|
521
|
+
bodyMapper: Mappers.VolumeGroup,
|
|
527
522
|
},
|
|
528
523
|
202: {
|
|
529
|
-
bodyMapper: Mappers.VolumeGroup
|
|
524
|
+
bodyMapper: Mappers.VolumeGroup,
|
|
530
525
|
},
|
|
531
526
|
204: {
|
|
532
|
-
bodyMapper: Mappers.VolumeGroup
|
|
527
|
+
bodyMapper: Mappers.VolumeGroup,
|
|
533
528
|
},
|
|
534
529
|
default: {
|
|
535
|
-
bodyMapper: Mappers.ErrorResponse
|
|
536
|
-
}
|
|
530
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
531
|
+
},
|
|
537
532
|
},
|
|
538
533
|
requestBody: Parameters.parameters2,
|
|
539
534
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -542,32 +537,31 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
542
537
|
Parameters.subscriptionId,
|
|
543
538
|
Parameters.resourceGroupName,
|
|
544
539
|
Parameters.elasticSanName,
|
|
545
|
-
Parameters.volumeGroupName
|
|
540
|
+
Parameters.volumeGroupName,
|
|
546
541
|
],
|
|
547
542
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
548
543
|
mediaType: "json",
|
|
549
|
-
serializer
|
|
544
|
+
serializer,
|
|
550
545
|
};
|
|
551
546
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
552
|
-
path:
|
|
553
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
547
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
554
548
|
httpMethod: "PATCH",
|
|
555
549
|
responses: {
|
|
556
550
|
200: {
|
|
557
|
-
bodyMapper: Mappers.VolumeGroup
|
|
551
|
+
bodyMapper: Mappers.VolumeGroup,
|
|
558
552
|
},
|
|
559
553
|
201: {
|
|
560
|
-
bodyMapper: Mappers.VolumeGroup
|
|
554
|
+
bodyMapper: Mappers.VolumeGroup,
|
|
561
555
|
},
|
|
562
556
|
202: {
|
|
563
|
-
bodyMapper: Mappers.VolumeGroup
|
|
557
|
+
bodyMapper: Mappers.VolumeGroup,
|
|
564
558
|
},
|
|
565
559
|
204: {
|
|
566
|
-
bodyMapper: Mappers.VolumeGroup
|
|
560
|
+
bodyMapper: Mappers.VolumeGroup,
|
|
567
561
|
},
|
|
568
562
|
default: {
|
|
569
|
-
bodyMapper: Mappers.ErrorResponse
|
|
570
|
-
}
|
|
563
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
564
|
+
},
|
|
571
565
|
},
|
|
572
566
|
requestBody: Parameters.parameters3,
|
|
573
567
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -576,15 +570,14 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
576
570
|
Parameters.subscriptionId,
|
|
577
571
|
Parameters.resourceGroupName,
|
|
578
572
|
Parameters.elasticSanName,
|
|
579
|
-
Parameters.volumeGroupName
|
|
573
|
+
Parameters.volumeGroupName,
|
|
580
574
|
],
|
|
581
575
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
582
576
|
mediaType: "json",
|
|
583
|
-
serializer
|
|
577
|
+
serializer,
|
|
584
578
|
};
|
|
585
579
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
586
|
-
path:
|
|
587
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
580
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
588
581
|
httpMethod: "DELETE",
|
|
589
582
|
responses: {
|
|
590
583
|
200: {},
|
|
@@ -592,8 +585,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
592
585
|
202: {},
|
|
593
586
|
204: {},
|
|
594
587
|
default: {
|
|
595
|
-
bodyMapper: Mappers.ErrorResponse
|
|
596
|
-
}
|
|
588
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
589
|
+
},
|
|
597
590
|
},
|
|
598
591
|
queryParameters: [Parameters.apiVersion],
|
|
599
592
|
urlParameters: [
|
|
@@ -601,22 +594,21 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
601
594
|
Parameters.subscriptionId,
|
|
602
595
|
Parameters.resourceGroupName,
|
|
603
596
|
Parameters.elasticSanName,
|
|
604
|
-
Parameters.volumeGroupName
|
|
597
|
+
Parameters.volumeGroupName,
|
|
605
598
|
],
|
|
606
599
|
headerParameters: [Parameters.accept],
|
|
607
|
-
serializer
|
|
600
|
+
serializer,
|
|
608
601
|
};
|
|
609
602
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
610
|
-
path:
|
|
611
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
603
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
612
604
|
httpMethod: "GET",
|
|
613
605
|
responses: {
|
|
614
606
|
200: {
|
|
615
|
-
bodyMapper: Mappers.VolumeGroup
|
|
607
|
+
bodyMapper: Mappers.VolumeGroup,
|
|
616
608
|
},
|
|
617
609
|
default: {
|
|
618
|
-
bodyMapper: Mappers.ErrorResponse
|
|
619
|
-
}
|
|
610
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
611
|
+
},
|
|
620
612
|
},
|
|
621
613
|
queryParameters: [Parameters.apiVersion],
|
|
622
614
|
urlParameters: [
|
|
@@ -624,29 +616,29 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
624
616
|
Parameters.subscriptionId,
|
|
625
617
|
Parameters.resourceGroupName,
|
|
626
618
|
Parameters.elasticSanName,
|
|
627
|
-
Parameters.volumeGroupName
|
|
619
|
+
Parameters.volumeGroupName,
|
|
628
620
|
],
|
|
629
621
|
headerParameters: [Parameters.accept],
|
|
630
|
-
serializer
|
|
622
|
+
serializer,
|
|
631
623
|
};
|
|
632
624
|
const listByElasticSanNextOperationSpec: coreClient.OperationSpec = {
|
|
633
625
|
path: "{nextLink}",
|
|
634
626
|
httpMethod: "GET",
|
|
635
627
|
responses: {
|
|
636
628
|
200: {
|
|
637
|
-
bodyMapper: Mappers.VolumeGroupList
|
|
629
|
+
bodyMapper: Mappers.VolumeGroupList,
|
|
638
630
|
},
|
|
639
631
|
default: {
|
|
640
|
-
bodyMapper: Mappers.ErrorResponse
|
|
641
|
-
}
|
|
632
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
633
|
+
},
|
|
642
634
|
},
|
|
643
635
|
urlParameters: [
|
|
644
636
|
Parameters.$host,
|
|
645
637
|
Parameters.subscriptionId,
|
|
646
638
|
Parameters.resourceGroupName,
|
|
647
639
|
Parameters.elasticSanName,
|
|
648
|
-
Parameters.nextLink
|
|
640
|
+
Parameters.nextLink,
|
|
649
641
|
],
|
|
650
642
|
headerParameters: [Parameters.accept],
|
|
651
|
-
serializer
|
|
643
|
+
serializer,
|
|
652
644
|
};
|