@azure/arm-elasticsan 1.0.0-beta.1 → 1.0.0-beta.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 +64 -0
- package/LICENSE +1 -1
- package/dist/index.js +1245 -374
- 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 +25 -17
- package/dist-esm/samples-dev/elasticSansCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansDeleteSample.js +17 -10
- package/dist-esm/samples-dev/elasticSansDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansGetSample.js +17 -10
- package/dist-esm/samples-dev/elasticSansGetSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +39 -18
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +37 -16
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/elasticSansUpdateSample.js +20 -13
- package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +39 -16
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- 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 +38 -17
- package/dist-esm/samples-dev/skusListSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js +24 -15
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +19 -12
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsGetSample.js +19 -12
- package/dist-esm/samples-dev/volumeGroupsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +41 -20
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +24 -15
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesCreateSample.js +24 -18
- package/dist-esm/samples-dev/volumesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesDeleteSample.js +21 -14
- package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesGetSample.js +21 -14
- package/dist-esm/samples-dev/volumesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +43 -22
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesUpdateSample.js +22 -18
- 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 +8 -9
- package/dist-esm/src/elasticSanManagement.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.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 +331 -124
- 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 +98 -51
- 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 +22 -11
- 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.d.ts.map +1 -1
- package/dist-esm/src/operations/skus.js +21 -10
- 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 +78 -48
- 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 +86 -56
- 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/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/elasticsan_examples.spec.js +12 -5
- package/dist-esm/test/elasticsan_examples.spec.js.map +1 -1
- package/package.json +11 -10
- package/review/arm-elasticsan.api.md +229 -60
- package/src/elasticSanManagement.ts +16 -9
- package/src/index.ts +1 -0
- 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 +97 -60
- package/src/operations/index.ts +2 -0
- package/src/operations/operations.ts +16 -11
- package/src/operations/privateEndpointConnections.ts +450 -0
- package/src/operations/privateLinkResources.ts +72 -0
- package/src/operations/skus.ts +11 -6
- package/src/operations/volumeGroups.ts +76 -53
- package/src/operations/volumes.ts +82 -53
- 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/src/pagingHelper.ts +39 -0
- package/types/arm-elasticsan.d.ts +409 -98
- package/types/tsdoc-metadata.json +1 -1
|
@@ -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.
|
|
@@ -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
|
Volume,
|
|
13
13
|
VolumesListByVolumeGroupOptionalParams,
|
|
@@ -54,7 +54,10 @@ export interface Volumes {
|
|
|
54
54
|
parameters: Volume,
|
|
55
55
|
options?: VolumesCreateOptionalParams
|
|
56
56
|
): Promise<
|
|
57
|
-
|
|
57
|
+
SimplePollerLike<
|
|
58
|
+
OperationState<VolumesCreateResponse>,
|
|
59
|
+
VolumesCreateResponse
|
|
60
|
+
>
|
|
58
61
|
>;
|
|
59
62
|
/**
|
|
60
63
|
* Create a Volume.
|
|
@@ -90,7 +93,10 @@ export interface Volumes {
|
|
|
90
93
|
parameters: VolumeUpdate,
|
|
91
94
|
options?: VolumesUpdateOptionalParams
|
|
92
95
|
): Promise<
|
|
93
|
-
|
|
96
|
+
SimplePollerLike<
|
|
97
|
+
OperationState<VolumesUpdateResponse>,
|
|
98
|
+
VolumesUpdateResponse
|
|
99
|
+
>
|
|
94
100
|
>;
|
|
95
101
|
/**
|
|
96
102
|
* Update an Volume.
|
|
@@ -123,7 +129,7 @@ export interface Volumes {
|
|
|
123
129
|
volumeGroupName: string,
|
|
124
130
|
volumeName: string,
|
|
125
131
|
options?: VolumesDeleteOptionalParams
|
|
126
|
-
): Promise<
|
|
132
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
127
133
|
/**
|
|
128
134
|
* Delete an Volume.
|
|
129
135
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
export interface PageInfo {
|
|
10
|
+
continuationToken?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
17
|
+
* returns a continuation token that can be used to begin paging from
|
|
18
|
+
* that point later.
|
|
19
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
20
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
21
|
+
*/
|
|
22
|
+
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
|
+
if (typeof page !== "object" || page === null) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
return pageMap.get(page)?.continuationToken;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function setContinuationToken(
|
|
30
|
+
page: unknown,
|
|
31
|
+
continuationToken: string | undefined
|
|
32
|
+
): void {
|
|
33
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
37
|
+
pageInfo.continuationToken = continuationToken;
|
|
38
|
+
pageMap.set(page, pageInfo);
|
|
39
|
+
}
|