@azure/arm-elasticsan 1.0.0-alpha.20230719.1 → 1.0.0-alpha.20230725.2
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 +62 -8
- package/dist/index.js +1035 -284
- 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 +16 -15
- package/dist-esm/samples-dev/elasticSansCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansDeleteSample.js +8 -8
- package/dist-esm/samples-dev/elasticSansDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansGetSample.js +8 -8
- package/dist-esm/samples-dev/elasticSansGetSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +6 -6
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +4 -4
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansUpdateSample.js +11 -11
- package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +74 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +58 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +58 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +98 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js +56 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js.map +1 -0
- package/dist-esm/samples-dev/skusListSample.js +5 -5
- package/dist-esm/samples-dev/skusListSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js +15 -13
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +10 -10
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsGetSample.js +10 -10
- package/dist-esm/samples-dev/volumeGroupsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +8 -8
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +15 -13
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesCreateSample.js +15 -16
- package/dist-esm/samples-dev/volumesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesDeleteSample.js +12 -12
- package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesGetSample.js +12 -12
- package/dist-esm/samples-dev/volumesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +10 -10
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesUpdateSample.js +13 -16
- package/dist-esm/samples-dev/volumesUpdateSample.js.map +1 -1
- package/dist-esm/src/elasticSanManagement.d.ts +3 -1
- package/dist-esm/src/elasticSanManagement.d.ts.map +1 -1
- package/dist-esm/src/elasticSanManagement.js +4 -2
- package/dist-esm/src/elasticSanManagement.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +305 -98
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +28 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +20 -6
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +400 -112
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +16 -3
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/elasticSans.d.ts +4 -4
- package/dist-esm/src/operations/elasticSans.d.ts.map +1 -1
- package/dist-esm/src/operations/elasticSans.js +37 -25
- package/dist-esm/src/operations/elasticSans.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +2 -2
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +334 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +20 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +53 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/skus.js +1 -1
- package/dist-esm/src/operations/skus.js.map +1 -1
- package/dist-esm/src/operations/volumeGroups.d.ts +4 -4
- package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/volumeGroups.js +47 -35
- package/dist-esm/src/operations/volumeGroups.js.map +1 -1
- package/dist-esm/src/operations/volumes.d.ts +4 -4
- package/dist-esm/src/operations/volumes.d.ts.map +1 -1
- package/dist-esm/src/operations/volumes.js +55 -43
- package/dist-esm/src/operations/volumes.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/elasticSans.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/elasticSans.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/volumes.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -1
- package/package.json +4 -4
- package/review/arm-elasticsan.api.md +226 -60
- package/src/elasticSanManagement.ts +11 -3
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +334 -93
- package/src/models/mappers.ts +429 -114
- package/src/models/parameters.ts +19 -3
- package/src/operations/elasticSans.ts +52 -42
- package/src/operations/index.ts +2 -0
- package/src/operations/operations.ts +6 -6
- package/src/operations/privateEndpointConnections.ts +450 -0
- package/src/operations/privateLinkResources.ts +72 -0
- package/src/operations/skus.ts +1 -1
- package/src/operations/volumeGroups.ts +50 -40
- package/src/operations/volumes.ts +54 -38
- package/src/operationsInterfaces/elasticSans.ts +6 -6
- package/src/operationsInterfaces/index.ts +2 -0
- package/src/operationsInterfaces/operations.ts +2 -2
- package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
- package/src/operationsInterfaces/privateLinkResources.ts +27 -0
- package/src/operationsInterfaces/volumeGroups.ts +6 -6
- package/src/operationsInterfaces/volumes.ts +10 -4
- package/types/arm-elasticsan.d.ts +400 -98
- package/types/tsdoc-metadata.json +1 -1
|
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
15
|
import { ElasticSanManagement } from "../elasticSanManagement";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
VolumeGroup,
|
|
20
24
|
VolumeGroupsListByElasticSanNextOptionalParams,
|
|
@@ -160,8 +164,8 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
160
164
|
parameters: VolumeGroup,
|
|
161
165
|
options?: VolumeGroupsCreateOptionalParams
|
|
162
166
|
): Promise<
|
|
163
|
-
|
|
164
|
-
|
|
167
|
+
SimplePollerLike<
|
|
168
|
+
OperationState<VolumeGroupsCreateResponse>,
|
|
165
169
|
VolumeGroupsCreateResponse
|
|
166
170
|
>
|
|
167
171
|
> {
|
|
@@ -171,7 +175,7 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
171
175
|
): Promise<VolumeGroupsCreateResponse> => {
|
|
172
176
|
return this.client.sendOperationRequest(args, spec);
|
|
173
177
|
};
|
|
174
|
-
const
|
|
178
|
+
const sendOperationFn = async (
|
|
175
179
|
args: coreClient.OperationArguments,
|
|
176
180
|
spec: coreClient.OperationSpec
|
|
177
181
|
) => {
|
|
@@ -204,21 +208,24 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
204
208
|
};
|
|
205
209
|
};
|
|
206
210
|
|
|
207
|
-
const lro =
|
|
208
|
-
|
|
209
|
-
{
|
|
211
|
+
const lro = createLroSpec({
|
|
212
|
+
sendOperationFn,
|
|
213
|
+
args: {
|
|
210
214
|
resourceGroupName,
|
|
211
215
|
elasticSanName,
|
|
212
216
|
volumeGroupName,
|
|
213
217
|
parameters,
|
|
214
218
|
options
|
|
215
219
|
},
|
|
216
|
-
createOperationSpec
|
|
217
|
-
);
|
|
218
|
-
const poller =
|
|
219
|
-
|
|
220
|
+
spec: createOperationSpec
|
|
221
|
+
});
|
|
222
|
+
const poller = await createHttpPoller<
|
|
223
|
+
VolumeGroupsCreateResponse,
|
|
224
|
+
OperationState<VolumeGroupsCreateResponse>
|
|
225
|
+
>(lro, {
|
|
226
|
+
restoreFrom: options?.resumeFrom,
|
|
220
227
|
intervalInMs: options?.updateIntervalInMs,
|
|
221
|
-
|
|
228
|
+
resourceLocationConfig: "location"
|
|
222
229
|
});
|
|
223
230
|
await poller.poll();
|
|
224
231
|
return poller;
|
|
@@ -264,8 +271,8 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
264
271
|
parameters: VolumeGroupUpdate,
|
|
265
272
|
options?: VolumeGroupsUpdateOptionalParams
|
|
266
273
|
): Promise<
|
|
267
|
-
|
|
268
|
-
|
|
274
|
+
SimplePollerLike<
|
|
275
|
+
OperationState<VolumeGroupsUpdateResponse>,
|
|
269
276
|
VolumeGroupsUpdateResponse
|
|
270
277
|
>
|
|
271
278
|
> {
|
|
@@ -275,7 +282,7 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
275
282
|
): Promise<VolumeGroupsUpdateResponse> => {
|
|
276
283
|
return this.client.sendOperationRequest(args, spec);
|
|
277
284
|
};
|
|
278
|
-
const
|
|
285
|
+
const sendOperationFn = async (
|
|
279
286
|
args: coreClient.OperationArguments,
|
|
280
287
|
spec: coreClient.OperationSpec
|
|
281
288
|
) => {
|
|
@@ -308,21 +315,24 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
308
315
|
};
|
|
309
316
|
};
|
|
310
317
|
|
|
311
|
-
const lro =
|
|
312
|
-
|
|
313
|
-
{
|
|
318
|
+
const lro = createLroSpec({
|
|
319
|
+
sendOperationFn,
|
|
320
|
+
args: {
|
|
314
321
|
resourceGroupName,
|
|
315
322
|
elasticSanName,
|
|
316
323
|
volumeGroupName,
|
|
317
324
|
parameters,
|
|
318
325
|
options
|
|
319
326
|
},
|
|
320
|
-
updateOperationSpec
|
|
321
|
-
);
|
|
322
|
-
const poller =
|
|
323
|
-
|
|
327
|
+
spec: updateOperationSpec
|
|
328
|
+
});
|
|
329
|
+
const poller = await createHttpPoller<
|
|
330
|
+
VolumeGroupsUpdateResponse,
|
|
331
|
+
OperationState<VolumeGroupsUpdateResponse>
|
|
332
|
+
>(lro, {
|
|
333
|
+
restoreFrom: options?.resumeFrom,
|
|
324
334
|
intervalInMs: options?.updateIntervalInMs,
|
|
325
|
-
|
|
335
|
+
resourceLocationConfig: "location"
|
|
326
336
|
});
|
|
327
337
|
await poller.poll();
|
|
328
338
|
return poller;
|
|
@@ -365,14 +375,14 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
365
375
|
elasticSanName: string,
|
|
366
376
|
volumeGroupName: string,
|
|
367
377
|
options?: VolumeGroupsDeleteOptionalParams
|
|
368
|
-
): Promise<
|
|
378
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
369
379
|
const directSendOperation = async (
|
|
370
380
|
args: coreClient.OperationArguments,
|
|
371
381
|
spec: coreClient.OperationSpec
|
|
372
382
|
): Promise<void> => {
|
|
373
383
|
return this.client.sendOperationRequest(args, spec);
|
|
374
384
|
};
|
|
375
|
-
const
|
|
385
|
+
const sendOperationFn = async (
|
|
376
386
|
args: coreClient.OperationArguments,
|
|
377
387
|
spec: coreClient.OperationSpec
|
|
378
388
|
) => {
|
|
@@ -405,15 +415,15 @@ export class VolumeGroupsImpl implements VolumeGroups {
|
|
|
405
415
|
};
|
|
406
416
|
};
|
|
407
417
|
|
|
408
|
-
const lro =
|
|
409
|
-
|
|
410
|
-
{ resourceGroupName, elasticSanName, volumeGroupName, options },
|
|
411
|
-
deleteOperationSpec
|
|
412
|
-
);
|
|
413
|
-
const poller =
|
|
414
|
-
|
|
418
|
+
const lro = createLroSpec({
|
|
419
|
+
sendOperationFn,
|
|
420
|
+
args: { resourceGroupName, elasticSanName, volumeGroupName, options },
|
|
421
|
+
spec: deleteOperationSpec
|
|
422
|
+
});
|
|
423
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
424
|
+
restoreFrom: options?.resumeFrom,
|
|
415
425
|
intervalInMs: options?.updateIntervalInMs,
|
|
416
|
-
|
|
426
|
+
resourceLocationConfig: "location"
|
|
417
427
|
});
|
|
418
428
|
await poller.poll();
|
|
419
429
|
return poller;
|
|
@@ -491,7 +501,7 @@ const listByElasticSanOperationSpec: coreClient.OperationSpec = {
|
|
|
491
501
|
bodyMapper: Mappers.VolumeGroupList
|
|
492
502
|
},
|
|
493
503
|
default: {
|
|
494
|
-
bodyMapper: Mappers.
|
|
504
|
+
bodyMapper: Mappers.ErrorResponse
|
|
495
505
|
}
|
|
496
506
|
},
|
|
497
507
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -522,7 +532,7 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
522
532
|
bodyMapper: Mappers.VolumeGroup
|
|
523
533
|
},
|
|
524
534
|
default: {
|
|
525
|
-
bodyMapper: Mappers.
|
|
535
|
+
bodyMapper: Mappers.ErrorResponse
|
|
526
536
|
}
|
|
527
537
|
},
|
|
528
538
|
requestBody: Parameters.parameters2,
|
|
@@ -556,7 +566,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
556
566
|
bodyMapper: Mappers.VolumeGroup
|
|
557
567
|
},
|
|
558
568
|
default: {
|
|
559
|
-
bodyMapper: Mappers.
|
|
569
|
+
bodyMapper: Mappers.ErrorResponse
|
|
560
570
|
}
|
|
561
571
|
},
|
|
562
572
|
requestBody: Parameters.parameters3,
|
|
@@ -582,7 +592,7 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
582
592
|
202: {},
|
|
583
593
|
204: {},
|
|
584
594
|
default: {
|
|
585
|
-
bodyMapper: Mappers.
|
|
595
|
+
bodyMapper: Mappers.ErrorResponse
|
|
586
596
|
}
|
|
587
597
|
},
|
|
588
598
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -605,7 +615,7 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
605
615
|
bodyMapper: Mappers.VolumeGroup
|
|
606
616
|
},
|
|
607
617
|
default: {
|
|
608
|
-
bodyMapper: Mappers.
|
|
618
|
+
bodyMapper: Mappers.ErrorResponse
|
|
609
619
|
}
|
|
610
620
|
},
|
|
611
621
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -627,7 +637,7 @@ const listByElasticSanNextOperationSpec: coreClient.OperationSpec = {
|
|
|
627
637
|
bodyMapper: Mappers.VolumeGroupList
|
|
628
638
|
},
|
|
629
639
|
default: {
|
|
630
|
-
bodyMapper: Mappers.
|
|
640
|
+
bodyMapper: Mappers.ErrorResponse
|
|
631
641
|
}
|
|
632
642
|
},
|
|
633
643
|
urlParameters: [
|
|
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
15
|
import { ElasticSanManagement } from "../elasticSanManagement";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
Volume,
|
|
20
24
|
VolumesListByVolumeGroupNextOptionalParams,
|
|
@@ -154,7 +158,10 @@ export class VolumesImpl implements Volumes {
|
|
|
154
158
|
parameters: Volume,
|
|
155
159
|
options?: VolumesCreateOptionalParams
|
|
156
160
|
): Promise<
|
|
157
|
-
|
|
161
|
+
SimplePollerLike<
|
|
162
|
+
OperationState<VolumesCreateResponse>,
|
|
163
|
+
VolumesCreateResponse
|
|
164
|
+
>
|
|
158
165
|
> {
|
|
159
166
|
const directSendOperation = async (
|
|
160
167
|
args: coreClient.OperationArguments,
|
|
@@ -162,7 +169,7 @@ export class VolumesImpl implements Volumes {
|
|
|
162
169
|
): Promise<VolumesCreateResponse> => {
|
|
163
170
|
return this.client.sendOperationRequest(args, spec);
|
|
164
171
|
};
|
|
165
|
-
const
|
|
172
|
+
const sendOperationFn = async (
|
|
166
173
|
args: coreClient.OperationArguments,
|
|
167
174
|
spec: coreClient.OperationSpec
|
|
168
175
|
) => {
|
|
@@ -195,9 +202,9 @@ export class VolumesImpl implements Volumes {
|
|
|
195
202
|
};
|
|
196
203
|
};
|
|
197
204
|
|
|
198
|
-
const lro =
|
|
199
|
-
|
|
200
|
-
{
|
|
205
|
+
const lro = createLroSpec({
|
|
206
|
+
sendOperationFn,
|
|
207
|
+
args: {
|
|
201
208
|
resourceGroupName,
|
|
202
209
|
elasticSanName,
|
|
203
210
|
volumeGroupName,
|
|
@@ -205,12 +212,15 @@ export class VolumesImpl implements Volumes {
|
|
|
205
212
|
parameters,
|
|
206
213
|
options
|
|
207
214
|
},
|
|
208
|
-
createOperationSpec
|
|
209
|
-
);
|
|
210
|
-
const poller =
|
|
211
|
-
|
|
215
|
+
spec: createOperationSpec
|
|
216
|
+
});
|
|
217
|
+
const poller = await createHttpPoller<
|
|
218
|
+
VolumesCreateResponse,
|
|
219
|
+
OperationState<VolumesCreateResponse>
|
|
220
|
+
>(lro, {
|
|
221
|
+
restoreFrom: options?.resumeFrom,
|
|
212
222
|
intervalInMs: options?.updateIntervalInMs,
|
|
213
|
-
|
|
223
|
+
resourceLocationConfig: "location"
|
|
214
224
|
});
|
|
215
225
|
await poller.poll();
|
|
216
226
|
return poller;
|
|
@@ -261,7 +271,10 @@ export class VolumesImpl implements Volumes {
|
|
|
261
271
|
parameters: VolumeUpdate,
|
|
262
272
|
options?: VolumesUpdateOptionalParams
|
|
263
273
|
): Promise<
|
|
264
|
-
|
|
274
|
+
SimplePollerLike<
|
|
275
|
+
OperationState<VolumesUpdateResponse>,
|
|
276
|
+
VolumesUpdateResponse
|
|
277
|
+
>
|
|
265
278
|
> {
|
|
266
279
|
const directSendOperation = async (
|
|
267
280
|
args: coreClient.OperationArguments,
|
|
@@ -269,7 +282,7 @@ export class VolumesImpl implements Volumes {
|
|
|
269
282
|
): Promise<VolumesUpdateResponse> => {
|
|
270
283
|
return this.client.sendOperationRequest(args, spec);
|
|
271
284
|
};
|
|
272
|
-
const
|
|
285
|
+
const sendOperationFn = async (
|
|
273
286
|
args: coreClient.OperationArguments,
|
|
274
287
|
spec: coreClient.OperationSpec
|
|
275
288
|
) => {
|
|
@@ -302,9 +315,9 @@ export class VolumesImpl implements Volumes {
|
|
|
302
315
|
};
|
|
303
316
|
};
|
|
304
317
|
|
|
305
|
-
const lro =
|
|
306
|
-
|
|
307
|
-
{
|
|
318
|
+
const lro = createLroSpec({
|
|
319
|
+
sendOperationFn,
|
|
320
|
+
args: {
|
|
308
321
|
resourceGroupName,
|
|
309
322
|
elasticSanName,
|
|
310
323
|
volumeGroupName,
|
|
@@ -312,12 +325,15 @@ export class VolumesImpl implements Volumes {
|
|
|
312
325
|
parameters,
|
|
313
326
|
options
|
|
314
327
|
},
|
|
315
|
-
updateOperationSpec
|
|
316
|
-
);
|
|
317
|
-
const poller =
|
|
318
|
-
|
|
328
|
+
spec: updateOperationSpec
|
|
329
|
+
});
|
|
330
|
+
const poller = await createHttpPoller<
|
|
331
|
+
VolumesUpdateResponse,
|
|
332
|
+
OperationState<VolumesUpdateResponse>
|
|
333
|
+
>(lro, {
|
|
334
|
+
restoreFrom: options?.resumeFrom,
|
|
319
335
|
intervalInMs: options?.updateIntervalInMs,
|
|
320
|
-
|
|
336
|
+
resourceLocationConfig: "location"
|
|
321
337
|
});
|
|
322
338
|
await poller.poll();
|
|
323
339
|
return poller;
|
|
@@ -365,14 +381,14 @@ export class VolumesImpl implements Volumes {
|
|
|
365
381
|
volumeGroupName: string,
|
|
366
382
|
volumeName: string,
|
|
367
383
|
options?: VolumesDeleteOptionalParams
|
|
368
|
-
): Promise<
|
|
384
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
369
385
|
const directSendOperation = async (
|
|
370
386
|
args: coreClient.OperationArguments,
|
|
371
387
|
spec: coreClient.OperationSpec
|
|
372
388
|
): Promise<void> => {
|
|
373
389
|
return this.client.sendOperationRequest(args, spec);
|
|
374
390
|
};
|
|
375
|
-
const
|
|
391
|
+
const sendOperationFn = async (
|
|
376
392
|
args: coreClient.OperationArguments,
|
|
377
393
|
spec: coreClient.OperationSpec
|
|
378
394
|
) => {
|
|
@@ -405,21 +421,21 @@ export class VolumesImpl implements Volumes {
|
|
|
405
421
|
};
|
|
406
422
|
};
|
|
407
423
|
|
|
408
|
-
const lro =
|
|
409
|
-
|
|
410
|
-
{
|
|
424
|
+
const lro = createLroSpec({
|
|
425
|
+
sendOperationFn,
|
|
426
|
+
args: {
|
|
411
427
|
resourceGroupName,
|
|
412
428
|
elasticSanName,
|
|
413
429
|
volumeGroupName,
|
|
414
430
|
volumeName,
|
|
415
431
|
options
|
|
416
432
|
},
|
|
417
|
-
deleteOperationSpec
|
|
418
|
-
);
|
|
419
|
-
const poller =
|
|
420
|
-
|
|
433
|
+
spec: deleteOperationSpec
|
|
434
|
+
});
|
|
435
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
436
|
+
restoreFrom: options?.resumeFrom,
|
|
421
437
|
intervalInMs: options?.updateIntervalInMs,
|
|
422
|
-
|
|
438
|
+
resourceLocationConfig: "location"
|
|
423
439
|
});
|
|
424
440
|
await poller.poll();
|
|
425
441
|
return poller;
|
|
@@ -538,7 +554,7 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
538
554
|
bodyMapper: Mappers.Volume
|
|
539
555
|
},
|
|
540
556
|
default: {
|
|
541
|
-
bodyMapper: Mappers.
|
|
557
|
+
bodyMapper: Mappers.ErrorResponse
|
|
542
558
|
}
|
|
543
559
|
},
|
|
544
560
|
requestBody: Parameters.parameters4,
|
|
@@ -573,7 +589,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
573
589
|
bodyMapper: Mappers.Volume
|
|
574
590
|
},
|
|
575
591
|
default: {
|
|
576
|
-
bodyMapper: Mappers.
|
|
592
|
+
bodyMapper: Mappers.ErrorResponse
|
|
577
593
|
}
|
|
578
594
|
},
|
|
579
595
|
requestBody: Parameters.parameters5,
|
|
@@ -600,7 +616,7 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
600
616
|
202: {},
|
|
601
617
|
204: {},
|
|
602
618
|
default: {
|
|
603
|
-
bodyMapper: Mappers.
|
|
619
|
+
bodyMapper: Mappers.ErrorResponse
|
|
604
620
|
}
|
|
605
621
|
},
|
|
606
622
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -624,7 +640,7 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
624
640
|
bodyMapper: Mappers.Volume
|
|
625
641
|
},
|
|
626
642
|
default: {
|
|
627
|
-
bodyMapper: Mappers.
|
|
643
|
+
bodyMapper: Mappers.ErrorResponse
|
|
628
644
|
}
|
|
629
645
|
},
|
|
630
646
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -648,7 +664,7 @@ const listByVolumeGroupOperationSpec: coreClient.OperationSpec = {
|
|
|
648
664
|
bodyMapper: Mappers.VolumeList
|
|
649
665
|
},
|
|
650
666
|
default: {
|
|
651
|
-
bodyMapper: Mappers.
|
|
667
|
+
bodyMapper: Mappers.ErrorResponse
|
|
652
668
|
}
|
|
653
669
|
},
|
|
654
670
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -670,7 +686,7 @@ const listByVolumeGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
670
686
|
bodyMapper: Mappers.VolumeList
|
|
671
687
|
},
|
|
672
688
|
default: {
|
|
673
|
-
bodyMapper: Mappers.
|
|
689
|
+
bodyMapper: Mappers.ErrorResponse
|
|
674
690
|
}
|
|
675
691
|
},
|
|
676
692
|
urlParameters: [
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
ElasticSan,
|
|
13
13
|
ElasticSansListBySubscriptionOptionalParams,
|
|
@@ -54,8 +54,8 @@ export interface ElasticSans {
|
|
|
54
54
|
parameters: ElasticSan,
|
|
55
55
|
options?: ElasticSansCreateOptionalParams
|
|
56
56
|
): Promise<
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
SimplePollerLike<
|
|
58
|
+
OperationState<ElasticSansCreateResponse>,
|
|
59
59
|
ElasticSansCreateResponse
|
|
60
60
|
>
|
|
61
61
|
>;
|
|
@@ -85,8 +85,8 @@ export interface ElasticSans {
|
|
|
85
85
|
parameters: ElasticSanUpdate,
|
|
86
86
|
options?: ElasticSansUpdateOptionalParams
|
|
87
87
|
): Promise<
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
SimplePollerLike<
|
|
89
|
+
OperationState<ElasticSansUpdateResponse>,
|
|
90
90
|
ElasticSansUpdateResponse
|
|
91
91
|
>
|
|
92
92
|
>;
|
|
@@ -113,7 +113,7 @@ export interface ElasticSans {
|
|
|
113
113
|
resourceGroupName: string,
|
|
114
114
|
elasticSanName: string,
|
|
115
115
|
options?: ElasticSansDeleteOptionalParams
|
|
116
|
-
): Promise<
|
|
116
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
117
117
|
/**
|
|
118
118
|
* Delete a Elastic San.
|
|
119
119
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { Operation, OperationsListOptionalParams } from "../models";
|
|
11
11
|
|
|
12
12
|
/// <reference lib="esnext.asynciterable" />
|
|
13
13
|
/** Interface representing a Operations. */
|
|
@@ -18,5 +18,5 @@ export interface Operations {
|
|
|
18
18
|
*/
|
|
19
19
|
list(
|
|
20
20
|
options?: OperationsListOptionalParams
|
|
21
|
-
): PagedAsyncIterableIterator<
|
|
21
|
+
): PagedAsyncIterableIterator<Operation>;
|
|
22
22
|
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
PrivateEndpointConnection,
|
|
13
|
+
PrivateEndpointConnectionsListOptionalParams,
|
|
14
|
+
PrivateEndpointConnectionsCreateOptionalParams,
|
|
15
|
+
PrivateEndpointConnectionsCreateResponse,
|
|
16
|
+
PrivateEndpointConnectionsGetOptionalParams,
|
|
17
|
+
PrivateEndpointConnectionsGetResponse,
|
|
18
|
+
PrivateEndpointConnectionsDeleteOptionalParams
|
|
19
|
+
} from "../models";
|
|
20
|
+
|
|
21
|
+
/// <reference lib="esnext.asynciterable" />
|
|
22
|
+
/** Interface representing a PrivateEndpointConnections. */
|
|
23
|
+
export interface PrivateEndpointConnections {
|
|
24
|
+
/**
|
|
25
|
+
* List all Private Endpoint Connections associated with the Elastic San.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
list(
|
|
31
|
+
resourceGroupName: string,
|
|
32
|
+
elasticSanName: string,
|
|
33
|
+
options?: PrivateEndpointConnectionsListOptionalParams
|
|
34
|
+
): PagedAsyncIterableIterator<PrivateEndpointConnection>;
|
|
35
|
+
/**
|
|
36
|
+
* Update the state of specified private endpoint connection associated with the Elastic San
|
|
37
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
38
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
39
|
+
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
40
|
+
* @param parameters Private Endpoint Connection Approval object.
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
beginCreate(
|
|
44
|
+
resourceGroupName: string,
|
|
45
|
+
elasticSanName: string,
|
|
46
|
+
privateEndpointConnectionName: string,
|
|
47
|
+
parameters: PrivateEndpointConnection,
|
|
48
|
+
options?: PrivateEndpointConnectionsCreateOptionalParams
|
|
49
|
+
): Promise<
|
|
50
|
+
SimplePollerLike<
|
|
51
|
+
OperationState<PrivateEndpointConnectionsCreateResponse>,
|
|
52
|
+
PrivateEndpointConnectionsCreateResponse
|
|
53
|
+
>
|
|
54
|
+
>;
|
|
55
|
+
/**
|
|
56
|
+
* Update the state of specified private endpoint connection associated with the Elastic San
|
|
57
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
58
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
59
|
+
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
60
|
+
* @param parameters Private Endpoint Connection Approval object.
|
|
61
|
+
* @param options The options parameters.
|
|
62
|
+
*/
|
|
63
|
+
beginCreateAndWait(
|
|
64
|
+
resourceGroupName: string,
|
|
65
|
+
elasticSanName: string,
|
|
66
|
+
privateEndpointConnectionName: string,
|
|
67
|
+
parameters: PrivateEndpointConnection,
|
|
68
|
+
options?: PrivateEndpointConnectionsCreateOptionalParams
|
|
69
|
+
): Promise<PrivateEndpointConnectionsCreateResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Gets the specified private endpoint connection associated with the Elastic San
|
|
72
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
73
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
74
|
+
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
get(
|
|
78
|
+
resourceGroupName: string,
|
|
79
|
+
elasticSanName: string,
|
|
80
|
+
privateEndpointConnectionName: string,
|
|
81
|
+
options?: PrivateEndpointConnectionsGetOptionalParams
|
|
82
|
+
): Promise<PrivateEndpointConnectionsGetResponse>;
|
|
83
|
+
/**
|
|
84
|
+
* Deletes the specified private endpoint connection associated with the Elastic San
|
|
85
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
86
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
87
|
+
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
88
|
+
* @param options The options parameters.
|
|
89
|
+
*/
|
|
90
|
+
beginDelete(
|
|
91
|
+
resourceGroupName: string,
|
|
92
|
+
elasticSanName: string,
|
|
93
|
+
privateEndpointConnectionName: string,
|
|
94
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
95
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
96
|
+
/**
|
|
97
|
+
* Deletes the specified private endpoint connection associated with the Elastic San
|
|
98
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
99
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
100
|
+
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
101
|
+
* @param options The options parameters.
|
|
102
|
+
*/
|
|
103
|
+
beginDeleteAndWait(
|
|
104
|
+
resourceGroupName: string,
|
|
105
|
+
elasticSanName: string,
|
|
106
|
+
privateEndpointConnectionName: string,
|
|
107
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
108
|
+
): Promise<void>;
|
|
109
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
PrivateLinkResourcesListByElasticSanOptionalParams,
|
|
11
|
+
PrivateLinkResourcesListByElasticSanResponse
|
|
12
|
+
} from "../models";
|
|
13
|
+
|
|
14
|
+
/** Interface representing a PrivateLinkResources. */
|
|
15
|
+
export interface PrivateLinkResources {
|
|
16
|
+
/**
|
|
17
|
+
* Gets the private link resources that need to be created for a elastic San.
|
|
18
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
19
|
+
* @param elasticSanName The name of the ElasticSan.
|
|
20
|
+
* @param options The options parameters.
|
|
21
|
+
*/
|
|
22
|
+
listByElasticSan(
|
|
23
|
+
resourceGroupName: string,
|
|
24
|
+
elasticSanName: string,
|
|
25
|
+
options?: PrivateLinkResourcesListByElasticSanOptionalParams
|
|
26
|
+
): Promise<PrivateLinkResourcesListByElasticSanResponse>;
|
|
27
|
+
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
VolumeGroup,
|
|
13
13
|
VolumeGroupsListByElasticSanOptionalParams,
|
|
@@ -50,8 +50,8 @@ export interface VolumeGroups {
|
|
|
50
50
|
parameters: VolumeGroup,
|
|
51
51
|
options?: VolumeGroupsCreateOptionalParams
|
|
52
52
|
): Promise<
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
SimplePollerLike<
|
|
54
|
+
OperationState<VolumeGroupsCreateResponse>,
|
|
55
55
|
VolumeGroupsCreateResponse
|
|
56
56
|
>
|
|
57
57
|
>;
|
|
@@ -85,8 +85,8 @@ export interface VolumeGroups {
|
|
|
85
85
|
parameters: VolumeGroupUpdate,
|
|
86
86
|
options?: VolumeGroupsUpdateOptionalParams
|
|
87
87
|
): Promise<
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
SimplePollerLike<
|
|
89
|
+
OperationState<VolumeGroupsUpdateResponse>,
|
|
90
90
|
VolumeGroupsUpdateResponse
|
|
91
91
|
>
|
|
92
92
|
>;
|
|
@@ -117,7 +117,7 @@ export interface VolumeGroups {
|
|
|
117
117
|
elasticSanName: string,
|
|
118
118
|
volumeGroupName: string,
|
|
119
119
|
options?: VolumeGroupsDeleteOptionalParams
|
|
120
|
-
): Promise<
|
|
120
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
121
121
|
/**
|
|
122
122
|
* Delete an VolumeGroup.
|
|
123
123
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|