@azure/arm-netapp 14.3.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/LICENSE.txt +21 -0
- package/README.md +106 -0
- package/dist/arm-netapp.js +7621 -0
- package/dist/arm-netapp.js.map +1 -0
- package/dist/arm-netapp.min.js +1 -0
- package/dist/arm-netapp.min.js.map +1 -0
- package/esm/azureNetAppFilesManagementClient.d.ts +36 -0
- package/esm/azureNetAppFilesManagementClient.d.ts.map +1 -0
- package/esm/azureNetAppFilesManagementClient.js +49 -0
- package/esm/azureNetAppFilesManagementClient.js.map +1 -0
- package/esm/azureNetAppFilesManagementClientContext.d.ts +23 -0
- package/esm/azureNetAppFilesManagementClientContext.d.ts.map +1 -0
- package/esm/azureNetAppFilesManagementClientContext.js +61 -0
- package/esm/azureNetAppFilesManagementClientContext.js.map +1 -0
- package/esm/models/accountBackupsMappers.d.ts +2 -0
- package/esm/models/accountBackupsMappers.d.ts.map +1 -0
- package/esm/models/accountBackupsMappers.js +9 -0
- package/esm/models/accountBackupsMappers.js.map +1 -0
- package/esm/models/accountsMappers.d.ts +2 -0
- package/esm/models/accountsMappers.d.ts.map +1 -0
- package/esm/models/accountsMappers.js +9 -0
- package/esm/models/accountsMappers.js.map +1 -0
- package/esm/models/backupPoliciesMappers.d.ts +2 -0
- package/esm/models/backupPoliciesMappers.d.ts.map +1 -0
- package/esm/models/backupPoliciesMappers.js +9 -0
- package/esm/models/backupPoliciesMappers.js.map +1 -0
- package/esm/models/backupsMappers.d.ts +2 -0
- package/esm/models/backupsMappers.d.ts.map +1 -0
- package/esm/models/backupsMappers.js +9 -0
- package/esm/models/backupsMappers.js.map +1 -0
- package/esm/models/index.d.ts +3402 -0
- package/esm/models/index.d.ts.map +1 -0
- package/esm/models/index.js +8 -0
- package/esm/models/index.js.map +1 -0
- package/esm/models/mappers.d.ts +72 -0
- package/esm/models/mappers.d.ts.map +1 -0
- package/esm/models/mappers.js +3518 -0
- package/esm/models/mappers.js.map +1 -0
- package/esm/models/netAppResourceMappers.d.ts +2 -0
- package/esm/models/netAppResourceMappers.d.ts.map +1 -0
- package/esm/models/netAppResourceMappers.js +9 -0
- package/esm/models/netAppResourceMappers.js.map +1 -0
- package/esm/models/netAppResourceQuotaLimitsMappers.d.ts +2 -0
- package/esm/models/netAppResourceQuotaLimitsMappers.d.ts.map +1 -0
- package/esm/models/netAppResourceQuotaLimitsMappers.js +9 -0
- package/esm/models/netAppResourceQuotaLimitsMappers.js.map +1 -0
- package/esm/models/operationsMappers.d.ts +2 -0
- package/esm/models/operationsMappers.d.ts.map +1 -0
- package/esm/models/operationsMappers.js +9 -0
- package/esm/models/operationsMappers.js.map +1 -0
- package/esm/models/parameters.d.ts +16 -0
- package/esm/models/parameters.d.ts.map +1 -0
- package/esm/models/parameters.js +168 -0
- package/esm/models/parameters.js.map +1 -0
- package/esm/models/poolsMappers.d.ts +2 -0
- package/esm/models/poolsMappers.d.ts.map +1 -0
- package/esm/models/poolsMappers.js +9 -0
- package/esm/models/poolsMappers.js.map +1 -0
- package/esm/models/snapshotPoliciesMappers.d.ts +2 -0
- package/esm/models/snapshotPoliciesMappers.d.ts.map +1 -0
- package/esm/models/snapshotPoliciesMappers.js +9 -0
- package/esm/models/snapshotPoliciesMappers.js.map +1 -0
- package/esm/models/snapshotsMappers.d.ts +2 -0
- package/esm/models/snapshotsMappers.d.ts.map +1 -0
- package/esm/models/snapshotsMappers.js +9 -0
- package/esm/models/snapshotsMappers.js.map +1 -0
- package/esm/models/vaultsMappers.d.ts +2 -0
- package/esm/models/vaultsMappers.d.ts.map +1 -0
- package/esm/models/vaultsMappers.js +9 -0
- package/esm/models/vaultsMappers.js.map +1 -0
- package/esm/models/volumesMappers.d.ts +2 -0
- package/esm/models/volumesMappers.d.ts.map +1 -0
- package/esm/models/volumesMappers.js +9 -0
- package/esm/models/volumesMappers.js.map +1 -0
- package/esm/operations/accountBackups.d.ts +81 -0
- package/esm/operations/accountBackups.d.ts.map +1 -0
- package/esm/operations/accountBackups.js +145 -0
- package/esm/operations/accountBackups.js.map +1 -0
- package/esm/operations/accounts.d.ts +167 -0
- package/esm/operations/accounts.d.ts.map +1 -0
- package/esm/operations/accounts.js +344 -0
- package/esm/operations/accounts.js.map +1 -0
- package/esm/operations/backupPolicies.d.ts +125 -0
- package/esm/operations/backupPolicies.d.ts.map +1 -0
- package/esm/operations/backupPolicies.js +277 -0
- package/esm/operations/backupPolicies.js.map +1 -0
- package/esm/operations/backups.d.ts +203 -0
- package/esm/operations/backups.d.ts.map +1 -0
- package/esm/operations/backups.js +379 -0
- package/esm/operations/backups.js.map +1 -0
- package/esm/operations/index.d.ts +13 -0
- package/esm/operations/index.d.ts.map +1 -0
- package/esm/operations/index.js +21 -0
- package/esm/operations/index.js.map +1 -0
- package/esm/operations/netAppResource.d.ts +115 -0
- package/esm/operations/netAppResource.d.ts.map +1 -0
- package/esm/operations/netAppResource.js +145 -0
- package/esm/operations/netAppResource.js.map +1 -0
- package/esm/operations/netAppResourceQuotaLimits.d.ts +54 -0
- package/esm/operations/netAppResourceQuotaLimits.d.ts.map +1 -0
- package/esm/operations/netAppResourceQuotaLimits.js +86 -0
- package/esm/operations/netAppResourceQuotaLimits.js.map +1 -0
- package/esm/operations/operations.d.ts +29 -0
- package/esm/operations/operations.d.ts.map +1 -0
- package/esm/operations/operations.js +50 -0
- package/esm/operations/operations.js.map +1 -0
- package/esm/operations/pools.d.ts +144 -0
- package/esm/operations/pools.d.ts.map +1 -0
- package/esm/operations/pools.js +302 -0
- package/esm/operations/pools.js.map +1 -0
- package/esm/operations/snapshotPolicies.d.ts +149 -0
- package/esm/operations/snapshotPolicies.d.ts.map +1 -0
- package/esm/operations/snapshotPolicies.js +281 -0
- package/esm/operations/snapshotPolicies.js.map +1 -0
- package/esm/operations/snapshots.d.ts +149 -0
- package/esm/operations/snapshots.d.ts.map +1 -0
- package/esm/operations/snapshots.js +312 -0
- package/esm/operations/snapshots.js.map +1 -0
- package/esm/operations/vaults.d.ts +35 -0
- package/esm/operations/vaults.d.ts.map +1 -0
- package/esm/operations/vaults.js +57 -0
- package/esm/operations/vaults.js.map +1 -0
- package/esm/operations/volumes.d.ts +344 -0
- package/esm/operations/volumes.d.ts.map +1 -0
- package/esm/operations/volumes.js +800 -0
- package/esm/operations/volumes.js.map +1 -0
- package/package.json +59 -0
- package/rollup.config.js +37 -0
- package/src/azureNetAppFilesManagementClient.ts +70 -0
- package/src/azureNetAppFilesManagementClientContext.ts +68 -0
- package/src/models/accountBackupsMappers.ts +49 -0
- package/src/models/accountsMappers.ts +49 -0
- package/src/models/backupPoliciesMappers.ts +49 -0
- package/src/models/backupsMappers.ts +51 -0
- package/src/models/index.ts +3594 -0
- package/src/models/mappers.ts +3602 -0
- package/src/models/netAppResourceMappers.ts +15 -0
- package/src/models/netAppResourceQuotaLimitsMappers.ts +49 -0
- package/src/models/operationsMappers.ts +18 -0
- package/src/models/parameters.ts +170 -0
- package/src/models/poolsMappers.ts +49 -0
- package/src/models/snapshotPoliciesMappers.ts +51 -0
- package/src/models/snapshotsMappers.ts +49 -0
- package/src/models/vaultsMappers.ts +49 -0
- package/src/models/volumesMappers.ts +54 -0
- package/src/operations/accountBackups.ts +212 -0
- package/src/operations/accounts.ts +491 -0
- package/src/operations/backupPolicies.ts +361 -0
- package/src/operations/backups.ts +538 -0
- package/src/operations/index.ts +21 -0
- package/src/operations/netAppResource.ts +273 -0
- package/src/operations/netAppResourceQuotaLimits.ts +140 -0
- package/src/operations/operations.ts +74 -0
- package/src/operations/pools.ts +410 -0
- package/src/operations/snapshotPolicies.ts +419 -0
- package/src/operations/snapshots.ts +405 -0
- package/src/operations/vaults.ts +87 -0
- package/src/operations/volumes.ts +998 -0
- package/tsconfig.json +19 -0
|
@@ -0,0 +1,998 @@
|
|
|
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
|
|
7
|
+
* regenerated.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import * as msRest from "@azure/ms-rest-js";
|
|
11
|
+
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
12
|
+
import * as Models from "../models";
|
|
13
|
+
import * as Mappers from "../models/volumesMappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { AzureNetAppFilesManagementClientContext } from "../azureNetAppFilesManagementClientContext";
|
|
16
|
+
|
|
17
|
+
/** Class representing a Volumes. */
|
|
18
|
+
export class Volumes {
|
|
19
|
+
private readonly client: AzureNetAppFilesManagementClientContext;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Create a Volumes.
|
|
23
|
+
* @param {AzureNetAppFilesManagementClientContext} client Reference to the service client.
|
|
24
|
+
*/
|
|
25
|
+
constructor(client: AzureNetAppFilesManagementClientContext) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* List all volumes within the capacity pool
|
|
31
|
+
* @summary Describe all volumes
|
|
32
|
+
* @param resourceGroupName The name of the resource group.
|
|
33
|
+
* @param accountName The name of the NetApp account
|
|
34
|
+
* @param poolName The name of the capacity pool
|
|
35
|
+
* @param [options] The optional parameters
|
|
36
|
+
* @returns Promise<Models.VolumesListResponse>
|
|
37
|
+
*/
|
|
38
|
+
list(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise<Models.VolumesListResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* @param resourceGroupName The name of the resource group.
|
|
41
|
+
* @param accountName The name of the NetApp account
|
|
42
|
+
* @param poolName The name of the capacity pool
|
|
43
|
+
* @param callback The callback
|
|
44
|
+
*/
|
|
45
|
+
list(resourceGroupName: string, accountName: string, poolName: string, callback: msRest.ServiceCallback<Models.VolumeList>): void;
|
|
46
|
+
/**
|
|
47
|
+
* @param resourceGroupName The name of the resource group.
|
|
48
|
+
* @param accountName The name of the NetApp account
|
|
49
|
+
* @param poolName The name of the capacity pool
|
|
50
|
+
* @param options The optional parameters
|
|
51
|
+
* @param callback The callback
|
|
52
|
+
*/
|
|
53
|
+
list(resourceGroupName: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VolumeList>): void;
|
|
54
|
+
list(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.VolumeList>, callback?: msRest.ServiceCallback<Models.VolumeList>): Promise<Models.VolumesListResponse> {
|
|
55
|
+
return this.client.sendOperationRequest(
|
|
56
|
+
{
|
|
57
|
+
resourceGroupName,
|
|
58
|
+
accountName,
|
|
59
|
+
poolName,
|
|
60
|
+
options
|
|
61
|
+
},
|
|
62
|
+
listOperationSpec,
|
|
63
|
+
callback) as Promise<Models.VolumesListResponse>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Get the details of the specified volume
|
|
68
|
+
* @summary Describe a volume
|
|
69
|
+
* @param resourceGroupName The name of the resource group.
|
|
70
|
+
* @param accountName The name of the NetApp account
|
|
71
|
+
* @param poolName The name of the capacity pool
|
|
72
|
+
* @param volumeName The name of the volume
|
|
73
|
+
* @param [options] The optional parameters
|
|
74
|
+
* @returns Promise<Models.VolumesGetResponse>
|
|
75
|
+
*/
|
|
76
|
+
get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<Models.VolumesGetResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* @param resourceGroupName The name of the resource group.
|
|
79
|
+
* @param accountName The name of the NetApp account
|
|
80
|
+
* @param poolName The name of the capacity pool
|
|
81
|
+
* @param volumeName The name of the volume
|
|
82
|
+
* @param callback The callback
|
|
83
|
+
*/
|
|
84
|
+
get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, callback: msRest.ServiceCallback<Models.Volume>): void;
|
|
85
|
+
/**
|
|
86
|
+
* @param resourceGroupName The name of the resource group.
|
|
87
|
+
* @param accountName The name of the NetApp account
|
|
88
|
+
* @param poolName The name of the capacity pool
|
|
89
|
+
* @param volumeName The name of the volume
|
|
90
|
+
* @param options The optional parameters
|
|
91
|
+
* @param callback The callback
|
|
92
|
+
*/
|
|
93
|
+
get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Volume>): void;
|
|
94
|
+
get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Volume>, callback?: msRest.ServiceCallback<Models.Volume>): Promise<Models.VolumesGetResponse> {
|
|
95
|
+
return this.client.sendOperationRequest(
|
|
96
|
+
{
|
|
97
|
+
resourceGroupName,
|
|
98
|
+
accountName,
|
|
99
|
+
poolName,
|
|
100
|
+
volumeName,
|
|
101
|
+
options
|
|
102
|
+
},
|
|
103
|
+
getOperationSpec,
|
|
104
|
+
callback) as Promise<Models.VolumesGetResponse>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Create or update the specified volume within the capacity pool
|
|
109
|
+
* @summary Create or Update a volume
|
|
110
|
+
* @param body Volume object supplied in the body of the operation.
|
|
111
|
+
* @param resourceGroupName The name of the resource group.
|
|
112
|
+
* @param accountName The name of the NetApp account
|
|
113
|
+
* @param poolName The name of the capacity pool
|
|
114
|
+
* @param volumeName The name of the volume
|
|
115
|
+
* @param [options] The optional parameters
|
|
116
|
+
* @returns Promise<Models.VolumesCreateOrUpdateResponse>
|
|
117
|
+
*/
|
|
118
|
+
createOrUpdate(body: Models.Volume, resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<Models.VolumesCreateOrUpdateResponse> {
|
|
119
|
+
return this.beginCreateOrUpdate(body,resourceGroupName,accountName,poolName,volumeName,options)
|
|
120
|
+
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.VolumesCreateOrUpdateResponse>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Patch the specified volume
|
|
125
|
+
* @summary Update a volume
|
|
126
|
+
* @param body Volume object supplied in the body of the operation.
|
|
127
|
+
* @param resourceGroupName The name of the resource group.
|
|
128
|
+
* @param accountName The name of the NetApp account
|
|
129
|
+
* @param poolName The name of the capacity pool
|
|
130
|
+
* @param volumeName The name of the volume
|
|
131
|
+
* @param [options] The optional parameters
|
|
132
|
+
* @returns Promise<Models.VolumesUpdateResponse>
|
|
133
|
+
*/
|
|
134
|
+
update(body: Models.VolumePatch, resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<Models.VolumesUpdateResponse> {
|
|
135
|
+
return this.beginUpdate(body,resourceGroupName,accountName,poolName,volumeName,options)
|
|
136
|
+
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.VolumesUpdateResponse>;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Delete the specified volume
|
|
141
|
+
* @summary Delete a volume
|
|
142
|
+
* @param resourceGroupName The name of the resource group.
|
|
143
|
+
* @param accountName The name of the NetApp account
|
|
144
|
+
* @param poolName The name of the capacity pool
|
|
145
|
+
* @param volumeName The name of the volume
|
|
146
|
+
* @param [options] The optional parameters
|
|
147
|
+
* @returns Promise<msRest.RestResponse>
|
|
148
|
+
*/
|
|
149
|
+
deleteMethod(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
150
|
+
return this.beginDeleteMethod(resourceGroupName,accountName,poolName,volumeName,options)
|
|
151
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Revert a volume to the snapshot specified in the body
|
|
156
|
+
* @summary Revert a volume to one of its snapshots
|
|
157
|
+
* @param resourceGroupName The name of the resource group.
|
|
158
|
+
* @param accountName The name of the NetApp account
|
|
159
|
+
* @param poolName The name of the capacity pool
|
|
160
|
+
* @param volumeName The name of the volume
|
|
161
|
+
* @param [options] The optional parameters
|
|
162
|
+
* @returns Promise<msRest.RestResponse>
|
|
163
|
+
*/
|
|
164
|
+
revert(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: Models.VolumesRevertOptionalParams): Promise<msRest.RestResponse> {
|
|
165
|
+
return this.beginRevert(resourceGroupName,accountName,poolName,volumeName,options)
|
|
166
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Break the replication connection on the destination volume
|
|
171
|
+
* @summary Break volume replication
|
|
172
|
+
* @param resourceGroupName The name of the resource group.
|
|
173
|
+
* @param accountName The name of the NetApp account
|
|
174
|
+
* @param poolName The name of the capacity pool
|
|
175
|
+
* @param volumeName The name of the volume
|
|
176
|
+
* @param [options] The optional parameters
|
|
177
|
+
* @returns Promise<msRest.RestResponse>
|
|
178
|
+
*/
|
|
179
|
+
breakReplication(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: Models.VolumesBreakReplicationOptionalParams): Promise<msRest.RestResponse> {
|
|
180
|
+
return this.beginBreakReplication(resourceGroupName,accountName,poolName,volumeName,options)
|
|
181
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Get the status of the replication
|
|
186
|
+
* @summary Get volume replication status
|
|
187
|
+
* @param resourceGroupName The name of the resource group.
|
|
188
|
+
* @param accountName The name of the NetApp account
|
|
189
|
+
* @param poolName The name of the capacity pool
|
|
190
|
+
* @param volumeName The name of the volume
|
|
191
|
+
* @param [options] The optional parameters
|
|
192
|
+
* @returns Promise<Models.VolumesReplicationStatusMethodResponse>
|
|
193
|
+
*/
|
|
194
|
+
replicationStatusMethod(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<Models.VolumesReplicationStatusMethodResponse>;
|
|
195
|
+
/**
|
|
196
|
+
* @param resourceGroupName The name of the resource group.
|
|
197
|
+
* @param accountName The name of the NetApp account
|
|
198
|
+
* @param poolName The name of the capacity pool
|
|
199
|
+
* @param volumeName The name of the volume
|
|
200
|
+
* @param callback The callback
|
|
201
|
+
*/
|
|
202
|
+
replicationStatusMethod(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, callback: msRest.ServiceCallback<Models.ReplicationStatus>): void;
|
|
203
|
+
/**
|
|
204
|
+
* @param resourceGroupName The name of the resource group.
|
|
205
|
+
* @param accountName The name of the NetApp account
|
|
206
|
+
* @param poolName The name of the capacity pool
|
|
207
|
+
* @param volumeName The name of the volume
|
|
208
|
+
* @param options The optional parameters
|
|
209
|
+
* @param callback The callback
|
|
210
|
+
*/
|
|
211
|
+
replicationStatusMethod(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ReplicationStatus>): void;
|
|
212
|
+
replicationStatusMethod(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ReplicationStatus>, callback?: msRest.ServiceCallback<Models.ReplicationStatus>): Promise<Models.VolumesReplicationStatusMethodResponse> {
|
|
213
|
+
return this.client.sendOperationRequest(
|
|
214
|
+
{
|
|
215
|
+
resourceGroupName,
|
|
216
|
+
accountName,
|
|
217
|
+
poolName,
|
|
218
|
+
volumeName,
|
|
219
|
+
options
|
|
220
|
+
},
|
|
221
|
+
replicationStatusMethodOperationSpec,
|
|
222
|
+
callback) as Promise<Models.VolumesReplicationStatusMethodResponse>;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Resync the connection on the destination volume. If the operation is ran on the source volume it
|
|
227
|
+
* will reverse-resync the connection and sync from destination to source.
|
|
228
|
+
* @summary Resync volume replication
|
|
229
|
+
* @param resourceGroupName The name of the resource group.
|
|
230
|
+
* @param accountName The name of the NetApp account
|
|
231
|
+
* @param poolName The name of the capacity pool
|
|
232
|
+
* @param volumeName The name of the volume
|
|
233
|
+
* @param [options] The optional parameters
|
|
234
|
+
* @returns Promise<msRest.RestResponse>
|
|
235
|
+
*/
|
|
236
|
+
resyncReplication(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
237
|
+
return this.beginResyncReplication(resourceGroupName,accountName,poolName,volumeName,options)
|
|
238
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Delete the replication connection on the destination volume, and send release to the source
|
|
243
|
+
* replication
|
|
244
|
+
* @summary Delete volume replication
|
|
245
|
+
* @param resourceGroupName The name of the resource group.
|
|
246
|
+
* @param accountName The name of the NetApp account
|
|
247
|
+
* @param poolName The name of the capacity pool
|
|
248
|
+
* @param volumeName The name of the volume
|
|
249
|
+
* @param [options] The optional parameters
|
|
250
|
+
* @returns Promise<msRest.RestResponse>
|
|
251
|
+
*/
|
|
252
|
+
deleteReplication(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
253
|
+
return this.beginDeleteReplication(resourceGroupName,accountName,poolName,volumeName,options)
|
|
254
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Authorize the replication connection on the source volume
|
|
259
|
+
* @summary Authorize source volume replication
|
|
260
|
+
* @param resourceGroupName The name of the resource group.
|
|
261
|
+
* @param accountName The name of the NetApp account
|
|
262
|
+
* @param poolName The name of the capacity pool
|
|
263
|
+
* @param volumeName The name of the volume
|
|
264
|
+
* @param [options] The optional parameters
|
|
265
|
+
* @returns Promise<msRest.RestResponse>
|
|
266
|
+
*/
|
|
267
|
+
authorizeReplication(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: Models.VolumesAuthorizeReplicationOptionalParams): Promise<msRest.RestResponse> {
|
|
268
|
+
return this.beginAuthorizeReplication(resourceGroupName,accountName,poolName,volumeName,options)
|
|
269
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Re-Initializes the replication connection on the destination volume
|
|
274
|
+
* @summary ReInitialize volume replication
|
|
275
|
+
* @param resourceGroupName The name of the resource group.
|
|
276
|
+
* @param accountName The name of the NetApp account
|
|
277
|
+
* @param poolName The name of the capacity pool
|
|
278
|
+
* @param volumeName The name of the volume
|
|
279
|
+
* @param [options] The optional parameters
|
|
280
|
+
* @returns Promise<msRest.RestResponse>
|
|
281
|
+
*/
|
|
282
|
+
reInitializeReplication(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
283
|
+
return this.beginReInitializeReplication(resourceGroupName,accountName,poolName,volumeName,options)
|
|
284
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Moves volume to another pool
|
|
289
|
+
* @summary Change pool for volume
|
|
290
|
+
* @param resourceGroupName The name of the resource group.
|
|
291
|
+
* @param accountName The name of the NetApp account
|
|
292
|
+
* @param poolName The name of the capacity pool
|
|
293
|
+
* @param volumeName The name of the volume
|
|
294
|
+
* @param newPoolResourceId Resource id of the pool to move volume to
|
|
295
|
+
* @param [options] The optional parameters
|
|
296
|
+
* @returns Promise<msRest.RestResponse>
|
|
297
|
+
*/
|
|
298
|
+
poolChange(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, newPoolResourceId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
299
|
+
return this.beginPoolChange(resourceGroupName,accountName,poolName,volumeName,newPoolResourceId,options)
|
|
300
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Create or update the specified volume within the capacity pool
|
|
305
|
+
* @summary Create or Update a volume
|
|
306
|
+
* @param body Volume object supplied in the body of the operation.
|
|
307
|
+
* @param resourceGroupName The name of the resource group.
|
|
308
|
+
* @param accountName The name of the NetApp account
|
|
309
|
+
* @param poolName The name of the capacity pool
|
|
310
|
+
* @param volumeName The name of the volume
|
|
311
|
+
* @param [options] The optional parameters
|
|
312
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
313
|
+
*/
|
|
314
|
+
beginCreateOrUpdate(body: Models.Volume, resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
315
|
+
return this.client.sendLRORequest(
|
|
316
|
+
{
|
|
317
|
+
body,
|
|
318
|
+
resourceGroupName,
|
|
319
|
+
accountName,
|
|
320
|
+
poolName,
|
|
321
|
+
volumeName,
|
|
322
|
+
options
|
|
323
|
+
},
|
|
324
|
+
beginCreateOrUpdateOperationSpec,
|
|
325
|
+
options);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Patch the specified volume
|
|
330
|
+
* @summary Update a volume
|
|
331
|
+
* @param body Volume object supplied in the body of the operation.
|
|
332
|
+
* @param resourceGroupName The name of the resource group.
|
|
333
|
+
* @param accountName The name of the NetApp account
|
|
334
|
+
* @param poolName The name of the capacity pool
|
|
335
|
+
* @param volumeName The name of the volume
|
|
336
|
+
* @param [options] The optional parameters
|
|
337
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
338
|
+
*/
|
|
339
|
+
beginUpdate(body: Models.VolumePatch, resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
340
|
+
return this.client.sendLRORequest(
|
|
341
|
+
{
|
|
342
|
+
body,
|
|
343
|
+
resourceGroupName,
|
|
344
|
+
accountName,
|
|
345
|
+
poolName,
|
|
346
|
+
volumeName,
|
|
347
|
+
options
|
|
348
|
+
},
|
|
349
|
+
beginUpdateOperationSpec,
|
|
350
|
+
options);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Delete the specified volume
|
|
355
|
+
* @summary Delete a volume
|
|
356
|
+
* @param resourceGroupName The name of the resource group.
|
|
357
|
+
* @param accountName The name of the NetApp account
|
|
358
|
+
* @param poolName The name of the capacity pool
|
|
359
|
+
* @param volumeName The name of the volume
|
|
360
|
+
* @param [options] The optional parameters
|
|
361
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
362
|
+
*/
|
|
363
|
+
beginDeleteMethod(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
364
|
+
return this.client.sendLRORequest(
|
|
365
|
+
{
|
|
366
|
+
resourceGroupName,
|
|
367
|
+
accountName,
|
|
368
|
+
poolName,
|
|
369
|
+
volumeName,
|
|
370
|
+
options
|
|
371
|
+
},
|
|
372
|
+
beginDeleteMethodOperationSpec,
|
|
373
|
+
options);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Revert a volume to the snapshot specified in the body
|
|
378
|
+
* @summary Revert a volume to one of its snapshots
|
|
379
|
+
* @param resourceGroupName The name of the resource group.
|
|
380
|
+
* @param accountName The name of the NetApp account
|
|
381
|
+
* @param poolName The name of the capacity pool
|
|
382
|
+
* @param volumeName The name of the volume
|
|
383
|
+
* @param [options] The optional parameters
|
|
384
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
385
|
+
*/
|
|
386
|
+
beginRevert(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: Models.VolumesBeginRevertOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
387
|
+
return this.client.sendLRORequest(
|
|
388
|
+
{
|
|
389
|
+
resourceGroupName,
|
|
390
|
+
accountName,
|
|
391
|
+
poolName,
|
|
392
|
+
volumeName,
|
|
393
|
+
options
|
|
394
|
+
},
|
|
395
|
+
beginRevertOperationSpec,
|
|
396
|
+
options);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Break the replication connection on the destination volume
|
|
401
|
+
* @summary Break volume replication
|
|
402
|
+
* @param resourceGroupName The name of the resource group.
|
|
403
|
+
* @param accountName The name of the NetApp account
|
|
404
|
+
* @param poolName The name of the capacity pool
|
|
405
|
+
* @param volumeName The name of the volume
|
|
406
|
+
* @param [options] The optional parameters
|
|
407
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
408
|
+
*/
|
|
409
|
+
beginBreakReplication(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: Models.VolumesBeginBreakReplicationOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
410
|
+
return this.client.sendLRORequest(
|
|
411
|
+
{
|
|
412
|
+
resourceGroupName,
|
|
413
|
+
accountName,
|
|
414
|
+
poolName,
|
|
415
|
+
volumeName,
|
|
416
|
+
options
|
|
417
|
+
},
|
|
418
|
+
beginBreakReplicationOperationSpec,
|
|
419
|
+
options);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Resync the connection on the destination volume. If the operation is ran on the source volume it
|
|
424
|
+
* will reverse-resync the connection and sync from destination to source.
|
|
425
|
+
* @summary Resync volume replication
|
|
426
|
+
* @param resourceGroupName The name of the resource group.
|
|
427
|
+
* @param accountName The name of the NetApp account
|
|
428
|
+
* @param poolName The name of the capacity pool
|
|
429
|
+
* @param volumeName The name of the volume
|
|
430
|
+
* @param [options] The optional parameters
|
|
431
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
432
|
+
*/
|
|
433
|
+
beginResyncReplication(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
434
|
+
return this.client.sendLRORequest(
|
|
435
|
+
{
|
|
436
|
+
resourceGroupName,
|
|
437
|
+
accountName,
|
|
438
|
+
poolName,
|
|
439
|
+
volumeName,
|
|
440
|
+
options
|
|
441
|
+
},
|
|
442
|
+
beginResyncReplicationOperationSpec,
|
|
443
|
+
options);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Delete the replication connection on the destination volume, and send release to the source
|
|
448
|
+
* replication
|
|
449
|
+
* @summary Delete volume replication
|
|
450
|
+
* @param resourceGroupName The name of the resource group.
|
|
451
|
+
* @param accountName The name of the NetApp account
|
|
452
|
+
* @param poolName The name of the capacity pool
|
|
453
|
+
* @param volumeName The name of the volume
|
|
454
|
+
* @param [options] The optional parameters
|
|
455
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
456
|
+
*/
|
|
457
|
+
beginDeleteReplication(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
458
|
+
return this.client.sendLRORequest(
|
|
459
|
+
{
|
|
460
|
+
resourceGroupName,
|
|
461
|
+
accountName,
|
|
462
|
+
poolName,
|
|
463
|
+
volumeName,
|
|
464
|
+
options
|
|
465
|
+
},
|
|
466
|
+
beginDeleteReplicationOperationSpec,
|
|
467
|
+
options);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Authorize the replication connection on the source volume
|
|
472
|
+
* @summary Authorize source volume replication
|
|
473
|
+
* @param resourceGroupName The name of the resource group.
|
|
474
|
+
* @param accountName The name of the NetApp account
|
|
475
|
+
* @param poolName The name of the capacity pool
|
|
476
|
+
* @param volumeName The name of the volume
|
|
477
|
+
* @param [options] The optional parameters
|
|
478
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
479
|
+
*/
|
|
480
|
+
beginAuthorizeReplication(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: Models.VolumesBeginAuthorizeReplicationOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
481
|
+
return this.client.sendLRORequest(
|
|
482
|
+
{
|
|
483
|
+
resourceGroupName,
|
|
484
|
+
accountName,
|
|
485
|
+
poolName,
|
|
486
|
+
volumeName,
|
|
487
|
+
options
|
|
488
|
+
},
|
|
489
|
+
beginAuthorizeReplicationOperationSpec,
|
|
490
|
+
options);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Re-Initializes the replication connection on the destination volume
|
|
495
|
+
* @summary ReInitialize volume replication
|
|
496
|
+
* @param resourceGroupName The name of the resource group.
|
|
497
|
+
* @param accountName The name of the NetApp account
|
|
498
|
+
* @param poolName The name of the capacity pool
|
|
499
|
+
* @param volumeName The name of the volume
|
|
500
|
+
* @param [options] The optional parameters
|
|
501
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
502
|
+
*/
|
|
503
|
+
beginReInitializeReplication(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
504
|
+
return this.client.sendLRORequest(
|
|
505
|
+
{
|
|
506
|
+
resourceGroupName,
|
|
507
|
+
accountName,
|
|
508
|
+
poolName,
|
|
509
|
+
volumeName,
|
|
510
|
+
options
|
|
511
|
+
},
|
|
512
|
+
beginReInitializeReplicationOperationSpec,
|
|
513
|
+
options);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Moves volume to another pool
|
|
518
|
+
* @summary Change pool for volume
|
|
519
|
+
* @param resourceGroupName The name of the resource group.
|
|
520
|
+
* @param accountName The name of the NetApp account
|
|
521
|
+
* @param poolName The name of the capacity pool
|
|
522
|
+
* @param volumeName The name of the volume
|
|
523
|
+
* @param newPoolResourceId Resource id of the pool to move volume to
|
|
524
|
+
* @param [options] The optional parameters
|
|
525
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
526
|
+
*/
|
|
527
|
+
beginPoolChange(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, newPoolResourceId: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
528
|
+
return this.client.sendLRORequest(
|
|
529
|
+
{
|
|
530
|
+
resourceGroupName,
|
|
531
|
+
accountName,
|
|
532
|
+
poolName,
|
|
533
|
+
volumeName,
|
|
534
|
+
newPoolResourceId,
|
|
535
|
+
options
|
|
536
|
+
},
|
|
537
|
+
beginPoolChangeOperationSpec,
|
|
538
|
+
options);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* List all volumes within the capacity pool
|
|
543
|
+
* @summary Describe all volumes
|
|
544
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
545
|
+
* @param [options] The optional parameters
|
|
546
|
+
* @returns Promise<Models.VolumesListNextResponse>
|
|
547
|
+
*/
|
|
548
|
+
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.VolumesListNextResponse>;
|
|
549
|
+
/**
|
|
550
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
551
|
+
* @param callback The callback
|
|
552
|
+
*/
|
|
553
|
+
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.VolumeList>): void;
|
|
554
|
+
/**
|
|
555
|
+
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
556
|
+
* @param options The optional parameters
|
|
557
|
+
* @param callback The callback
|
|
558
|
+
*/
|
|
559
|
+
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VolumeList>): void;
|
|
560
|
+
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.VolumeList>, callback?: msRest.ServiceCallback<Models.VolumeList>): Promise<Models.VolumesListNextResponse> {
|
|
561
|
+
return this.client.sendOperationRequest(
|
|
562
|
+
{
|
|
563
|
+
nextPageLink,
|
|
564
|
+
options
|
|
565
|
+
},
|
|
566
|
+
listNextOperationSpec,
|
|
567
|
+
callback) as Promise<Models.VolumesListNextResponse>;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
// Operation Specifications
|
|
572
|
+
const serializer = new msRest.Serializer(Mappers);
|
|
573
|
+
const listOperationSpec: msRest.OperationSpec = {
|
|
574
|
+
httpMethod: "GET",
|
|
575
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes",
|
|
576
|
+
urlParameters: [
|
|
577
|
+
Parameters.subscriptionId,
|
|
578
|
+
Parameters.resourceGroupName,
|
|
579
|
+
Parameters.accountName,
|
|
580
|
+
Parameters.poolName
|
|
581
|
+
],
|
|
582
|
+
queryParameters: [
|
|
583
|
+
Parameters.apiVersion
|
|
584
|
+
],
|
|
585
|
+
headerParameters: [
|
|
586
|
+
Parameters.acceptLanguage
|
|
587
|
+
],
|
|
588
|
+
responses: {
|
|
589
|
+
200: {
|
|
590
|
+
bodyMapper: Mappers.VolumeList
|
|
591
|
+
},
|
|
592
|
+
default: {
|
|
593
|
+
bodyMapper: Mappers.CloudError
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
serializer
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
const getOperationSpec: msRest.OperationSpec = {
|
|
600
|
+
httpMethod: "GET",
|
|
601
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}",
|
|
602
|
+
urlParameters: [
|
|
603
|
+
Parameters.subscriptionId,
|
|
604
|
+
Parameters.resourceGroupName,
|
|
605
|
+
Parameters.accountName,
|
|
606
|
+
Parameters.poolName,
|
|
607
|
+
Parameters.volumeName
|
|
608
|
+
],
|
|
609
|
+
queryParameters: [
|
|
610
|
+
Parameters.apiVersion
|
|
611
|
+
],
|
|
612
|
+
headerParameters: [
|
|
613
|
+
Parameters.acceptLanguage
|
|
614
|
+
],
|
|
615
|
+
responses: {
|
|
616
|
+
200: {
|
|
617
|
+
bodyMapper: Mappers.Volume
|
|
618
|
+
},
|
|
619
|
+
default: {
|
|
620
|
+
bodyMapper: Mappers.CloudError
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
serializer
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
const replicationStatusMethodOperationSpec: msRest.OperationSpec = {
|
|
627
|
+
httpMethod: "GET",
|
|
628
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus",
|
|
629
|
+
urlParameters: [
|
|
630
|
+
Parameters.subscriptionId,
|
|
631
|
+
Parameters.resourceGroupName,
|
|
632
|
+
Parameters.accountName,
|
|
633
|
+
Parameters.poolName,
|
|
634
|
+
Parameters.volumeName
|
|
635
|
+
],
|
|
636
|
+
queryParameters: [
|
|
637
|
+
Parameters.apiVersion
|
|
638
|
+
],
|
|
639
|
+
headerParameters: [
|
|
640
|
+
Parameters.acceptLanguage
|
|
641
|
+
],
|
|
642
|
+
responses: {
|
|
643
|
+
200: {
|
|
644
|
+
bodyMapper: Mappers.ReplicationStatus
|
|
645
|
+
},
|
|
646
|
+
default: {
|
|
647
|
+
bodyMapper: Mappers.CloudError
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
serializer
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
654
|
+
httpMethod: "PUT",
|
|
655
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}",
|
|
656
|
+
urlParameters: [
|
|
657
|
+
Parameters.subscriptionId,
|
|
658
|
+
Parameters.resourceGroupName,
|
|
659
|
+
Parameters.accountName,
|
|
660
|
+
Parameters.poolName,
|
|
661
|
+
Parameters.volumeName
|
|
662
|
+
],
|
|
663
|
+
queryParameters: [
|
|
664
|
+
Parameters.apiVersion
|
|
665
|
+
],
|
|
666
|
+
headerParameters: [
|
|
667
|
+
Parameters.acceptLanguage
|
|
668
|
+
],
|
|
669
|
+
requestBody: {
|
|
670
|
+
parameterPath: "body",
|
|
671
|
+
mapper: {
|
|
672
|
+
...Mappers.Volume,
|
|
673
|
+
required: true
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
responses: {
|
|
677
|
+
200: {
|
|
678
|
+
bodyMapper: Mappers.Volume
|
|
679
|
+
},
|
|
680
|
+
201: {
|
|
681
|
+
bodyMapper: Mappers.Volume
|
|
682
|
+
},
|
|
683
|
+
202: {},
|
|
684
|
+
default: {
|
|
685
|
+
bodyMapper: Mappers.CloudError
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
serializer
|
|
689
|
+
};
|
|
690
|
+
|
|
691
|
+
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
692
|
+
httpMethod: "PATCH",
|
|
693
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}",
|
|
694
|
+
urlParameters: [
|
|
695
|
+
Parameters.subscriptionId,
|
|
696
|
+
Parameters.resourceGroupName,
|
|
697
|
+
Parameters.accountName,
|
|
698
|
+
Parameters.poolName,
|
|
699
|
+
Parameters.volumeName
|
|
700
|
+
],
|
|
701
|
+
queryParameters: [
|
|
702
|
+
Parameters.apiVersion
|
|
703
|
+
],
|
|
704
|
+
headerParameters: [
|
|
705
|
+
Parameters.acceptLanguage
|
|
706
|
+
],
|
|
707
|
+
requestBody: {
|
|
708
|
+
parameterPath: "body",
|
|
709
|
+
mapper: {
|
|
710
|
+
...Mappers.VolumePatch,
|
|
711
|
+
required: true
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
responses: {
|
|
715
|
+
200: {
|
|
716
|
+
bodyMapper: Mappers.Volume
|
|
717
|
+
},
|
|
718
|
+
202: {},
|
|
719
|
+
default: {
|
|
720
|
+
bodyMapper: Mappers.CloudError
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
serializer
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
727
|
+
httpMethod: "DELETE",
|
|
728
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}",
|
|
729
|
+
urlParameters: [
|
|
730
|
+
Parameters.subscriptionId,
|
|
731
|
+
Parameters.resourceGroupName,
|
|
732
|
+
Parameters.accountName,
|
|
733
|
+
Parameters.poolName,
|
|
734
|
+
Parameters.volumeName
|
|
735
|
+
],
|
|
736
|
+
queryParameters: [
|
|
737
|
+
Parameters.apiVersion
|
|
738
|
+
],
|
|
739
|
+
headerParameters: [
|
|
740
|
+
Parameters.acceptLanguage
|
|
741
|
+
],
|
|
742
|
+
responses: {
|
|
743
|
+
202: {},
|
|
744
|
+
204: {},
|
|
745
|
+
default: {
|
|
746
|
+
bodyMapper: Mappers.CloudError
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
serializer
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
const beginRevertOperationSpec: msRest.OperationSpec = {
|
|
753
|
+
httpMethod: "POST",
|
|
754
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert",
|
|
755
|
+
urlParameters: [
|
|
756
|
+
Parameters.subscriptionId,
|
|
757
|
+
Parameters.resourceGroupName,
|
|
758
|
+
Parameters.accountName,
|
|
759
|
+
Parameters.poolName,
|
|
760
|
+
Parameters.volumeName
|
|
761
|
+
],
|
|
762
|
+
queryParameters: [
|
|
763
|
+
Parameters.apiVersion
|
|
764
|
+
],
|
|
765
|
+
headerParameters: [
|
|
766
|
+
Parameters.acceptLanguage
|
|
767
|
+
],
|
|
768
|
+
requestBody: {
|
|
769
|
+
parameterPath: {
|
|
770
|
+
snapshotId: [
|
|
771
|
+
"options",
|
|
772
|
+
"snapshotId"
|
|
773
|
+
]
|
|
774
|
+
},
|
|
775
|
+
mapper: {
|
|
776
|
+
...Mappers.VolumeRevert,
|
|
777
|
+
required: true
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
responses: {
|
|
781
|
+
200: {},
|
|
782
|
+
202: {},
|
|
783
|
+
default: {
|
|
784
|
+
bodyMapper: Mappers.CloudError
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
serializer
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
const beginBreakReplicationOperationSpec: msRest.OperationSpec = {
|
|
791
|
+
httpMethod: "POST",
|
|
792
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication",
|
|
793
|
+
urlParameters: [
|
|
794
|
+
Parameters.subscriptionId,
|
|
795
|
+
Parameters.resourceGroupName,
|
|
796
|
+
Parameters.accountName,
|
|
797
|
+
Parameters.poolName,
|
|
798
|
+
Parameters.volumeName
|
|
799
|
+
],
|
|
800
|
+
queryParameters: [
|
|
801
|
+
Parameters.apiVersion
|
|
802
|
+
],
|
|
803
|
+
headerParameters: [
|
|
804
|
+
Parameters.acceptLanguage
|
|
805
|
+
],
|
|
806
|
+
requestBody: {
|
|
807
|
+
parameterPath: {
|
|
808
|
+
forceBreakReplication: [
|
|
809
|
+
"options",
|
|
810
|
+
"forceBreakReplication"
|
|
811
|
+
]
|
|
812
|
+
},
|
|
813
|
+
mapper: Mappers.BreakReplicationRequest
|
|
814
|
+
},
|
|
815
|
+
responses: {
|
|
816
|
+
200: {},
|
|
817
|
+
202: {},
|
|
818
|
+
default: {
|
|
819
|
+
bodyMapper: Mappers.CloudError
|
|
820
|
+
}
|
|
821
|
+
},
|
|
822
|
+
serializer
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
const beginResyncReplicationOperationSpec: msRest.OperationSpec = {
|
|
826
|
+
httpMethod: "POST",
|
|
827
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication",
|
|
828
|
+
urlParameters: [
|
|
829
|
+
Parameters.subscriptionId,
|
|
830
|
+
Parameters.resourceGroupName,
|
|
831
|
+
Parameters.accountName,
|
|
832
|
+
Parameters.poolName,
|
|
833
|
+
Parameters.volumeName
|
|
834
|
+
],
|
|
835
|
+
queryParameters: [
|
|
836
|
+
Parameters.apiVersion
|
|
837
|
+
],
|
|
838
|
+
headerParameters: [
|
|
839
|
+
Parameters.acceptLanguage
|
|
840
|
+
],
|
|
841
|
+
responses: {
|
|
842
|
+
200: {},
|
|
843
|
+
202: {},
|
|
844
|
+
default: {
|
|
845
|
+
bodyMapper: Mappers.CloudError
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
serializer
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
const beginDeleteReplicationOperationSpec: msRest.OperationSpec = {
|
|
852
|
+
httpMethod: "POST",
|
|
853
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication",
|
|
854
|
+
urlParameters: [
|
|
855
|
+
Parameters.subscriptionId,
|
|
856
|
+
Parameters.resourceGroupName,
|
|
857
|
+
Parameters.accountName,
|
|
858
|
+
Parameters.poolName,
|
|
859
|
+
Parameters.volumeName
|
|
860
|
+
],
|
|
861
|
+
queryParameters: [
|
|
862
|
+
Parameters.apiVersion
|
|
863
|
+
],
|
|
864
|
+
headerParameters: [
|
|
865
|
+
Parameters.acceptLanguage
|
|
866
|
+
],
|
|
867
|
+
responses: {
|
|
868
|
+
200: {},
|
|
869
|
+
202: {},
|
|
870
|
+
default: {
|
|
871
|
+
bodyMapper: Mappers.CloudError
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
serializer
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
const beginAuthorizeReplicationOperationSpec: msRest.OperationSpec = {
|
|
878
|
+
httpMethod: "POST",
|
|
879
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication",
|
|
880
|
+
urlParameters: [
|
|
881
|
+
Parameters.subscriptionId,
|
|
882
|
+
Parameters.resourceGroupName,
|
|
883
|
+
Parameters.accountName,
|
|
884
|
+
Parameters.poolName,
|
|
885
|
+
Parameters.volumeName
|
|
886
|
+
],
|
|
887
|
+
queryParameters: [
|
|
888
|
+
Parameters.apiVersion
|
|
889
|
+
],
|
|
890
|
+
headerParameters: [
|
|
891
|
+
Parameters.acceptLanguage
|
|
892
|
+
],
|
|
893
|
+
requestBody: {
|
|
894
|
+
parameterPath: {
|
|
895
|
+
remoteVolumeResourceId: [
|
|
896
|
+
"options",
|
|
897
|
+
"remoteVolumeResourceId"
|
|
898
|
+
]
|
|
899
|
+
},
|
|
900
|
+
mapper: {
|
|
901
|
+
...Mappers.AuthorizeRequest,
|
|
902
|
+
required: true
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
responses: {
|
|
906
|
+
200: {},
|
|
907
|
+
202: {},
|
|
908
|
+
default: {
|
|
909
|
+
bodyMapper: Mappers.CloudError
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
serializer
|
|
913
|
+
};
|
|
914
|
+
|
|
915
|
+
const beginReInitializeReplicationOperationSpec: msRest.OperationSpec = {
|
|
916
|
+
httpMethod: "POST",
|
|
917
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication",
|
|
918
|
+
urlParameters: [
|
|
919
|
+
Parameters.subscriptionId,
|
|
920
|
+
Parameters.resourceGroupName,
|
|
921
|
+
Parameters.accountName,
|
|
922
|
+
Parameters.poolName,
|
|
923
|
+
Parameters.volumeName
|
|
924
|
+
],
|
|
925
|
+
queryParameters: [
|
|
926
|
+
Parameters.apiVersion
|
|
927
|
+
],
|
|
928
|
+
headerParameters: [
|
|
929
|
+
Parameters.acceptLanguage
|
|
930
|
+
],
|
|
931
|
+
responses: {
|
|
932
|
+
200: {},
|
|
933
|
+
202: {},
|
|
934
|
+
default: {
|
|
935
|
+
bodyMapper: Mappers.CloudError
|
|
936
|
+
}
|
|
937
|
+
},
|
|
938
|
+
serializer
|
|
939
|
+
};
|
|
940
|
+
|
|
941
|
+
const beginPoolChangeOperationSpec: msRest.OperationSpec = {
|
|
942
|
+
httpMethod: "POST",
|
|
943
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange",
|
|
944
|
+
urlParameters: [
|
|
945
|
+
Parameters.subscriptionId,
|
|
946
|
+
Parameters.resourceGroupName,
|
|
947
|
+
Parameters.accountName,
|
|
948
|
+
Parameters.poolName,
|
|
949
|
+
Parameters.volumeName
|
|
950
|
+
],
|
|
951
|
+
queryParameters: [
|
|
952
|
+
Parameters.apiVersion
|
|
953
|
+
],
|
|
954
|
+
headerParameters: [
|
|
955
|
+
Parameters.acceptLanguage
|
|
956
|
+
],
|
|
957
|
+
requestBody: {
|
|
958
|
+
parameterPath: {
|
|
959
|
+
newPoolResourceId: "newPoolResourceId"
|
|
960
|
+
},
|
|
961
|
+
mapper: {
|
|
962
|
+
...Mappers.PoolChangeRequest,
|
|
963
|
+
required: true
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
responses: {
|
|
967
|
+
200: {},
|
|
968
|
+
202: {},
|
|
969
|
+
default: {
|
|
970
|
+
bodyMapper: Mappers.CloudError
|
|
971
|
+
}
|
|
972
|
+
},
|
|
973
|
+
serializer
|
|
974
|
+
};
|
|
975
|
+
|
|
976
|
+
const listNextOperationSpec: msRest.OperationSpec = {
|
|
977
|
+
httpMethod: "GET",
|
|
978
|
+
baseUrl: "https://management.azure.com",
|
|
979
|
+
path: "{nextLink}",
|
|
980
|
+
urlParameters: [
|
|
981
|
+
Parameters.nextPageLink
|
|
982
|
+
],
|
|
983
|
+
queryParameters: [
|
|
984
|
+
Parameters.apiVersion
|
|
985
|
+
],
|
|
986
|
+
headerParameters: [
|
|
987
|
+
Parameters.acceptLanguage
|
|
988
|
+
],
|
|
989
|
+
responses: {
|
|
990
|
+
200: {
|
|
991
|
+
bodyMapper: Mappers.VolumeList
|
|
992
|
+
},
|
|
993
|
+
default: {
|
|
994
|
+
bodyMapper: Mappers.CloudError
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
serializer
|
|
998
|
+
};
|