@azure/arm-netapp 14.4.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +70 -78
- package/dist/index.js +8881 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/netAppResourceMappers.js → dist-esm/src/index.js} +5 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +2374 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +162 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +76 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1505 -1644
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +46 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +319 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/netAppManagementClient.d.ts +31 -0
- package/dist-esm/src/netAppManagementClient.d.ts.map +1 -0
- package/dist-esm/src/netAppManagementClient.js +64 -0
- package/dist-esm/src/netAppManagementClient.js.map +1 -0
- package/dist-esm/src/operations/accountBackups.d.ts +55 -0
- package/dist-esm/src/operations/accountBackups.d.ts.map +1 -0
- package/dist-esm/src/operations/accountBackups.js +195 -0
- package/dist-esm/src/operations/accountBackups.js.map +1 -0
- package/dist-esm/src/operations/accounts.d.ts +107 -0
- package/dist-esm/src/operations/accounts.d.ts.map +1 -0
- package/dist-esm/src/operations/accounts.js +482 -0
- package/dist-esm/src/operations/accounts.js.map +1 -0
- package/dist-esm/src/operations/backupPolicies.d.ts +91 -0
- package/dist-esm/src/operations/backupPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/backupPolicies.js +365 -0
- package/dist-esm/src/operations/backupPolicies.js.map +1 -0
- package/dist-esm/src/operations/backups.d.ts +125 -0
- package/dist-esm/src/operations/backups.d.ts.map +1 -0
- package/dist-esm/src/operations/backups.js +484 -0
- package/dist-esm/src/operations/backups.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/netAppResource.d.ts +40 -0
- package/dist-esm/src/operations/netAppResource.d.ts.map +1 -0
- package/dist-esm/src/operations/netAppResource.js +133 -0
- package/dist-esm/src/operations/netAppResource.js.map +1 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.d.ts +35 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.d.ts.map +1 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.js +122 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +88 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/pools.d.ts +99 -0
- package/dist-esm/src/operations/pools.d.ts.map +1 -0
- package/dist-esm/src/operations/pools.js +401 -0
- package/dist-esm/src/operations/pools.js.map +1 -0
- package/dist-esm/src/operations/snapshotPolicies.d.ts +90 -0
- package/dist-esm/src/operations/snapshotPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/snapshotPolicies.js +346 -0
- package/dist-esm/src/operations/snapshotPolicies.js.map +1 -0
- package/dist-esm/src/operations/snapshots.d.ts +109 -0
- package/dist-esm/src/operations/snapshots.d.ts.map +1 -0
- package/dist-esm/src/operations/snapshots.js +423 -0
- package/dist-esm/src/operations/snapshots.js.map +1 -0
- package/dist-esm/src/operations/vaults.d.ts +30 -0
- package/dist-esm/src/operations/vaults.d.ts.map +1 -0
- package/dist-esm/src/operations/vaults.js +97 -0
- package/dist-esm/src/operations/vaults.js.map +1 -0
- package/dist-esm/src/operations/volumeGroups.d.ts +73 -0
- package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/volumeGroups.js +278 -0
- package/dist-esm/src/operations/volumeGroups.js.map +1 -0
- package/dist-esm/src/operations/volumes.d.ts +254 -0
- package/dist-esm/src/operations/volumes.d.ts.map +1 -0
- package/dist-esm/src/operations/volumes.js +956 -0
- package/dist-esm/src/operations/volumes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accountBackups.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/accountBackups.d.ts.map +1 -0
- package/{src/models/netAppResourceMappers.ts → dist-esm/src/operationsInterfaces/accountBackups.js} +2 -8
- package/dist-esm/src/operationsInterfaces/accountBackups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backups.d.ts +106 -0
- package/dist-esm/src/operationsInterfaces/backups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/backups.js +9 -0
- package/dist-esm/src/operationsInterfaces/backups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +21 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.d.ts +32 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.js +9 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.js +9 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/pools.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/pools.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/pools.js} +2 -1
- package/dist-esm/src/operationsInterfaces/pools.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.d.ts +73 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshots.d.ts +90 -0
- package/dist-esm/src/operationsInterfaces/snapshots.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshots.js +9 -0
- package/dist-esm/src/operationsInterfaces/snapshots.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/vaults.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/vaults.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/vaults.js +9 -0
- package/dist-esm/src/operationsInterfaces/vaults.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumes.d.ts +227 -0
- package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumes.js +9 -0
- package/dist-esm/src/operationsInterfaces/volumes.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +70 -32
- package/review/arm-netapp.api.md +1681 -0
- package/rollup.config.js +181 -30
- package/src/{models/operationsMappers.ts → index.ts} +4 -10
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1888 -3345
- package/src/models/mappers.ts +1542 -1652
- package/src/models/parameters.ts +271 -66
- package/src/netAppManagementClient.ts +128 -0
- package/src/operations/accountBackups.ts +187 -132
- package/src/operations/accounts.ts +487 -325
- package/src/operations/backupPolicies.ts +390 -223
- package/src/operations/backups.ts +486 -313
- package/src/operations/index.ts +1 -2
- package/src/operations/netAppResource.ts +112 -204
- package/src/operations/netAppResourceQuotaLimits.ts +100 -90
- package/src/operations/operations.ts +65 -43
- package/src/operations/pools.ts +430 -263
- package/src/operations/snapshotPolicies.ts +345 -275
- package/src/operations/snapshots.ts +454 -226
- package/src/operations/vaults.ts +81 -51
- package/src/operations/volumeGroups.ts +303 -182
- package/src/operations/volumes.ts +1101 -637
- package/src/operationsInterfaces/accountBackups.ts +72 -0
- package/src/operationsInterfaces/accounts.ts +139 -0
- package/src/operationsInterfaces/backupPolicies.ts +147 -0
- package/src/operationsInterfaces/backups.ts +202 -0
- package/src/operationsInterfaces/index.ts +21 -0
- package/src/operationsInterfaces/netAppResource.ts +66 -0
- package/src/operationsInterfaces/netAppResourceQuotaLimits.ts +40 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/pools.ts +144 -0
- package/src/operationsInterfaces/snapshotPolicies.ts +142 -0
- package/src/operationsInterfaces/snapshots.ts +178 -0
- package/src/operationsInterfaces/vaults.ts +26 -0
- package/src/operationsInterfaces/volumeGroups.ts +110 -0
- package/src/operationsInterfaces/volumes.ts +413 -0
- package/tsconfig.json +3 -3
- package/types/arm-netapp.d.ts +3485 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-netapp.js +0 -8542
- package/dist/arm-netapp.js.map +0 -1
- package/dist/arm-netapp.min.js +0 -1
- package/dist/arm-netapp.min.js.map +0 -1
- package/esm/azureNetAppFilesManagementClient.d.ts +0 -37
- package/esm/azureNetAppFilesManagementClient.d.ts.map +0 -1
- package/esm/azureNetAppFilesManagementClient.js +0 -50
- package/esm/azureNetAppFilesManagementClient.js.map +0 -1
- package/esm/azureNetAppFilesManagementClientContext.d.ts +0 -23
- package/esm/azureNetAppFilesManagementClientContext.d.ts.map +0 -1
- package/esm/azureNetAppFilesManagementClientContext.js +0 -61
- package/esm/azureNetAppFilesManagementClientContext.js.map +0 -1
- package/esm/models/accountBackupsMappers.d.ts +0 -2
- package/esm/models/accountBackupsMappers.d.ts.map +0 -1
- package/esm/models/accountBackupsMappers.js +0 -9
- package/esm/models/accountBackupsMappers.js.map +0 -1
- package/esm/models/accountsMappers.d.ts +0 -2
- package/esm/models/accountsMappers.d.ts.map +0 -1
- package/esm/models/accountsMappers.js +0 -9
- package/esm/models/accountsMappers.js.map +0 -1
- package/esm/models/backupPoliciesMappers.d.ts +0 -2
- package/esm/models/backupPoliciesMappers.d.ts.map +0 -1
- package/esm/models/backupPoliciesMappers.js +0 -9
- package/esm/models/backupPoliciesMappers.js.map +0 -1
- package/esm/models/backupsMappers.d.ts +0 -2
- package/esm/models/backupsMappers.d.ts.map +0 -1
- package/esm/models/backupsMappers.js +0 -9
- package/esm/models/backupsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -3856
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -78
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/netAppResourceMappers.d.ts +0 -2
- package/esm/models/netAppResourceMappers.d.ts.map +0 -1
- package/esm/models/netAppResourceMappers.js.map +0 -1
- package/esm/models/netAppResourceQuotaLimitsMappers.d.ts +0 -2
- package/esm/models/netAppResourceQuotaLimitsMappers.d.ts.map +0 -1
- package/esm/models/netAppResourceQuotaLimitsMappers.js +0 -9
- package/esm/models/netAppResourceQuotaLimitsMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -17
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -183
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/poolsMappers.d.ts +0 -2
- package/esm/models/poolsMappers.d.ts.map +0 -1
- package/esm/models/poolsMappers.js +0 -9
- package/esm/models/poolsMappers.js.map +0 -1
- package/esm/models/snapshotPoliciesMappers.d.ts +0 -2
- package/esm/models/snapshotPoliciesMappers.d.ts.map +0 -1
- package/esm/models/snapshotPoliciesMappers.js +0 -9
- package/esm/models/snapshotPoliciesMappers.js.map +0 -1
- package/esm/models/snapshotsMappers.d.ts +0 -2
- package/esm/models/snapshotsMappers.d.ts.map +0 -1
- package/esm/models/snapshotsMappers.js +0 -9
- package/esm/models/snapshotsMappers.js.map +0 -1
- package/esm/models/vaultsMappers.d.ts +0 -2
- package/esm/models/vaultsMappers.d.ts.map +0 -1
- package/esm/models/vaultsMappers.js +0 -9
- package/esm/models/vaultsMappers.js.map +0 -1
- package/esm/models/volumeGroupsMappers.d.ts +0 -2
- package/esm/models/volumeGroupsMappers.d.ts.map +0 -1
- package/esm/models/volumeGroupsMappers.js +0 -9
- package/esm/models/volumeGroupsMappers.js.map +0 -1
- package/esm/models/volumesMappers.d.ts +0 -2
- package/esm/models/volumesMappers.d.ts.map +0 -1
- package/esm/models/volumesMappers.js +0 -9
- package/esm/models/volumesMappers.js.map +0 -1
- package/esm/operations/accountBackups.d.ts +0 -81
- package/esm/operations/accountBackups.d.ts.map +0 -1
- package/esm/operations/accountBackups.js +0 -145
- package/esm/operations/accountBackups.js.map +0 -1
- package/esm/operations/accounts.d.ts +0 -167
- package/esm/operations/accounts.d.ts.map +0 -1
- package/esm/operations/accounts.js +0 -344
- package/esm/operations/accounts.js.map +0 -1
- package/esm/operations/backupPolicies.d.ts +0 -125
- package/esm/operations/backupPolicies.d.ts.map +0 -1
- package/esm/operations/backupPolicies.js +0 -277
- package/esm/operations/backupPolicies.js.map +0 -1
- package/esm/operations/backups.d.ts +0 -203
- package/esm/operations/backups.d.ts.map +0 -1
- package/esm/operations/backups.js +0 -379
- package/esm/operations/backups.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/netAppResource.d.ts +0 -115
- package/esm/operations/netAppResource.d.ts.map +0 -1
- package/esm/operations/netAppResource.js +0 -145
- package/esm/operations/netAppResource.js.map +0 -1
- package/esm/operations/netAppResourceQuotaLimits.d.ts +0 -54
- package/esm/operations/netAppResourceQuotaLimits.d.ts.map +0 -1
- package/esm/operations/netAppResourceQuotaLimits.js +0 -86
- package/esm/operations/netAppResourceQuotaLimits.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -29
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -50
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/pools.d.ts +0 -144
- package/esm/operations/pools.d.ts.map +0 -1
- package/esm/operations/pools.js +0 -302
- package/esm/operations/pools.js.map +0 -1
- package/esm/operations/snapshotPolicies.d.ts +0 -149
- package/esm/operations/snapshotPolicies.d.ts.map +0 -1
- package/esm/operations/snapshotPolicies.js +0 -281
- package/esm/operations/snapshotPolicies.js.map +0 -1
- package/esm/operations/snapshots.d.ts +0 -149
- package/esm/operations/snapshots.d.ts.map +0 -1
- package/esm/operations/snapshots.js +0 -312
- package/esm/operations/snapshots.js.map +0 -1
- package/esm/operations/vaults.d.ts +0 -35
- package/esm/operations/vaults.d.ts.map +0 -1
- package/esm/operations/vaults.js +0 -57
- package/esm/operations/vaults.js.map +0 -1
- package/esm/operations/volumeGroups.d.ts +0 -107
- package/esm/operations/volumeGroups.d.ts.map +0 -1
- package/esm/operations/volumeGroups.js +0 -212
- package/esm/operations/volumeGroups.js.map +0 -1
- package/esm/operations/volumes.d.ts +0 -344
- package/esm/operations/volumes.d.ts.map +0 -1
- package/esm/operations/volumes.js +0 -800
- package/esm/operations/volumes.js.map +0 -1
- package/src/azureNetAppFilesManagementClient.ts +0 -72
- package/src/azureNetAppFilesManagementClientContext.ts +0 -68
- package/src/models/accountBackupsMappers.ts +0 -51
- package/src/models/accountsMappers.ts +0 -51
- package/src/models/backupPoliciesMappers.ts +0 -51
- package/src/models/backupsMappers.ts +0 -53
- package/src/models/netAppResourceQuotaLimitsMappers.ts +0 -51
- package/src/models/poolsMappers.ts +0 -51
- package/src/models/snapshotPoliciesMappers.ts +0 -53
- package/src/models/snapshotsMappers.ts +0 -51
- package/src/models/vaultsMappers.ts +0 -51
- package/src/models/volumeGroupsMappers.ts +0 -54
- package/src/models/volumesMappers.ts +0 -56
|
@@ -3,676 +3,1249 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Volumes } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { NetAppManagementClient } from "../netAppManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
Volume,
|
|
19
|
+
VolumesListNextOptionalParams,
|
|
20
|
+
VolumesListOptionalParams,
|
|
21
|
+
VolumesListResponse,
|
|
22
|
+
VolumesGetOptionalParams,
|
|
23
|
+
VolumesGetResponse,
|
|
24
|
+
VolumesCreateOrUpdateOptionalParams,
|
|
25
|
+
VolumesCreateOrUpdateResponse,
|
|
26
|
+
VolumePatch,
|
|
27
|
+
VolumesUpdateOptionalParams,
|
|
28
|
+
VolumesUpdateResponse,
|
|
29
|
+
VolumesDeleteOptionalParams,
|
|
30
|
+
VolumeRevert,
|
|
31
|
+
VolumesRevertOptionalParams,
|
|
32
|
+
VolumesBreakReplicationOptionalParams,
|
|
33
|
+
VolumesReplicationStatusOptionalParams,
|
|
34
|
+
VolumesReplicationStatusResponse,
|
|
35
|
+
VolumesResyncReplicationOptionalParams,
|
|
36
|
+
VolumesDeleteReplicationOptionalParams,
|
|
37
|
+
AuthorizeRequest,
|
|
38
|
+
VolumesAuthorizeReplicationOptionalParams,
|
|
39
|
+
VolumesReInitializeReplicationOptionalParams,
|
|
40
|
+
PoolChangeRequest,
|
|
41
|
+
VolumesPoolChangeOptionalParams,
|
|
42
|
+
VolumesListNextResponse
|
|
43
|
+
} from "../models";
|
|
16
44
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
45
|
+
/// <reference lib="esnext.asynciterable" />
|
|
46
|
+
/** Class containing Volumes operations. */
|
|
47
|
+
export class VolumesImpl implements Volumes {
|
|
48
|
+
private readonly client: NetAppManagementClient;
|
|
20
49
|
|
|
21
50
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
51
|
+
* Initialize a new instance of the class Volumes class.
|
|
52
|
+
* @param client Reference to the service client
|
|
24
53
|
*/
|
|
25
|
-
constructor(client:
|
|
54
|
+
constructor(client: NetAppManagementClient) {
|
|
26
55
|
this.client = client;
|
|
27
56
|
}
|
|
28
57
|
|
|
29
58
|
/**
|
|
30
59
|
* List all volumes within the capacity pool
|
|
31
|
-
* @summary Describe all volumes
|
|
32
60
|
* @param resourceGroupName The name of the resource group.
|
|
33
61
|
* @param accountName The name of the NetApp account
|
|
34
62
|
* @param poolName The name of the capacity pool
|
|
35
|
-
* @param
|
|
36
|
-
* @returns Promise<Models.VolumesListResponse>
|
|
63
|
+
* @param options The options parameters.
|
|
37
64
|
*/
|
|
38
|
-
list(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
65
|
+
public list(
|
|
66
|
+
resourceGroupName: string,
|
|
67
|
+
accountName: string,
|
|
68
|
+
poolName: string,
|
|
69
|
+
options?: VolumesListOptionalParams
|
|
70
|
+
): PagedAsyncIterableIterator<Volume> {
|
|
71
|
+
const iter = this.listPagingAll(
|
|
72
|
+
resourceGroupName,
|
|
73
|
+
accountName,
|
|
74
|
+
poolName,
|
|
75
|
+
options
|
|
76
|
+
);
|
|
77
|
+
return {
|
|
78
|
+
next() {
|
|
79
|
+
return iter.next();
|
|
80
|
+
},
|
|
81
|
+
[Symbol.asyncIterator]() {
|
|
82
|
+
return this;
|
|
83
|
+
},
|
|
84
|
+
byPage: () => {
|
|
85
|
+
return this.listPagingPage(
|
|
86
|
+
resourceGroupName,
|
|
87
|
+
accountName,
|
|
88
|
+
poolName,
|
|
89
|
+
options
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
private async *listPagingPage(
|
|
96
|
+
resourceGroupName: string,
|
|
97
|
+
accountName: string,
|
|
98
|
+
poolName: string,
|
|
99
|
+
options?: VolumesListOptionalParams
|
|
100
|
+
): AsyncIterableIterator<Volume[]> {
|
|
101
|
+
let result = await this._list(
|
|
102
|
+
resourceGroupName,
|
|
103
|
+
accountName,
|
|
104
|
+
poolName,
|
|
105
|
+
options
|
|
106
|
+
);
|
|
107
|
+
yield result.value || [];
|
|
108
|
+
let continuationToken = result.nextLink;
|
|
109
|
+
while (continuationToken) {
|
|
110
|
+
result = await this._listNext(
|
|
57
111
|
resourceGroupName,
|
|
58
112
|
accountName,
|
|
59
113
|
poolName,
|
|
114
|
+
continuationToken,
|
|
60
115
|
options
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
116
|
+
);
|
|
117
|
+
continuationToken = result.nextLink;
|
|
118
|
+
yield result.value || [];
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
private async *listPagingAll(
|
|
123
|
+
resourceGroupName: string,
|
|
124
|
+
accountName: string,
|
|
125
|
+
poolName: string,
|
|
126
|
+
options?: VolumesListOptionalParams
|
|
127
|
+
): AsyncIterableIterator<Volume> {
|
|
128
|
+
for await (const page of this.listPagingPage(
|
|
129
|
+
resourceGroupName,
|
|
130
|
+
accountName,
|
|
131
|
+
poolName,
|
|
132
|
+
options
|
|
133
|
+
)) {
|
|
134
|
+
yield* page;
|
|
135
|
+
}
|
|
64
136
|
}
|
|
65
137
|
|
|
66
138
|
/**
|
|
67
|
-
*
|
|
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
|
-
/**
|
|
139
|
+
* List all volumes within the capacity pool
|
|
78
140
|
* @param resourceGroupName The name of the resource group.
|
|
79
141
|
* @param accountName The name of the NetApp account
|
|
80
142
|
* @param poolName The name of the capacity pool
|
|
81
|
-
* @param
|
|
82
|
-
* @param callback The callback
|
|
143
|
+
* @param options The options parameters.
|
|
83
144
|
*/
|
|
84
|
-
|
|
145
|
+
private _list(
|
|
146
|
+
resourceGroupName: string,
|
|
147
|
+
accountName: string,
|
|
148
|
+
poolName: string,
|
|
149
|
+
options?: VolumesListOptionalParams
|
|
150
|
+
): Promise<VolumesListResponse> {
|
|
151
|
+
return this.client.sendOperationRequest(
|
|
152
|
+
{ resourceGroupName, accountName, poolName, options },
|
|
153
|
+
listOperationSpec
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
85
157
|
/**
|
|
158
|
+
* Get the details of the specified volume
|
|
86
159
|
* @param resourceGroupName The name of the resource group.
|
|
87
160
|
* @param accountName The name of the NetApp account
|
|
88
161
|
* @param poolName The name of the capacity pool
|
|
89
162
|
* @param volumeName The name of the volume
|
|
90
|
-
* @param options The
|
|
91
|
-
* @param callback The callback
|
|
163
|
+
* @param options The options parameters.
|
|
92
164
|
*/
|
|
93
|
-
get(
|
|
94
|
-
|
|
165
|
+
get(
|
|
166
|
+
resourceGroupName: string,
|
|
167
|
+
accountName: string,
|
|
168
|
+
poolName: string,
|
|
169
|
+
volumeName: string,
|
|
170
|
+
options?: VolumesGetOptionalParams
|
|
171
|
+
): Promise<VolumesGetResponse> {
|
|
95
172
|
return this.client.sendOperationRequest(
|
|
96
|
-
{
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
poolName,
|
|
100
|
-
volumeName,
|
|
101
|
-
options
|
|
102
|
-
},
|
|
103
|
-
getOperationSpec,
|
|
104
|
-
callback) as Promise<Models.VolumesGetResponse>;
|
|
173
|
+
{ resourceGroupName, accountName, poolName, volumeName, options },
|
|
174
|
+
getOperationSpec
|
|
175
|
+
);
|
|
105
176
|
}
|
|
106
177
|
|
|
107
178
|
/**
|
|
108
179
|
* 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
180
|
* @param resourceGroupName The name of the resource group.
|
|
112
181
|
* @param accountName The name of the NetApp account
|
|
113
182
|
* @param poolName The name of the capacity pool
|
|
114
183
|
* @param volumeName The name of the volume
|
|
115
|
-
* @param
|
|
116
|
-
* @
|
|
184
|
+
* @param body Volume object supplied in the body of the operation.
|
|
185
|
+
* @param options The options parameters.
|
|
117
186
|
*/
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
187
|
+
async beginCreateOrUpdate(
|
|
188
|
+
resourceGroupName: string,
|
|
189
|
+
accountName: string,
|
|
190
|
+
poolName: string,
|
|
191
|
+
volumeName: string,
|
|
192
|
+
body: Volume,
|
|
193
|
+
options?: VolumesCreateOrUpdateOptionalParams
|
|
194
|
+
): Promise<
|
|
195
|
+
PollerLike<
|
|
196
|
+
PollOperationState<VolumesCreateOrUpdateResponse>,
|
|
197
|
+
VolumesCreateOrUpdateResponse
|
|
198
|
+
>
|
|
199
|
+
> {
|
|
200
|
+
const directSendOperation = async (
|
|
201
|
+
args: coreClient.OperationArguments,
|
|
202
|
+
spec: coreClient.OperationSpec
|
|
203
|
+
): Promise<VolumesCreateOrUpdateResponse> => {
|
|
204
|
+
return this.client.sendOperationRequest(args, spec);
|
|
205
|
+
};
|
|
206
|
+
const sendOperation = async (
|
|
207
|
+
args: coreClient.OperationArguments,
|
|
208
|
+
spec: coreClient.OperationSpec
|
|
209
|
+
) => {
|
|
210
|
+
let currentRawResponse:
|
|
211
|
+
| coreClient.FullOperationResponse
|
|
212
|
+
| undefined = undefined;
|
|
213
|
+
const providedCallback = args.options?.onResponse;
|
|
214
|
+
const callback: coreClient.RawResponseCallback = (
|
|
215
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
216
|
+
flatResponse: unknown
|
|
217
|
+
) => {
|
|
218
|
+
currentRawResponse = rawResponse;
|
|
219
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
220
|
+
};
|
|
221
|
+
const updatedArgs = {
|
|
222
|
+
...args,
|
|
223
|
+
options: {
|
|
224
|
+
...args.options,
|
|
225
|
+
onResponse: callback
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
229
|
+
return {
|
|
230
|
+
flatResponse,
|
|
231
|
+
rawResponse: {
|
|
232
|
+
statusCode: currentRawResponse!.status,
|
|
233
|
+
body: currentRawResponse!.parsedBody,
|
|
234
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
const lro = new LroImpl(
|
|
240
|
+
sendOperation,
|
|
241
|
+
{ resourceGroupName, accountName, poolName, volumeName, body, options },
|
|
242
|
+
createOrUpdateOperationSpec
|
|
243
|
+
);
|
|
244
|
+
return new LroEngine(lro, {
|
|
245
|
+
resumeFrom: options?.resumeFrom,
|
|
246
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
247
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
248
|
+
});
|
|
121
249
|
}
|
|
122
250
|
|
|
123
251
|
/**
|
|
124
|
-
*
|
|
125
|
-
* @summary Update a volume
|
|
126
|
-
* @param body Volume object supplied in the body of the operation.
|
|
252
|
+
* Create or update the specified volume within the capacity pool
|
|
127
253
|
* @param resourceGroupName The name of the resource group.
|
|
128
254
|
* @param accountName The name of the NetApp account
|
|
129
255
|
* @param poolName The name of the capacity pool
|
|
130
256
|
* @param volumeName The name of the volume
|
|
131
|
-
* @param
|
|
132
|
-
* @
|
|
257
|
+
* @param body Volume object supplied in the body of the operation.
|
|
258
|
+
* @param options The options parameters.
|
|
133
259
|
*/
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
260
|
+
async beginCreateOrUpdateAndWait(
|
|
261
|
+
resourceGroupName: string,
|
|
262
|
+
accountName: string,
|
|
263
|
+
poolName: string,
|
|
264
|
+
volumeName: string,
|
|
265
|
+
body: Volume,
|
|
266
|
+
options?: VolumesCreateOrUpdateOptionalParams
|
|
267
|
+
): Promise<VolumesCreateOrUpdateResponse> {
|
|
268
|
+
const poller = await this.beginCreateOrUpdate(
|
|
269
|
+
resourceGroupName,
|
|
270
|
+
accountName,
|
|
271
|
+
poolName,
|
|
272
|
+
volumeName,
|
|
273
|
+
body,
|
|
274
|
+
options
|
|
275
|
+
);
|
|
276
|
+
return poller.pollUntilDone();
|
|
137
277
|
}
|
|
138
278
|
|
|
139
279
|
/**
|
|
140
|
-
*
|
|
141
|
-
* @summary Delete a volume
|
|
280
|
+
* Patch the specified volume
|
|
142
281
|
* @param resourceGroupName The name of the resource group.
|
|
143
282
|
* @param accountName The name of the NetApp account
|
|
144
283
|
* @param poolName The name of the capacity pool
|
|
145
284
|
* @param volumeName The name of the volume
|
|
146
|
-
* @param
|
|
147
|
-
* @
|
|
285
|
+
* @param body Volume object supplied in the body of the operation.
|
|
286
|
+
* @param options The options parameters.
|
|
148
287
|
*/
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
288
|
+
async beginUpdate(
|
|
289
|
+
resourceGroupName: string,
|
|
290
|
+
accountName: string,
|
|
291
|
+
poolName: string,
|
|
292
|
+
volumeName: string,
|
|
293
|
+
body: VolumePatch,
|
|
294
|
+
options?: VolumesUpdateOptionalParams
|
|
295
|
+
): Promise<
|
|
296
|
+
PollerLike<PollOperationState<VolumesUpdateResponse>, VolumesUpdateResponse>
|
|
297
|
+
> {
|
|
298
|
+
const directSendOperation = async (
|
|
299
|
+
args: coreClient.OperationArguments,
|
|
300
|
+
spec: coreClient.OperationSpec
|
|
301
|
+
): Promise<VolumesUpdateResponse> => {
|
|
302
|
+
return this.client.sendOperationRequest(args, spec);
|
|
303
|
+
};
|
|
304
|
+
const sendOperation = async (
|
|
305
|
+
args: coreClient.OperationArguments,
|
|
306
|
+
spec: coreClient.OperationSpec
|
|
307
|
+
) => {
|
|
308
|
+
let currentRawResponse:
|
|
309
|
+
| coreClient.FullOperationResponse
|
|
310
|
+
| undefined = undefined;
|
|
311
|
+
const providedCallback = args.options?.onResponse;
|
|
312
|
+
const callback: coreClient.RawResponseCallback = (
|
|
313
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
314
|
+
flatResponse: unknown
|
|
315
|
+
) => {
|
|
316
|
+
currentRawResponse = rawResponse;
|
|
317
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
318
|
+
};
|
|
319
|
+
const updatedArgs = {
|
|
320
|
+
...args,
|
|
321
|
+
options: {
|
|
322
|
+
...args.options,
|
|
323
|
+
onResponse: callback
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
327
|
+
return {
|
|
328
|
+
flatResponse,
|
|
329
|
+
rawResponse: {
|
|
330
|
+
statusCode: currentRawResponse!.status,
|
|
331
|
+
body: currentRawResponse!.parsedBody,
|
|
332
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
const lro = new LroImpl(
|
|
338
|
+
sendOperation,
|
|
339
|
+
{ resourceGroupName, accountName, poolName, volumeName, body, options },
|
|
340
|
+
updateOperationSpec
|
|
341
|
+
);
|
|
342
|
+
return new LroEngine(lro, {
|
|
343
|
+
resumeFrom: options?.resumeFrom,
|
|
344
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
345
|
+
lroResourceLocationConfig: "location"
|
|
346
|
+
});
|
|
152
347
|
}
|
|
153
348
|
|
|
154
349
|
/**
|
|
155
|
-
*
|
|
156
|
-
* @summary Revert a volume to one of its snapshots
|
|
350
|
+
* Patch the specified volume
|
|
157
351
|
* @param resourceGroupName The name of the resource group.
|
|
158
352
|
* @param accountName The name of the NetApp account
|
|
159
353
|
* @param poolName The name of the capacity pool
|
|
160
354
|
* @param volumeName The name of the volume
|
|
161
|
-
* @param
|
|
162
|
-
* @
|
|
355
|
+
* @param body Volume object supplied in the body of the operation.
|
|
356
|
+
* @param options The options parameters.
|
|
163
357
|
*/
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
358
|
+
async beginUpdateAndWait(
|
|
359
|
+
resourceGroupName: string,
|
|
360
|
+
accountName: string,
|
|
361
|
+
poolName: string,
|
|
362
|
+
volumeName: string,
|
|
363
|
+
body: VolumePatch,
|
|
364
|
+
options?: VolumesUpdateOptionalParams
|
|
365
|
+
): Promise<VolumesUpdateResponse> {
|
|
366
|
+
const poller = await this.beginUpdate(
|
|
367
|
+
resourceGroupName,
|
|
368
|
+
accountName,
|
|
369
|
+
poolName,
|
|
370
|
+
volumeName,
|
|
371
|
+
body,
|
|
372
|
+
options
|
|
373
|
+
);
|
|
374
|
+
return poller.pollUntilDone();
|
|
167
375
|
}
|
|
168
376
|
|
|
169
377
|
/**
|
|
170
|
-
*
|
|
171
|
-
* @summary Break volume replication
|
|
378
|
+
* Delete the specified volume
|
|
172
379
|
* @param resourceGroupName The name of the resource group.
|
|
173
380
|
* @param accountName The name of the NetApp account
|
|
174
381
|
* @param poolName The name of the capacity pool
|
|
175
382
|
* @param volumeName The name of the volume
|
|
176
|
-
* @param
|
|
177
|
-
* @returns Promise<msRest.RestResponse>
|
|
383
|
+
* @param options The options parameters.
|
|
178
384
|
*/
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
385
|
+
async beginDelete(
|
|
386
|
+
resourceGroupName: string,
|
|
387
|
+
accountName: string,
|
|
388
|
+
poolName: string,
|
|
389
|
+
volumeName: string,
|
|
390
|
+
options?: VolumesDeleteOptionalParams
|
|
391
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
392
|
+
const directSendOperation = async (
|
|
393
|
+
args: coreClient.OperationArguments,
|
|
394
|
+
spec: coreClient.OperationSpec
|
|
395
|
+
): Promise<void> => {
|
|
396
|
+
return this.client.sendOperationRequest(args, spec);
|
|
397
|
+
};
|
|
398
|
+
const sendOperation = async (
|
|
399
|
+
args: coreClient.OperationArguments,
|
|
400
|
+
spec: coreClient.OperationSpec
|
|
401
|
+
) => {
|
|
402
|
+
let currentRawResponse:
|
|
403
|
+
| coreClient.FullOperationResponse
|
|
404
|
+
| undefined = undefined;
|
|
405
|
+
const providedCallback = args.options?.onResponse;
|
|
406
|
+
const callback: coreClient.RawResponseCallback = (
|
|
407
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
408
|
+
flatResponse: unknown
|
|
409
|
+
) => {
|
|
410
|
+
currentRawResponse = rawResponse;
|
|
411
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
412
|
+
};
|
|
413
|
+
const updatedArgs = {
|
|
414
|
+
...args,
|
|
415
|
+
options: {
|
|
416
|
+
...args.options,
|
|
417
|
+
onResponse: callback
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
421
|
+
return {
|
|
422
|
+
flatResponse,
|
|
423
|
+
rawResponse: {
|
|
424
|
+
statusCode: currentRawResponse!.status,
|
|
425
|
+
body: currentRawResponse!.parsedBody,
|
|
426
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
const lro = new LroImpl(
|
|
432
|
+
sendOperation,
|
|
433
|
+
{ resourceGroupName, accountName, poolName, volumeName, options },
|
|
434
|
+
deleteOperationSpec
|
|
435
|
+
);
|
|
436
|
+
return new LroEngine(lro, {
|
|
437
|
+
resumeFrom: options?.resumeFrom,
|
|
438
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
439
|
+
lroResourceLocationConfig: "location"
|
|
440
|
+
});
|
|
182
441
|
}
|
|
183
442
|
|
|
184
443
|
/**
|
|
185
|
-
*
|
|
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
|
-
/**
|
|
444
|
+
* Delete the specified volume
|
|
204
445
|
* @param resourceGroupName The name of the resource group.
|
|
205
446
|
* @param accountName The name of the NetApp account
|
|
206
447
|
* @param poolName The name of the capacity pool
|
|
207
448
|
* @param volumeName The name of the volume
|
|
208
|
-
* @param options The
|
|
209
|
-
* @param callback The callback
|
|
449
|
+
* @param options The options parameters.
|
|
210
450
|
*/
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
451
|
+
async beginDeleteAndWait(
|
|
452
|
+
resourceGroupName: string,
|
|
453
|
+
accountName: string,
|
|
454
|
+
poolName: string,
|
|
455
|
+
volumeName: string,
|
|
456
|
+
options?: VolumesDeleteOptionalParams
|
|
457
|
+
): Promise<void> {
|
|
458
|
+
const poller = await this.beginDelete(
|
|
459
|
+
resourceGroupName,
|
|
460
|
+
accountName,
|
|
461
|
+
poolName,
|
|
462
|
+
volumeName,
|
|
463
|
+
options
|
|
464
|
+
);
|
|
465
|
+
return poller.pollUntilDone();
|
|
223
466
|
}
|
|
224
467
|
|
|
225
468
|
/**
|
|
226
|
-
*
|
|
227
|
-
* will reverse-resync the connection and sync from destination to source.
|
|
228
|
-
* @summary Resync volume replication
|
|
469
|
+
* Revert a volume to the snapshot specified in the body
|
|
229
470
|
* @param resourceGroupName The name of the resource group.
|
|
230
471
|
* @param accountName The name of the NetApp account
|
|
231
472
|
* @param poolName The name of the capacity pool
|
|
232
473
|
* @param volumeName The name of the volume
|
|
233
|
-
* @param
|
|
234
|
-
* @
|
|
474
|
+
* @param body Object for snapshot to revert supplied in the body of the operation.
|
|
475
|
+
* @param options The options parameters.
|
|
235
476
|
*/
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
477
|
+
async beginRevert(
|
|
478
|
+
resourceGroupName: string,
|
|
479
|
+
accountName: string,
|
|
480
|
+
poolName: string,
|
|
481
|
+
volumeName: string,
|
|
482
|
+
body: VolumeRevert,
|
|
483
|
+
options?: VolumesRevertOptionalParams
|
|
484
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
485
|
+
const directSendOperation = async (
|
|
486
|
+
args: coreClient.OperationArguments,
|
|
487
|
+
spec: coreClient.OperationSpec
|
|
488
|
+
): Promise<void> => {
|
|
489
|
+
return this.client.sendOperationRequest(args, spec);
|
|
490
|
+
};
|
|
491
|
+
const sendOperation = async (
|
|
492
|
+
args: coreClient.OperationArguments,
|
|
493
|
+
spec: coreClient.OperationSpec
|
|
494
|
+
) => {
|
|
495
|
+
let currentRawResponse:
|
|
496
|
+
| coreClient.FullOperationResponse
|
|
497
|
+
| undefined = undefined;
|
|
498
|
+
const providedCallback = args.options?.onResponse;
|
|
499
|
+
const callback: coreClient.RawResponseCallback = (
|
|
500
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
501
|
+
flatResponse: unknown
|
|
502
|
+
) => {
|
|
503
|
+
currentRawResponse = rawResponse;
|
|
504
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
505
|
+
};
|
|
506
|
+
const updatedArgs = {
|
|
507
|
+
...args,
|
|
508
|
+
options: {
|
|
509
|
+
...args.options,
|
|
510
|
+
onResponse: callback
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
514
|
+
return {
|
|
515
|
+
flatResponse,
|
|
516
|
+
rawResponse: {
|
|
517
|
+
statusCode: currentRawResponse!.status,
|
|
518
|
+
body: currentRawResponse!.parsedBody,
|
|
519
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
const lro = new LroImpl(
|
|
525
|
+
sendOperation,
|
|
526
|
+
{ resourceGroupName, accountName, poolName, volumeName, body, options },
|
|
527
|
+
revertOperationSpec
|
|
528
|
+
);
|
|
529
|
+
return new LroEngine(lro, {
|
|
530
|
+
resumeFrom: options?.resumeFrom,
|
|
531
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
532
|
+
lroResourceLocationConfig: "location"
|
|
533
|
+
});
|
|
239
534
|
}
|
|
240
535
|
|
|
241
536
|
/**
|
|
242
|
-
*
|
|
243
|
-
* replication
|
|
244
|
-
* @summary Delete volume replication
|
|
537
|
+
* Revert a volume to the snapshot specified in the body
|
|
245
538
|
* @param resourceGroupName The name of the resource group.
|
|
246
539
|
* @param accountName The name of the NetApp account
|
|
247
540
|
* @param poolName The name of the capacity pool
|
|
248
541
|
* @param volumeName The name of the volume
|
|
249
|
-
* @param
|
|
250
|
-
* @
|
|
542
|
+
* @param body Object for snapshot to revert supplied in the body of the operation.
|
|
543
|
+
* @param options The options parameters.
|
|
251
544
|
*/
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
545
|
+
async beginRevertAndWait(
|
|
546
|
+
resourceGroupName: string,
|
|
547
|
+
accountName: string,
|
|
548
|
+
poolName: string,
|
|
549
|
+
volumeName: string,
|
|
550
|
+
body: VolumeRevert,
|
|
551
|
+
options?: VolumesRevertOptionalParams
|
|
552
|
+
): Promise<void> {
|
|
553
|
+
const poller = await this.beginRevert(
|
|
554
|
+
resourceGroupName,
|
|
555
|
+
accountName,
|
|
556
|
+
poolName,
|
|
557
|
+
volumeName,
|
|
558
|
+
body,
|
|
559
|
+
options
|
|
560
|
+
);
|
|
561
|
+
return poller.pollUntilDone();
|
|
255
562
|
}
|
|
256
563
|
|
|
257
564
|
/**
|
|
258
|
-
*
|
|
259
|
-
* @summary Authorize source volume replication
|
|
565
|
+
* Break the replication connection on the destination volume
|
|
260
566
|
* @param resourceGroupName The name of the resource group.
|
|
261
567
|
* @param accountName The name of the NetApp account
|
|
262
568
|
* @param poolName The name of the capacity pool
|
|
263
569
|
* @param volumeName The name of the volume
|
|
264
|
-
* @param
|
|
265
|
-
* @returns Promise<msRest.RestResponse>
|
|
570
|
+
* @param options The options parameters.
|
|
266
571
|
*/
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
572
|
+
async beginBreakReplication(
|
|
573
|
+
resourceGroupName: string,
|
|
574
|
+
accountName: string,
|
|
575
|
+
poolName: string,
|
|
576
|
+
volumeName: string,
|
|
577
|
+
options?: VolumesBreakReplicationOptionalParams
|
|
578
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
579
|
+
const directSendOperation = async (
|
|
580
|
+
args: coreClient.OperationArguments,
|
|
581
|
+
spec: coreClient.OperationSpec
|
|
582
|
+
): Promise<void> => {
|
|
583
|
+
return this.client.sendOperationRequest(args, spec);
|
|
584
|
+
};
|
|
585
|
+
const sendOperation = async (
|
|
586
|
+
args: coreClient.OperationArguments,
|
|
587
|
+
spec: coreClient.OperationSpec
|
|
588
|
+
) => {
|
|
589
|
+
let currentRawResponse:
|
|
590
|
+
| coreClient.FullOperationResponse
|
|
591
|
+
| undefined = undefined;
|
|
592
|
+
const providedCallback = args.options?.onResponse;
|
|
593
|
+
const callback: coreClient.RawResponseCallback = (
|
|
594
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
595
|
+
flatResponse: unknown
|
|
596
|
+
) => {
|
|
597
|
+
currentRawResponse = rawResponse;
|
|
598
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
599
|
+
};
|
|
600
|
+
const updatedArgs = {
|
|
601
|
+
...args,
|
|
602
|
+
options: {
|
|
603
|
+
...args.options,
|
|
604
|
+
onResponse: callback
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
608
|
+
return {
|
|
609
|
+
flatResponse,
|
|
610
|
+
rawResponse: {
|
|
611
|
+
statusCode: currentRawResponse!.status,
|
|
612
|
+
body: currentRawResponse!.parsedBody,
|
|
613
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
614
|
+
}
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
|
|
618
|
+
const lro = new LroImpl(
|
|
619
|
+
sendOperation,
|
|
620
|
+
{ resourceGroupName, accountName, poolName, volumeName, options },
|
|
621
|
+
breakReplicationOperationSpec
|
|
622
|
+
);
|
|
623
|
+
return new LroEngine(lro, {
|
|
624
|
+
resumeFrom: options?.resumeFrom,
|
|
625
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
626
|
+
lroResourceLocationConfig: "location"
|
|
627
|
+
});
|
|
270
628
|
}
|
|
271
629
|
|
|
272
630
|
/**
|
|
273
|
-
*
|
|
274
|
-
* @summary ReInitialize volume replication
|
|
631
|
+
* Break the replication connection on the destination volume
|
|
275
632
|
* @param resourceGroupName The name of the resource group.
|
|
276
633
|
* @param accountName The name of the NetApp account
|
|
277
634
|
* @param poolName The name of the capacity pool
|
|
278
635
|
* @param volumeName The name of the volume
|
|
279
|
-
* @param
|
|
280
|
-
* @returns Promise<msRest.RestResponse>
|
|
636
|
+
* @param options The options parameters.
|
|
281
637
|
*/
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
638
|
+
async beginBreakReplicationAndWait(
|
|
639
|
+
resourceGroupName: string,
|
|
640
|
+
accountName: string,
|
|
641
|
+
poolName: string,
|
|
642
|
+
volumeName: string,
|
|
643
|
+
options?: VolumesBreakReplicationOptionalParams
|
|
644
|
+
): Promise<void> {
|
|
645
|
+
const poller = await this.beginBreakReplication(
|
|
646
|
+
resourceGroupName,
|
|
647
|
+
accountName,
|
|
648
|
+
poolName,
|
|
649
|
+
volumeName,
|
|
650
|
+
options
|
|
651
|
+
);
|
|
652
|
+
return poller.pollUntilDone();
|
|
285
653
|
}
|
|
286
654
|
|
|
287
655
|
/**
|
|
288
|
-
*
|
|
289
|
-
* @summary Change pool for volume
|
|
656
|
+
* Get the status of the replication
|
|
290
657
|
* @param resourceGroupName The name of the resource group.
|
|
291
658
|
* @param accountName The name of the NetApp account
|
|
292
659
|
* @param poolName The name of the capacity pool
|
|
293
660
|
* @param volumeName The name of the volume
|
|
294
|
-
* @param
|
|
295
|
-
* @param [options] The optional parameters
|
|
296
|
-
* @returns Promise<msRest.RestResponse>
|
|
661
|
+
* @param options The options parameters.
|
|
297
662
|
*/
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
663
|
+
replicationStatus(
|
|
664
|
+
resourceGroupName: string,
|
|
665
|
+
accountName: string,
|
|
666
|
+
poolName: string,
|
|
667
|
+
volumeName: string,
|
|
668
|
+
options?: VolumesReplicationStatusOptionalParams
|
|
669
|
+
): Promise<VolumesReplicationStatusResponse> {
|
|
670
|
+
return this.client.sendOperationRequest(
|
|
671
|
+
{ resourceGroupName, accountName, poolName, volumeName, options },
|
|
672
|
+
replicationStatusOperationSpec
|
|
673
|
+
);
|
|
301
674
|
}
|
|
302
675
|
|
|
303
676
|
/**
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
* @param body Volume object supplied in the body of the operation.
|
|
677
|
+
* Resync the connection on the destination volume. If the operation is ran on the source volume it
|
|
678
|
+
* will reverse-resync the connection and sync from destination to source.
|
|
307
679
|
* @param resourceGroupName The name of the resource group.
|
|
308
680
|
* @param accountName The name of the NetApp account
|
|
309
681
|
* @param poolName The name of the capacity pool
|
|
310
682
|
* @param volumeName The name of the volume
|
|
311
|
-
* @param
|
|
312
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
683
|
+
* @param options The options parameters.
|
|
313
684
|
*/
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
685
|
+
async beginResyncReplication(
|
|
686
|
+
resourceGroupName: string,
|
|
687
|
+
accountName: string,
|
|
688
|
+
poolName: string,
|
|
689
|
+
volumeName: string,
|
|
690
|
+
options?: VolumesResyncReplicationOptionalParams
|
|
691
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
692
|
+
const directSendOperation = async (
|
|
693
|
+
args: coreClient.OperationArguments,
|
|
694
|
+
spec: coreClient.OperationSpec
|
|
695
|
+
): Promise<void> => {
|
|
696
|
+
return this.client.sendOperationRequest(args, spec);
|
|
697
|
+
};
|
|
698
|
+
const sendOperation = async (
|
|
699
|
+
args: coreClient.OperationArguments,
|
|
700
|
+
spec: coreClient.OperationSpec
|
|
701
|
+
) => {
|
|
702
|
+
let currentRawResponse:
|
|
703
|
+
| coreClient.FullOperationResponse
|
|
704
|
+
| undefined = undefined;
|
|
705
|
+
const providedCallback = args.options?.onResponse;
|
|
706
|
+
const callback: coreClient.RawResponseCallback = (
|
|
707
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
708
|
+
flatResponse: unknown
|
|
709
|
+
) => {
|
|
710
|
+
currentRawResponse = rawResponse;
|
|
711
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
712
|
+
};
|
|
713
|
+
const updatedArgs = {
|
|
714
|
+
...args,
|
|
715
|
+
options: {
|
|
716
|
+
...args.options,
|
|
717
|
+
onResponse: callback
|
|
718
|
+
}
|
|
719
|
+
};
|
|
720
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
721
|
+
return {
|
|
722
|
+
flatResponse,
|
|
723
|
+
rawResponse: {
|
|
724
|
+
statusCode: currentRawResponse!.status,
|
|
725
|
+
body: currentRawResponse!.parsedBody,
|
|
726
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
const lro = new LroImpl(
|
|
732
|
+
sendOperation,
|
|
733
|
+
{ resourceGroupName, accountName, poolName, volumeName, options },
|
|
734
|
+
resyncReplicationOperationSpec
|
|
735
|
+
);
|
|
736
|
+
return new LroEngine(lro, {
|
|
737
|
+
resumeFrom: options?.resumeFrom,
|
|
738
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
739
|
+
lroResourceLocationConfig: "location"
|
|
740
|
+
});
|
|
326
741
|
}
|
|
327
742
|
|
|
328
743
|
/**
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
* @param body Volume object supplied in the body of the operation.
|
|
744
|
+
* Resync the connection on the destination volume. If the operation is ran on the source volume it
|
|
745
|
+
* will reverse-resync the connection and sync from destination to source.
|
|
332
746
|
* @param resourceGroupName The name of the resource group.
|
|
333
747
|
* @param accountName The name of the NetApp account
|
|
334
748
|
* @param poolName The name of the capacity pool
|
|
335
749
|
* @param volumeName The name of the volume
|
|
336
|
-
* @param
|
|
337
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
750
|
+
* @param options The options parameters.
|
|
338
751
|
*/
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
752
|
+
async beginResyncReplicationAndWait(
|
|
753
|
+
resourceGroupName: string,
|
|
754
|
+
accountName: string,
|
|
755
|
+
poolName: string,
|
|
756
|
+
volumeName: string,
|
|
757
|
+
options?: VolumesResyncReplicationOptionalParams
|
|
758
|
+
): Promise<void> {
|
|
759
|
+
const poller = await this.beginResyncReplication(
|
|
760
|
+
resourceGroupName,
|
|
761
|
+
accountName,
|
|
762
|
+
poolName,
|
|
763
|
+
volumeName,
|
|
764
|
+
options
|
|
765
|
+
);
|
|
766
|
+
return poller.pollUntilDone();
|
|
351
767
|
}
|
|
352
768
|
|
|
353
769
|
/**
|
|
354
|
-
* Delete the
|
|
355
|
-
*
|
|
770
|
+
* Delete the replication connection on the destination volume, and send release to the source
|
|
771
|
+
* replication
|
|
356
772
|
* @param resourceGroupName The name of the resource group.
|
|
357
773
|
* @param accountName The name of the NetApp account
|
|
358
774
|
* @param poolName The name of the capacity pool
|
|
359
775
|
* @param volumeName The name of the volume
|
|
360
|
-
* @param
|
|
361
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
776
|
+
* @param options The options parameters.
|
|
362
777
|
*/
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
778
|
+
async beginDeleteReplication(
|
|
779
|
+
resourceGroupName: string,
|
|
780
|
+
accountName: string,
|
|
781
|
+
poolName: string,
|
|
782
|
+
volumeName: string,
|
|
783
|
+
options?: VolumesDeleteReplicationOptionalParams
|
|
784
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
785
|
+
const directSendOperation = async (
|
|
786
|
+
args: coreClient.OperationArguments,
|
|
787
|
+
spec: coreClient.OperationSpec
|
|
788
|
+
): Promise<void> => {
|
|
789
|
+
return this.client.sendOperationRequest(args, spec);
|
|
790
|
+
};
|
|
791
|
+
const sendOperation = async (
|
|
792
|
+
args: coreClient.OperationArguments,
|
|
793
|
+
spec: coreClient.OperationSpec
|
|
794
|
+
) => {
|
|
795
|
+
let currentRawResponse:
|
|
796
|
+
| coreClient.FullOperationResponse
|
|
797
|
+
| undefined = undefined;
|
|
798
|
+
const providedCallback = args.options?.onResponse;
|
|
799
|
+
const callback: coreClient.RawResponseCallback = (
|
|
800
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
801
|
+
flatResponse: unknown
|
|
802
|
+
) => {
|
|
803
|
+
currentRawResponse = rawResponse;
|
|
804
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
805
|
+
};
|
|
806
|
+
const updatedArgs = {
|
|
807
|
+
...args,
|
|
808
|
+
options: {
|
|
809
|
+
...args.options,
|
|
810
|
+
onResponse: callback
|
|
811
|
+
}
|
|
812
|
+
};
|
|
813
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
814
|
+
return {
|
|
815
|
+
flatResponse,
|
|
816
|
+
rawResponse: {
|
|
817
|
+
statusCode: currentRawResponse!.status,
|
|
818
|
+
body: currentRawResponse!.parsedBody,
|
|
819
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
|
|
824
|
+
const lro = new LroImpl(
|
|
825
|
+
sendOperation,
|
|
826
|
+
{ resourceGroupName, accountName, poolName, volumeName, options },
|
|
827
|
+
deleteReplicationOperationSpec
|
|
828
|
+
);
|
|
829
|
+
return new LroEngine(lro, {
|
|
830
|
+
resumeFrom: options?.resumeFrom,
|
|
831
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
832
|
+
lroResourceLocationConfig: "location"
|
|
833
|
+
});
|
|
374
834
|
}
|
|
375
835
|
|
|
376
836
|
/**
|
|
377
|
-
*
|
|
378
|
-
*
|
|
837
|
+
* Delete the replication connection on the destination volume, and send release to the source
|
|
838
|
+
* replication
|
|
379
839
|
* @param resourceGroupName The name of the resource group.
|
|
380
840
|
* @param accountName The name of the NetApp account
|
|
381
841
|
* @param poolName The name of the capacity pool
|
|
382
842
|
* @param volumeName The name of the volume
|
|
383
|
-
* @param
|
|
384
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
843
|
+
* @param options The options parameters.
|
|
385
844
|
*/
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
845
|
+
async beginDeleteReplicationAndWait(
|
|
846
|
+
resourceGroupName: string,
|
|
847
|
+
accountName: string,
|
|
848
|
+
poolName: string,
|
|
849
|
+
volumeName: string,
|
|
850
|
+
options?: VolumesDeleteReplicationOptionalParams
|
|
851
|
+
): Promise<void> {
|
|
852
|
+
const poller = await this.beginDeleteReplication(
|
|
853
|
+
resourceGroupName,
|
|
854
|
+
accountName,
|
|
855
|
+
poolName,
|
|
856
|
+
volumeName,
|
|
857
|
+
options
|
|
858
|
+
);
|
|
859
|
+
return poller.pollUntilDone();
|
|
397
860
|
}
|
|
398
861
|
|
|
399
862
|
/**
|
|
400
|
-
*
|
|
401
|
-
* @summary Break volume replication
|
|
863
|
+
* Authorize the replication connection on the source volume
|
|
402
864
|
* @param resourceGroupName The name of the resource group.
|
|
403
865
|
* @param accountName The name of the NetApp account
|
|
404
866
|
* @param poolName The name of the capacity pool
|
|
405
867
|
* @param volumeName The name of the volume
|
|
406
|
-
* @param
|
|
407
|
-
* @
|
|
868
|
+
* @param body Authorize request object supplied in the body of the operation.
|
|
869
|
+
* @param options The options parameters.
|
|
408
870
|
*/
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
871
|
+
async beginAuthorizeReplication(
|
|
872
|
+
resourceGroupName: string,
|
|
873
|
+
accountName: string,
|
|
874
|
+
poolName: string,
|
|
875
|
+
volumeName: string,
|
|
876
|
+
body: AuthorizeRequest,
|
|
877
|
+
options?: VolumesAuthorizeReplicationOptionalParams
|
|
878
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
879
|
+
const directSendOperation = async (
|
|
880
|
+
args: coreClient.OperationArguments,
|
|
881
|
+
spec: coreClient.OperationSpec
|
|
882
|
+
): Promise<void> => {
|
|
883
|
+
return this.client.sendOperationRequest(args, spec);
|
|
884
|
+
};
|
|
885
|
+
const sendOperation = async (
|
|
886
|
+
args: coreClient.OperationArguments,
|
|
887
|
+
spec: coreClient.OperationSpec
|
|
888
|
+
) => {
|
|
889
|
+
let currentRawResponse:
|
|
890
|
+
| coreClient.FullOperationResponse
|
|
891
|
+
| undefined = undefined;
|
|
892
|
+
const providedCallback = args.options?.onResponse;
|
|
893
|
+
const callback: coreClient.RawResponseCallback = (
|
|
894
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
895
|
+
flatResponse: unknown
|
|
896
|
+
) => {
|
|
897
|
+
currentRawResponse = rawResponse;
|
|
898
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
899
|
+
};
|
|
900
|
+
const updatedArgs = {
|
|
901
|
+
...args,
|
|
902
|
+
options: {
|
|
903
|
+
...args.options,
|
|
904
|
+
onResponse: callback
|
|
905
|
+
}
|
|
906
|
+
};
|
|
907
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
908
|
+
return {
|
|
909
|
+
flatResponse,
|
|
910
|
+
rawResponse: {
|
|
911
|
+
statusCode: currentRawResponse!.status,
|
|
912
|
+
body: currentRawResponse!.parsedBody,
|
|
913
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
const lro = new LroImpl(
|
|
919
|
+
sendOperation,
|
|
920
|
+
{ resourceGroupName, accountName, poolName, volumeName, body, options },
|
|
921
|
+
authorizeReplicationOperationSpec
|
|
922
|
+
);
|
|
923
|
+
return new LroEngine(lro, {
|
|
924
|
+
resumeFrom: options?.resumeFrom,
|
|
925
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
926
|
+
lroResourceLocationConfig: "location"
|
|
927
|
+
});
|
|
420
928
|
}
|
|
421
929
|
|
|
422
930
|
/**
|
|
423
|
-
*
|
|
424
|
-
* will reverse-resync the connection and sync from destination to source.
|
|
425
|
-
* @summary Resync volume replication
|
|
931
|
+
* Authorize the replication connection on the source volume
|
|
426
932
|
* @param resourceGroupName The name of the resource group.
|
|
427
933
|
* @param accountName The name of the NetApp account
|
|
428
934
|
* @param poolName The name of the capacity pool
|
|
429
935
|
* @param volumeName The name of the volume
|
|
430
|
-
* @param
|
|
431
|
-
* @
|
|
936
|
+
* @param body Authorize request object supplied in the body of the operation.
|
|
937
|
+
* @param options The options parameters.
|
|
432
938
|
*/
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
939
|
+
async beginAuthorizeReplicationAndWait(
|
|
940
|
+
resourceGroupName: string,
|
|
941
|
+
accountName: string,
|
|
942
|
+
poolName: string,
|
|
943
|
+
volumeName: string,
|
|
944
|
+
body: AuthorizeRequest,
|
|
945
|
+
options?: VolumesAuthorizeReplicationOptionalParams
|
|
946
|
+
): Promise<void> {
|
|
947
|
+
const poller = await this.beginAuthorizeReplication(
|
|
948
|
+
resourceGroupName,
|
|
949
|
+
accountName,
|
|
950
|
+
poolName,
|
|
951
|
+
volumeName,
|
|
952
|
+
body,
|
|
953
|
+
options
|
|
954
|
+
);
|
|
955
|
+
return poller.pollUntilDone();
|
|
444
956
|
}
|
|
445
957
|
|
|
446
958
|
/**
|
|
447
|
-
*
|
|
448
|
-
* replication
|
|
449
|
-
* @summary Delete volume replication
|
|
959
|
+
* Re-Initializes the replication connection on the destination volume
|
|
450
960
|
* @param resourceGroupName The name of the resource group.
|
|
451
961
|
* @param accountName The name of the NetApp account
|
|
452
962
|
* @param poolName The name of the capacity pool
|
|
453
963
|
* @param volumeName The name of the volume
|
|
454
|
-
* @param
|
|
455
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
964
|
+
* @param options The options parameters.
|
|
456
965
|
*/
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
966
|
+
async beginReInitializeReplication(
|
|
967
|
+
resourceGroupName: string,
|
|
968
|
+
accountName: string,
|
|
969
|
+
poolName: string,
|
|
970
|
+
volumeName: string,
|
|
971
|
+
options?: VolumesReInitializeReplicationOptionalParams
|
|
972
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
973
|
+
const directSendOperation = async (
|
|
974
|
+
args: coreClient.OperationArguments,
|
|
975
|
+
spec: coreClient.OperationSpec
|
|
976
|
+
): Promise<void> => {
|
|
977
|
+
return this.client.sendOperationRequest(args, spec);
|
|
978
|
+
};
|
|
979
|
+
const sendOperation = async (
|
|
980
|
+
args: coreClient.OperationArguments,
|
|
981
|
+
spec: coreClient.OperationSpec
|
|
982
|
+
) => {
|
|
983
|
+
let currentRawResponse:
|
|
984
|
+
| coreClient.FullOperationResponse
|
|
985
|
+
| undefined = undefined;
|
|
986
|
+
const providedCallback = args.options?.onResponse;
|
|
987
|
+
const callback: coreClient.RawResponseCallback = (
|
|
988
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
989
|
+
flatResponse: unknown
|
|
990
|
+
) => {
|
|
991
|
+
currentRawResponse = rawResponse;
|
|
992
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
993
|
+
};
|
|
994
|
+
const updatedArgs = {
|
|
995
|
+
...args,
|
|
996
|
+
options: {
|
|
997
|
+
...args.options,
|
|
998
|
+
onResponse: callback
|
|
999
|
+
}
|
|
1000
|
+
};
|
|
1001
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1002
|
+
return {
|
|
1003
|
+
flatResponse,
|
|
1004
|
+
rawResponse: {
|
|
1005
|
+
statusCode: currentRawResponse!.status,
|
|
1006
|
+
body: currentRawResponse!.parsedBody,
|
|
1007
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1008
|
+
}
|
|
1009
|
+
};
|
|
1010
|
+
};
|
|
1011
|
+
|
|
1012
|
+
const lro = new LroImpl(
|
|
1013
|
+
sendOperation,
|
|
1014
|
+
{ resourceGroupName, accountName, poolName, volumeName, options },
|
|
1015
|
+
reInitializeReplicationOperationSpec
|
|
1016
|
+
);
|
|
1017
|
+
return new LroEngine(lro, {
|
|
1018
|
+
resumeFrom: options?.resumeFrom,
|
|
1019
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1020
|
+
lroResourceLocationConfig: "location"
|
|
1021
|
+
});
|
|
468
1022
|
}
|
|
469
1023
|
|
|
470
1024
|
/**
|
|
471
|
-
*
|
|
472
|
-
* @summary Authorize source volume replication
|
|
1025
|
+
* Re-Initializes the replication connection on the destination volume
|
|
473
1026
|
* @param resourceGroupName The name of the resource group.
|
|
474
1027
|
* @param accountName The name of the NetApp account
|
|
475
1028
|
* @param poolName The name of the capacity pool
|
|
476
1029
|
* @param volumeName The name of the volume
|
|
477
|
-
* @param
|
|
478
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1030
|
+
* @param options The options parameters.
|
|
479
1031
|
*/
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
1032
|
+
async beginReInitializeReplicationAndWait(
|
|
1033
|
+
resourceGroupName: string,
|
|
1034
|
+
accountName: string,
|
|
1035
|
+
poolName: string,
|
|
1036
|
+
volumeName: string,
|
|
1037
|
+
options?: VolumesReInitializeReplicationOptionalParams
|
|
1038
|
+
): Promise<void> {
|
|
1039
|
+
const poller = await this.beginReInitializeReplication(
|
|
1040
|
+
resourceGroupName,
|
|
1041
|
+
accountName,
|
|
1042
|
+
poolName,
|
|
1043
|
+
volumeName,
|
|
1044
|
+
options
|
|
1045
|
+
);
|
|
1046
|
+
return poller.pollUntilDone();
|
|
491
1047
|
}
|
|
492
1048
|
|
|
493
1049
|
/**
|
|
494
|
-
*
|
|
495
|
-
* @summary ReInitialize volume replication
|
|
1050
|
+
* Moves volume to another pool
|
|
496
1051
|
* @param resourceGroupName The name of the resource group.
|
|
497
1052
|
* @param accountName The name of the NetApp account
|
|
498
1053
|
* @param poolName The name of the capacity pool
|
|
499
1054
|
* @param volumeName The name of the volume
|
|
500
|
-
* @param
|
|
501
|
-
* @
|
|
1055
|
+
* @param body Move volume to the pool supplied in the body of the operation.
|
|
1056
|
+
* @param options The options parameters.
|
|
502
1057
|
*/
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
1058
|
+
async beginPoolChange(
|
|
1059
|
+
resourceGroupName: string,
|
|
1060
|
+
accountName: string,
|
|
1061
|
+
poolName: string,
|
|
1062
|
+
volumeName: string,
|
|
1063
|
+
body: PoolChangeRequest,
|
|
1064
|
+
options?: VolumesPoolChangeOptionalParams
|
|
1065
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
1066
|
+
const directSendOperation = async (
|
|
1067
|
+
args: coreClient.OperationArguments,
|
|
1068
|
+
spec: coreClient.OperationSpec
|
|
1069
|
+
): Promise<void> => {
|
|
1070
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1071
|
+
};
|
|
1072
|
+
const sendOperation = async (
|
|
1073
|
+
args: coreClient.OperationArguments,
|
|
1074
|
+
spec: coreClient.OperationSpec
|
|
1075
|
+
) => {
|
|
1076
|
+
let currentRawResponse:
|
|
1077
|
+
| coreClient.FullOperationResponse
|
|
1078
|
+
| undefined = undefined;
|
|
1079
|
+
const providedCallback = args.options?.onResponse;
|
|
1080
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1081
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1082
|
+
flatResponse: unknown
|
|
1083
|
+
) => {
|
|
1084
|
+
currentRawResponse = rawResponse;
|
|
1085
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1086
|
+
};
|
|
1087
|
+
const updatedArgs = {
|
|
1088
|
+
...args,
|
|
1089
|
+
options: {
|
|
1090
|
+
...args.options,
|
|
1091
|
+
onResponse: callback
|
|
1092
|
+
}
|
|
1093
|
+
};
|
|
1094
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1095
|
+
return {
|
|
1096
|
+
flatResponse,
|
|
1097
|
+
rawResponse: {
|
|
1098
|
+
statusCode: currentRawResponse!.status,
|
|
1099
|
+
body: currentRawResponse!.parsedBody,
|
|
1100
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1101
|
+
}
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
const lro = new LroImpl(
|
|
1106
|
+
sendOperation,
|
|
1107
|
+
{ resourceGroupName, accountName, poolName, volumeName, body, options },
|
|
1108
|
+
poolChangeOperationSpec
|
|
1109
|
+
);
|
|
1110
|
+
return new LroEngine(lro, {
|
|
1111
|
+
resumeFrom: options?.resumeFrom,
|
|
1112
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1113
|
+
lroResourceLocationConfig: "location"
|
|
1114
|
+
});
|
|
514
1115
|
}
|
|
515
1116
|
|
|
516
1117
|
/**
|
|
517
1118
|
* Moves volume to another pool
|
|
518
|
-
* @summary Change pool for volume
|
|
519
1119
|
* @param resourceGroupName The name of the resource group.
|
|
520
1120
|
* @param accountName The name of the NetApp account
|
|
521
1121
|
* @param poolName The name of the capacity pool
|
|
522
1122
|
* @param volumeName The name of the volume
|
|
523
|
-
* @param
|
|
524
|
-
* @param
|
|
525
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1123
|
+
* @param body Move volume to the pool supplied in the body of the operation.
|
|
1124
|
+
* @param options The options parameters.
|
|
526
1125
|
*/
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
1126
|
+
async beginPoolChangeAndWait(
|
|
1127
|
+
resourceGroupName: string,
|
|
1128
|
+
accountName: string,
|
|
1129
|
+
poolName: string,
|
|
1130
|
+
volumeName: string,
|
|
1131
|
+
body: PoolChangeRequest,
|
|
1132
|
+
options?: VolumesPoolChangeOptionalParams
|
|
1133
|
+
): Promise<void> {
|
|
1134
|
+
const poller = await this.beginPoolChange(
|
|
1135
|
+
resourceGroupName,
|
|
1136
|
+
accountName,
|
|
1137
|
+
poolName,
|
|
1138
|
+
volumeName,
|
|
1139
|
+
body,
|
|
1140
|
+
options
|
|
1141
|
+
);
|
|
1142
|
+
return poller.pollUntilDone();
|
|
539
1143
|
}
|
|
540
1144
|
|
|
541
1145
|
/**
|
|
542
|
-
*
|
|
543
|
-
* @
|
|
544
|
-
* @param
|
|
545
|
-
* @param
|
|
546
|
-
* @
|
|
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
|
|
1146
|
+
* ListNext
|
|
1147
|
+
* @param resourceGroupName The name of the resource group.
|
|
1148
|
+
* @param accountName The name of the NetApp account
|
|
1149
|
+
* @param poolName The name of the capacity pool
|
|
1150
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1151
|
+
* @param options The options parameters.
|
|
558
1152
|
*/
|
|
559
|
-
|
|
560
|
-
|
|
1153
|
+
private _listNext(
|
|
1154
|
+
resourceGroupName: string,
|
|
1155
|
+
accountName: string,
|
|
1156
|
+
poolName: string,
|
|
1157
|
+
nextLink: string,
|
|
1158
|
+
options?: VolumesListNextOptionalParams
|
|
1159
|
+
): Promise<VolumesListNextResponse> {
|
|
561
1160
|
return this.client.sendOperationRequest(
|
|
562
|
-
{
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
},
|
|
566
|
-
listNextOperationSpec,
|
|
567
|
-
callback) as Promise<Models.VolumesListNextResponse>;
|
|
1161
|
+
{ resourceGroupName, accountName, poolName, nextLink, options },
|
|
1162
|
+
listNextOperationSpec
|
|
1163
|
+
);
|
|
568
1164
|
}
|
|
569
1165
|
}
|
|
570
|
-
|
|
571
1166
|
// Operation Specifications
|
|
572
|
-
const serializer =
|
|
573
|
-
|
|
1167
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1168
|
+
|
|
1169
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
1170
|
+
path:
|
|
1171
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes",
|
|
574
1172
|
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
1173
|
responses: {
|
|
589
1174
|
200: {
|
|
590
1175
|
bodyMapper: Mappers.VolumeList
|
|
591
1176
|
},
|
|
592
|
-
default: {
|
|
593
|
-
bodyMapper: Mappers.CloudError
|
|
594
|
-
}
|
|
1177
|
+
default: {}
|
|
595
1178
|
},
|
|
596
|
-
|
|
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}",
|
|
1179
|
+
queryParameters: [Parameters.apiVersion],
|
|
602
1180
|
urlParameters: [
|
|
1181
|
+
Parameters.$host,
|
|
603
1182
|
Parameters.subscriptionId,
|
|
604
1183
|
Parameters.resourceGroupName,
|
|
605
1184
|
Parameters.accountName,
|
|
606
|
-
Parameters.poolName
|
|
607
|
-
Parameters.volumeName
|
|
608
|
-
],
|
|
609
|
-
queryParameters: [
|
|
610
|
-
Parameters.apiVersion
|
|
611
|
-
],
|
|
612
|
-
headerParameters: [
|
|
613
|
-
Parameters.acceptLanguage
|
|
1185
|
+
Parameters.poolName
|
|
614
1186
|
],
|
|
1187
|
+
headerParameters: [Parameters.accept],
|
|
1188
|
+
serializer
|
|
1189
|
+
};
|
|
1190
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
1191
|
+
path:
|
|
1192
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}",
|
|
1193
|
+
httpMethod: "GET",
|
|
615
1194
|
responses: {
|
|
616
1195
|
200: {
|
|
617
1196
|
bodyMapper: Mappers.Volume
|
|
618
1197
|
},
|
|
619
|
-
default: {
|
|
620
|
-
bodyMapper: Mappers.CloudError
|
|
621
|
-
}
|
|
1198
|
+
default: {}
|
|
622
1199
|
},
|
|
623
|
-
|
|
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",
|
|
1200
|
+
queryParameters: [Parameters.apiVersion],
|
|
629
1201
|
urlParameters: [
|
|
1202
|
+
Parameters.$host,
|
|
630
1203
|
Parameters.subscriptionId,
|
|
631
1204
|
Parameters.resourceGroupName,
|
|
632
1205
|
Parameters.accountName,
|
|
633
1206
|
Parameters.poolName,
|
|
634
1207
|
Parameters.volumeName
|
|
635
1208
|
],
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
1209
|
+
headerParameters: [Parameters.accept],
|
|
1210
|
+
serializer
|
|
1211
|
+
};
|
|
1212
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
1213
|
+
path:
|
|
1214
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}",
|
|
1215
|
+
httpMethod: "PUT",
|
|
642
1216
|
responses: {
|
|
643
1217
|
200: {
|
|
644
|
-
bodyMapper: Mappers.
|
|
1218
|
+
bodyMapper: Mappers.Volume
|
|
645
1219
|
},
|
|
646
|
-
|
|
647
|
-
bodyMapper: Mappers.
|
|
648
|
-
}
|
|
1220
|
+
201: {
|
|
1221
|
+
bodyMapper: Mappers.Volume
|
|
1222
|
+
},
|
|
1223
|
+
202: {
|
|
1224
|
+
bodyMapper: Mappers.Volume
|
|
1225
|
+
},
|
|
1226
|
+
204: {
|
|
1227
|
+
bodyMapper: Mappers.Volume
|
|
1228
|
+
},
|
|
1229
|
+
default: {}
|
|
649
1230
|
},
|
|
650
|
-
|
|
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}",
|
|
1231
|
+
requestBody: Parameters.body7,
|
|
1232
|
+
queryParameters: [Parameters.apiVersion],
|
|
656
1233
|
urlParameters: [
|
|
1234
|
+
Parameters.$host,
|
|
657
1235
|
Parameters.subscriptionId,
|
|
658
1236
|
Parameters.resourceGroupName,
|
|
659
1237
|
Parameters.accountName,
|
|
660
1238
|
Parameters.poolName,
|
|
661
1239
|
Parameters.volumeName
|
|
662
1240
|
],
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
mapper: {
|
|
672
|
-
...Mappers.Volume,
|
|
673
|
-
required: true
|
|
674
|
-
}
|
|
675
|
-
},
|
|
1241
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1242
|
+
mediaType: "json",
|
|
1243
|
+
serializer
|
|
1244
|
+
};
|
|
1245
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
1246
|
+
path:
|
|
1247
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}",
|
|
1248
|
+
httpMethod: "PATCH",
|
|
676
1249
|
responses: {
|
|
677
1250
|
200: {
|
|
678
1251
|
bodyMapper: Mappers.Volume
|
|
@@ -680,319 +1253,210 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
680
1253
|
201: {
|
|
681
1254
|
bodyMapper: Mappers.Volume
|
|
682
1255
|
},
|
|
683
|
-
202: {
|
|
1256
|
+
202: {
|
|
1257
|
+
bodyMapper: Mappers.Volume
|
|
1258
|
+
},
|
|
1259
|
+
204: {
|
|
1260
|
+
bodyMapper: Mappers.Volume
|
|
1261
|
+
},
|
|
684
1262
|
default: {
|
|
685
1263
|
bodyMapper: Mappers.CloudError
|
|
686
1264
|
}
|
|
687
1265
|
},
|
|
688
|
-
|
|
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}",
|
|
1266
|
+
requestBody: Parameters.body8,
|
|
1267
|
+
queryParameters: [Parameters.apiVersion],
|
|
694
1268
|
urlParameters: [
|
|
1269
|
+
Parameters.$host,
|
|
695
1270
|
Parameters.subscriptionId,
|
|
696
1271
|
Parameters.resourceGroupName,
|
|
697
1272
|
Parameters.accountName,
|
|
698
1273
|
Parameters.poolName,
|
|
699
1274
|
Parameters.volumeName
|
|
700
1275
|
],
|
|
701
|
-
|
|
702
|
-
|
|
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
|
-
},
|
|
1276
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1277
|
+
mediaType: "json",
|
|
723
1278
|
serializer
|
|
724
1279
|
};
|
|
725
|
-
|
|
726
|
-
|
|
1280
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
1281
|
+
path:
|
|
1282
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}",
|
|
727
1283
|
httpMethod: "DELETE",
|
|
728
|
-
|
|
1284
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
1285
|
+
queryParameters: [Parameters.apiVersion],
|
|
729
1286
|
urlParameters: [
|
|
1287
|
+
Parameters.$host,
|
|
730
1288
|
Parameters.subscriptionId,
|
|
731
1289
|
Parameters.resourceGroupName,
|
|
732
1290
|
Parameters.accountName,
|
|
733
1291
|
Parameters.poolName,
|
|
734
1292
|
Parameters.volumeName
|
|
735
1293
|
],
|
|
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
1294
|
serializer
|
|
750
1295
|
};
|
|
751
|
-
|
|
752
|
-
|
|
1296
|
+
const revertOperationSpec: coreClient.OperationSpec = {
|
|
1297
|
+
path:
|
|
1298
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert",
|
|
753
1299
|
httpMethod: "POST",
|
|
754
|
-
|
|
1300
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
1301
|
+
requestBody: Parameters.body9,
|
|
1302
|
+
queryParameters: [Parameters.apiVersion],
|
|
755
1303
|
urlParameters: [
|
|
1304
|
+
Parameters.$host,
|
|
756
1305
|
Parameters.subscriptionId,
|
|
757
1306
|
Parameters.resourceGroupName,
|
|
758
1307
|
Parameters.accountName,
|
|
759
1308
|
Parameters.poolName,
|
|
760
1309
|
Parameters.volumeName
|
|
761
1310
|
],
|
|
762
|
-
|
|
763
|
-
|
|
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
|
-
},
|
|
1311
|
+
headerParameters: [Parameters.contentType],
|
|
1312
|
+
mediaType: "json",
|
|
787
1313
|
serializer
|
|
788
1314
|
};
|
|
789
|
-
|
|
790
|
-
|
|
1315
|
+
const breakReplicationOperationSpec: coreClient.OperationSpec = {
|
|
1316
|
+
path:
|
|
1317
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication",
|
|
791
1318
|
httpMethod: "POST",
|
|
792
|
-
|
|
1319
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
1320
|
+
requestBody: Parameters.body10,
|
|
1321
|
+
queryParameters: [Parameters.apiVersion],
|
|
793
1322
|
urlParameters: [
|
|
1323
|
+
Parameters.$host,
|
|
794
1324
|
Parameters.subscriptionId,
|
|
795
1325
|
Parameters.resourceGroupName,
|
|
796
1326
|
Parameters.accountName,
|
|
797
1327
|
Parameters.poolName,
|
|
798
1328
|
Parameters.volumeName
|
|
799
1329
|
],
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
forceBreakReplication: [
|
|
809
|
-
"options",
|
|
810
|
-
"forceBreakReplication"
|
|
811
|
-
]
|
|
812
|
-
},
|
|
813
|
-
mapper: Mappers.BreakReplicationRequest
|
|
814
|
-
},
|
|
1330
|
+
headerParameters: [Parameters.contentType],
|
|
1331
|
+
mediaType: "json",
|
|
1332
|
+
serializer
|
|
1333
|
+
};
|
|
1334
|
+
const replicationStatusOperationSpec: coreClient.OperationSpec = {
|
|
1335
|
+
path:
|
|
1336
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus",
|
|
1337
|
+
httpMethod: "GET",
|
|
815
1338
|
responses: {
|
|
816
|
-
200: {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
}
|
|
1339
|
+
200: {
|
|
1340
|
+
bodyMapper: Mappers.ReplicationStatus
|
|
1341
|
+
},
|
|
1342
|
+
default: {}
|
|
821
1343
|
},
|
|
1344
|
+
queryParameters: [Parameters.apiVersion],
|
|
1345
|
+
urlParameters: [
|
|
1346
|
+
Parameters.$host,
|
|
1347
|
+
Parameters.subscriptionId,
|
|
1348
|
+
Parameters.resourceGroupName,
|
|
1349
|
+
Parameters.accountName,
|
|
1350
|
+
Parameters.poolName,
|
|
1351
|
+
Parameters.volumeName
|
|
1352
|
+
],
|
|
1353
|
+
headerParameters: [Parameters.accept],
|
|
822
1354
|
serializer
|
|
823
1355
|
};
|
|
824
|
-
|
|
825
|
-
|
|
1356
|
+
const resyncReplicationOperationSpec: coreClient.OperationSpec = {
|
|
1357
|
+
path:
|
|
1358
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication",
|
|
826
1359
|
httpMethod: "POST",
|
|
827
|
-
|
|
1360
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
1361
|
+
queryParameters: [Parameters.apiVersion],
|
|
828
1362
|
urlParameters: [
|
|
1363
|
+
Parameters.$host,
|
|
829
1364
|
Parameters.subscriptionId,
|
|
830
1365
|
Parameters.resourceGroupName,
|
|
831
1366
|
Parameters.accountName,
|
|
832
1367
|
Parameters.poolName,
|
|
833
1368
|
Parameters.volumeName
|
|
834
1369
|
],
|
|
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
1370
|
serializer
|
|
849
1371
|
};
|
|
850
|
-
|
|
851
|
-
|
|
1372
|
+
const deleteReplicationOperationSpec: coreClient.OperationSpec = {
|
|
1373
|
+
path:
|
|
1374
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication",
|
|
852
1375
|
httpMethod: "POST",
|
|
853
|
-
|
|
1376
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
1377
|
+
queryParameters: [Parameters.apiVersion],
|
|
854
1378
|
urlParameters: [
|
|
1379
|
+
Parameters.$host,
|
|
855
1380
|
Parameters.subscriptionId,
|
|
856
1381
|
Parameters.resourceGroupName,
|
|
857
1382
|
Parameters.accountName,
|
|
858
1383
|
Parameters.poolName,
|
|
859
1384
|
Parameters.volumeName
|
|
860
1385
|
],
|
|
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
1386
|
serializer
|
|
875
1387
|
};
|
|
876
|
-
|
|
877
|
-
|
|
1388
|
+
const authorizeReplicationOperationSpec: coreClient.OperationSpec = {
|
|
1389
|
+
path:
|
|
1390
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication",
|
|
878
1391
|
httpMethod: "POST",
|
|
879
|
-
|
|
1392
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
1393
|
+
requestBody: Parameters.body11,
|
|
1394
|
+
queryParameters: [Parameters.apiVersion],
|
|
880
1395
|
urlParameters: [
|
|
1396
|
+
Parameters.$host,
|
|
881
1397
|
Parameters.subscriptionId,
|
|
882
1398
|
Parameters.resourceGroupName,
|
|
883
1399
|
Parameters.accountName,
|
|
884
1400
|
Parameters.poolName,
|
|
885
1401
|
Parameters.volumeName
|
|
886
1402
|
],
|
|
887
|
-
|
|
888
|
-
|
|
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
|
-
},
|
|
1403
|
+
headerParameters: [Parameters.contentType],
|
|
1404
|
+
mediaType: "json",
|
|
912
1405
|
serializer
|
|
913
1406
|
};
|
|
914
|
-
|
|
915
|
-
|
|
1407
|
+
const reInitializeReplicationOperationSpec: coreClient.OperationSpec = {
|
|
1408
|
+
path:
|
|
1409
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication",
|
|
916
1410
|
httpMethod: "POST",
|
|
917
|
-
|
|
1411
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
1412
|
+
queryParameters: [Parameters.apiVersion],
|
|
918
1413
|
urlParameters: [
|
|
1414
|
+
Parameters.$host,
|
|
919
1415
|
Parameters.subscriptionId,
|
|
920
1416
|
Parameters.resourceGroupName,
|
|
921
1417
|
Parameters.accountName,
|
|
922
1418
|
Parameters.poolName,
|
|
923
1419
|
Parameters.volumeName
|
|
924
1420
|
],
|
|
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
1421
|
serializer
|
|
939
1422
|
};
|
|
940
|
-
|
|
941
|
-
|
|
1423
|
+
const poolChangeOperationSpec: coreClient.OperationSpec = {
|
|
1424
|
+
path:
|
|
1425
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange",
|
|
942
1426
|
httpMethod: "POST",
|
|
943
|
-
|
|
1427
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
1428
|
+
requestBody: Parameters.body12,
|
|
1429
|
+
queryParameters: [Parameters.apiVersion],
|
|
944
1430
|
urlParameters: [
|
|
1431
|
+
Parameters.$host,
|
|
945
1432
|
Parameters.subscriptionId,
|
|
946
1433
|
Parameters.resourceGroupName,
|
|
947
1434
|
Parameters.accountName,
|
|
948
1435
|
Parameters.poolName,
|
|
949
1436
|
Parameters.volumeName
|
|
950
1437
|
],
|
|
951
|
-
|
|
952
|
-
|
|
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
|
-
},
|
|
1438
|
+
headerParameters: [Parameters.contentType],
|
|
1439
|
+
mediaType: "json",
|
|
973
1440
|
serializer
|
|
974
1441
|
};
|
|
975
|
-
|
|
976
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
977
|
-
httpMethod: "GET",
|
|
978
|
-
baseUrl: "https://management.azure.com",
|
|
1442
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
979
1443
|
path: "{nextLink}",
|
|
980
|
-
|
|
981
|
-
Parameters.nextPageLink
|
|
982
|
-
],
|
|
983
|
-
queryParameters: [
|
|
984
|
-
Parameters.apiVersion
|
|
985
|
-
],
|
|
986
|
-
headerParameters: [
|
|
987
|
-
Parameters.acceptLanguage
|
|
988
|
-
],
|
|
1444
|
+
httpMethod: "GET",
|
|
989
1445
|
responses: {
|
|
990
1446
|
200: {
|
|
991
1447
|
bodyMapper: Mappers.VolumeList
|
|
992
1448
|
},
|
|
993
|
-
default: {
|
|
994
|
-
bodyMapper: Mappers.CloudError
|
|
995
|
-
}
|
|
1449
|
+
default: {}
|
|
996
1450
|
},
|
|
1451
|
+
queryParameters: [Parameters.apiVersion],
|
|
1452
|
+
urlParameters: [
|
|
1453
|
+
Parameters.$host,
|
|
1454
|
+
Parameters.subscriptionId,
|
|
1455
|
+
Parameters.resourceGroupName,
|
|
1456
|
+
Parameters.accountName,
|
|
1457
|
+
Parameters.nextLink,
|
|
1458
|
+
Parameters.poolName
|
|
1459
|
+
],
|
|
1460
|
+
headerParameters: [Parameters.accept],
|
|
997
1461
|
serializer
|
|
998
1462
|
};
|