@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
|
@@ -0,0 +1,956 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing Volumes operations. */
|
|
16
|
+
export class VolumesImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class Volumes class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* List all volumes within the capacity pool
|
|
26
|
+
* @param resourceGroupName The name of the resource group.
|
|
27
|
+
* @param accountName The name of the NetApp account
|
|
28
|
+
* @param poolName The name of the capacity pool
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
list(resourceGroupName, accountName, poolName, options) {
|
|
32
|
+
const iter = this.listPagingAll(resourceGroupName, accountName, poolName, options);
|
|
33
|
+
return {
|
|
34
|
+
next() {
|
|
35
|
+
return iter.next();
|
|
36
|
+
},
|
|
37
|
+
[Symbol.asyncIterator]() {
|
|
38
|
+
return this;
|
|
39
|
+
},
|
|
40
|
+
byPage: () => {
|
|
41
|
+
return this.listPagingPage(resourceGroupName, accountName, poolName, options);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
listPagingPage(resourceGroupName, accountName, poolName, options) {
|
|
46
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
47
|
+
let result = yield __await(this._list(resourceGroupName, accountName, poolName, options));
|
|
48
|
+
yield yield __await(result.value || []);
|
|
49
|
+
let continuationToken = result.nextLink;
|
|
50
|
+
while (continuationToken) {
|
|
51
|
+
result = yield __await(this._listNext(resourceGroupName, accountName, poolName, continuationToken, options));
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
yield yield __await(result.value || []);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
listPagingAll(resourceGroupName, accountName, poolName, options) {
|
|
58
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
59
|
+
var e_1, _a;
|
|
60
|
+
try {
|
|
61
|
+
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, poolName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
62
|
+
const page = _c.value;
|
|
63
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
+
finally {
|
|
68
|
+
try {
|
|
69
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
70
|
+
}
|
|
71
|
+
finally { if (e_1) throw e_1.error; }
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* List all volumes within the capacity pool
|
|
77
|
+
* @param resourceGroupName The name of the resource group.
|
|
78
|
+
* @param accountName The name of the NetApp account
|
|
79
|
+
* @param poolName The name of the capacity pool
|
|
80
|
+
* @param options The options parameters.
|
|
81
|
+
*/
|
|
82
|
+
_list(resourceGroupName, accountName, poolName, options) {
|
|
83
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, poolName, options }, listOperationSpec);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Get the details of the specified volume
|
|
87
|
+
* @param resourceGroupName The name of the resource group.
|
|
88
|
+
* @param accountName The name of the NetApp account
|
|
89
|
+
* @param poolName The name of the capacity pool
|
|
90
|
+
* @param volumeName The name of the volume
|
|
91
|
+
* @param options The options parameters.
|
|
92
|
+
*/
|
|
93
|
+
get(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
94
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, poolName, volumeName, options }, getOperationSpec);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Create or update the specified volume within the capacity pool
|
|
98
|
+
* @param resourceGroupName The name of the resource group.
|
|
99
|
+
* @param accountName The name of the NetApp account
|
|
100
|
+
* @param poolName The name of the capacity pool
|
|
101
|
+
* @param volumeName The name of the volume
|
|
102
|
+
* @param body Volume object supplied in the body of the operation.
|
|
103
|
+
* @param options The options parameters.
|
|
104
|
+
*/
|
|
105
|
+
beginCreateOrUpdate(resourceGroupName, accountName, poolName, volumeName, body, options) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
return this.client.sendOperationRequest(args, spec);
|
|
109
|
+
});
|
|
110
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
var _a;
|
|
112
|
+
let currentRawResponse = undefined;
|
|
113
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
114
|
+
const callback = (rawResponse, flatResponse) => {
|
|
115
|
+
currentRawResponse = rawResponse;
|
|
116
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
117
|
+
};
|
|
118
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
119
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
120
|
+
return {
|
|
121
|
+
flatResponse,
|
|
122
|
+
rawResponse: {
|
|
123
|
+
statusCode: currentRawResponse.status,
|
|
124
|
+
body: currentRawResponse.parsedBody,
|
|
125
|
+
headers: currentRawResponse.headers.toJSON()
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
});
|
|
129
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, poolName, volumeName, body, options }, createOrUpdateOperationSpec);
|
|
130
|
+
return new LroEngine(lro, {
|
|
131
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
132
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
133
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Create or update the specified volume within the capacity pool
|
|
139
|
+
* @param resourceGroupName The name of the resource group.
|
|
140
|
+
* @param accountName The name of the NetApp account
|
|
141
|
+
* @param poolName The name of the capacity pool
|
|
142
|
+
* @param volumeName The name of the volume
|
|
143
|
+
* @param body Volume object supplied in the body of the operation.
|
|
144
|
+
* @param options The options parameters.
|
|
145
|
+
*/
|
|
146
|
+
beginCreateOrUpdateAndWait(resourceGroupName, accountName, poolName, volumeName, body, options) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, accountName, poolName, volumeName, body, options);
|
|
149
|
+
return poller.pollUntilDone();
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Patch the specified volume
|
|
154
|
+
* @param resourceGroupName The name of the resource group.
|
|
155
|
+
* @param accountName The name of the NetApp account
|
|
156
|
+
* @param poolName The name of the capacity pool
|
|
157
|
+
* @param volumeName The name of the volume
|
|
158
|
+
* @param body Volume object supplied in the body of the operation.
|
|
159
|
+
* @param options The options parameters.
|
|
160
|
+
*/
|
|
161
|
+
beginUpdate(resourceGroupName, accountName, poolName, volumeName, body, options) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
return this.client.sendOperationRequest(args, spec);
|
|
165
|
+
});
|
|
166
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
var _a;
|
|
168
|
+
let currentRawResponse = undefined;
|
|
169
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
170
|
+
const callback = (rawResponse, flatResponse) => {
|
|
171
|
+
currentRawResponse = rawResponse;
|
|
172
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
173
|
+
};
|
|
174
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
175
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
176
|
+
return {
|
|
177
|
+
flatResponse,
|
|
178
|
+
rawResponse: {
|
|
179
|
+
statusCode: currentRawResponse.status,
|
|
180
|
+
body: currentRawResponse.parsedBody,
|
|
181
|
+
headers: currentRawResponse.headers.toJSON()
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
});
|
|
185
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, poolName, volumeName, body, options }, updateOperationSpec);
|
|
186
|
+
return new LroEngine(lro, {
|
|
187
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
188
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
189
|
+
lroResourceLocationConfig: "location"
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Patch the specified volume
|
|
195
|
+
* @param resourceGroupName The name of the resource group.
|
|
196
|
+
* @param accountName The name of the NetApp account
|
|
197
|
+
* @param poolName The name of the capacity pool
|
|
198
|
+
* @param volumeName The name of the volume
|
|
199
|
+
* @param body Volume object supplied in the body of the operation.
|
|
200
|
+
* @param options The options parameters.
|
|
201
|
+
*/
|
|
202
|
+
beginUpdateAndWait(resourceGroupName, accountName, poolName, volumeName, body, options) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
const poller = yield this.beginUpdate(resourceGroupName, accountName, poolName, volumeName, body, options);
|
|
205
|
+
return poller.pollUntilDone();
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Delete the specified volume
|
|
210
|
+
* @param resourceGroupName The name of the resource group.
|
|
211
|
+
* @param accountName The name of the NetApp account
|
|
212
|
+
* @param poolName The name of the capacity pool
|
|
213
|
+
* @param volumeName The name of the volume
|
|
214
|
+
* @param options The options parameters.
|
|
215
|
+
*/
|
|
216
|
+
beginDelete(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
219
|
+
return this.client.sendOperationRequest(args, spec);
|
|
220
|
+
});
|
|
221
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
222
|
+
var _a;
|
|
223
|
+
let currentRawResponse = undefined;
|
|
224
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
225
|
+
const callback = (rawResponse, flatResponse) => {
|
|
226
|
+
currentRawResponse = rawResponse;
|
|
227
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
228
|
+
};
|
|
229
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
230
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
231
|
+
return {
|
|
232
|
+
flatResponse,
|
|
233
|
+
rawResponse: {
|
|
234
|
+
statusCode: currentRawResponse.status,
|
|
235
|
+
body: currentRawResponse.parsedBody,
|
|
236
|
+
headers: currentRawResponse.headers.toJSON()
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
});
|
|
240
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, poolName, volumeName, options }, deleteOperationSpec);
|
|
241
|
+
return new LroEngine(lro, {
|
|
242
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
243
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
244
|
+
lroResourceLocationConfig: "location"
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Delete the specified volume
|
|
250
|
+
* @param resourceGroupName The name of the resource group.
|
|
251
|
+
* @param accountName The name of the NetApp account
|
|
252
|
+
* @param poolName The name of the capacity pool
|
|
253
|
+
* @param volumeName The name of the volume
|
|
254
|
+
* @param options The options parameters.
|
|
255
|
+
*/
|
|
256
|
+
beginDeleteAndWait(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
257
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
258
|
+
const poller = yield this.beginDelete(resourceGroupName, accountName, poolName, volumeName, options);
|
|
259
|
+
return poller.pollUntilDone();
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Revert a volume to the snapshot specified in the body
|
|
264
|
+
* @param resourceGroupName The name of the resource group.
|
|
265
|
+
* @param accountName The name of the NetApp account
|
|
266
|
+
* @param poolName The name of the capacity pool
|
|
267
|
+
* @param volumeName The name of the volume
|
|
268
|
+
* @param body Object for snapshot to revert supplied in the body of the operation.
|
|
269
|
+
* @param options The options parameters.
|
|
270
|
+
*/
|
|
271
|
+
beginRevert(resourceGroupName, accountName, poolName, volumeName, body, options) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
273
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
return this.client.sendOperationRequest(args, spec);
|
|
275
|
+
});
|
|
276
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
277
|
+
var _a;
|
|
278
|
+
let currentRawResponse = undefined;
|
|
279
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
280
|
+
const callback = (rawResponse, flatResponse) => {
|
|
281
|
+
currentRawResponse = rawResponse;
|
|
282
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
283
|
+
};
|
|
284
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
285
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
286
|
+
return {
|
|
287
|
+
flatResponse,
|
|
288
|
+
rawResponse: {
|
|
289
|
+
statusCode: currentRawResponse.status,
|
|
290
|
+
body: currentRawResponse.parsedBody,
|
|
291
|
+
headers: currentRawResponse.headers.toJSON()
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
});
|
|
295
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, poolName, volumeName, body, options }, revertOperationSpec);
|
|
296
|
+
return new LroEngine(lro, {
|
|
297
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
298
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
299
|
+
lroResourceLocationConfig: "location"
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Revert a volume to the snapshot specified in the body
|
|
305
|
+
* @param resourceGroupName The name of the resource group.
|
|
306
|
+
* @param accountName The name of the NetApp account
|
|
307
|
+
* @param poolName The name of the capacity pool
|
|
308
|
+
* @param volumeName The name of the volume
|
|
309
|
+
* @param body Object for snapshot to revert supplied in the body of the operation.
|
|
310
|
+
* @param options The options parameters.
|
|
311
|
+
*/
|
|
312
|
+
beginRevertAndWait(resourceGroupName, accountName, poolName, volumeName, body, options) {
|
|
313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
314
|
+
const poller = yield this.beginRevert(resourceGroupName, accountName, poolName, volumeName, body, options);
|
|
315
|
+
return poller.pollUntilDone();
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Break the replication connection on the destination volume
|
|
320
|
+
* @param resourceGroupName The name of the resource group.
|
|
321
|
+
* @param accountName The name of the NetApp account
|
|
322
|
+
* @param poolName The name of the capacity pool
|
|
323
|
+
* @param volumeName The name of the volume
|
|
324
|
+
* @param options The options parameters.
|
|
325
|
+
*/
|
|
326
|
+
beginBreakReplication(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
329
|
+
return this.client.sendOperationRequest(args, spec);
|
|
330
|
+
});
|
|
331
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
332
|
+
var _a;
|
|
333
|
+
let currentRawResponse = undefined;
|
|
334
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
335
|
+
const callback = (rawResponse, flatResponse) => {
|
|
336
|
+
currentRawResponse = rawResponse;
|
|
337
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
338
|
+
};
|
|
339
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
340
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
341
|
+
return {
|
|
342
|
+
flatResponse,
|
|
343
|
+
rawResponse: {
|
|
344
|
+
statusCode: currentRawResponse.status,
|
|
345
|
+
body: currentRawResponse.parsedBody,
|
|
346
|
+
headers: currentRawResponse.headers.toJSON()
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
});
|
|
350
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, poolName, volumeName, options }, breakReplicationOperationSpec);
|
|
351
|
+
return new LroEngine(lro, {
|
|
352
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
353
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
354
|
+
lroResourceLocationConfig: "location"
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Break the replication connection on the destination volume
|
|
360
|
+
* @param resourceGroupName The name of the resource group.
|
|
361
|
+
* @param accountName The name of the NetApp account
|
|
362
|
+
* @param poolName The name of the capacity pool
|
|
363
|
+
* @param volumeName The name of the volume
|
|
364
|
+
* @param options The options parameters.
|
|
365
|
+
*/
|
|
366
|
+
beginBreakReplicationAndWait(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
367
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
368
|
+
const poller = yield this.beginBreakReplication(resourceGroupName, accountName, poolName, volumeName, options);
|
|
369
|
+
return poller.pollUntilDone();
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Get the status of the replication
|
|
374
|
+
* @param resourceGroupName The name of the resource group.
|
|
375
|
+
* @param accountName The name of the NetApp account
|
|
376
|
+
* @param poolName The name of the capacity pool
|
|
377
|
+
* @param volumeName The name of the volume
|
|
378
|
+
* @param options The options parameters.
|
|
379
|
+
*/
|
|
380
|
+
replicationStatus(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
381
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, poolName, volumeName, options }, replicationStatusOperationSpec);
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Resync the connection on the destination volume. If the operation is ran on the source volume it
|
|
385
|
+
* will reverse-resync the connection and sync from destination to source.
|
|
386
|
+
* @param resourceGroupName The name of the resource group.
|
|
387
|
+
* @param accountName The name of the NetApp account
|
|
388
|
+
* @param poolName The name of the capacity pool
|
|
389
|
+
* @param volumeName The name of the volume
|
|
390
|
+
* @param options The options parameters.
|
|
391
|
+
*/
|
|
392
|
+
beginResyncReplication(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
394
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
395
|
+
return this.client.sendOperationRequest(args, spec);
|
|
396
|
+
});
|
|
397
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
398
|
+
var _a;
|
|
399
|
+
let currentRawResponse = undefined;
|
|
400
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
401
|
+
const callback = (rawResponse, flatResponse) => {
|
|
402
|
+
currentRawResponse = rawResponse;
|
|
403
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
404
|
+
};
|
|
405
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
406
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
407
|
+
return {
|
|
408
|
+
flatResponse,
|
|
409
|
+
rawResponse: {
|
|
410
|
+
statusCode: currentRawResponse.status,
|
|
411
|
+
body: currentRawResponse.parsedBody,
|
|
412
|
+
headers: currentRawResponse.headers.toJSON()
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
});
|
|
416
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, poolName, volumeName, options }, resyncReplicationOperationSpec);
|
|
417
|
+
return new LroEngine(lro, {
|
|
418
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
419
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
420
|
+
lroResourceLocationConfig: "location"
|
|
421
|
+
});
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Resync the connection on the destination volume. If the operation is ran on the source volume it
|
|
426
|
+
* will reverse-resync the connection and sync from destination to source.
|
|
427
|
+
* @param resourceGroupName The name of the resource group.
|
|
428
|
+
* @param accountName The name of the NetApp account
|
|
429
|
+
* @param poolName The name of the capacity pool
|
|
430
|
+
* @param volumeName The name of the volume
|
|
431
|
+
* @param options The options parameters.
|
|
432
|
+
*/
|
|
433
|
+
beginResyncReplicationAndWait(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
434
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
435
|
+
const poller = yield this.beginResyncReplication(resourceGroupName, accountName, poolName, volumeName, options);
|
|
436
|
+
return poller.pollUntilDone();
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Delete the replication connection on the destination volume, and send release to the source
|
|
441
|
+
* replication
|
|
442
|
+
* @param resourceGroupName The name of the resource group.
|
|
443
|
+
* @param accountName The name of the NetApp account
|
|
444
|
+
* @param poolName The name of the capacity pool
|
|
445
|
+
* @param volumeName The name of the volume
|
|
446
|
+
* @param options The options parameters.
|
|
447
|
+
*/
|
|
448
|
+
beginDeleteReplication(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
449
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
450
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
451
|
+
return this.client.sendOperationRequest(args, spec);
|
|
452
|
+
});
|
|
453
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
454
|
+
var _a;
|
|
455
|
+
let currentRawResponse = undefined;
|
|
456
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
457
|
+
const callback = (rawResponse, flatResponse) => {
|
|
458
|
+
currentRawResponse = rawResponse;
|
|
459
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
460
|
+
};
|
|
461
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
462
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
463
|
+
return {
|
|
464
|
+
flatResponse,
|
|
465
|
+
rawResponse: {
|
|
466
|
+
statusCode: currentRawResponse.status,
|
|
467
|
+
body: currentRawResponse.parsedBody,
|
|
468
|
+
headers: currentRawResponse.headers.toJSON()
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
});
|
|
472
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, poolName, volumeName, options }, deleteReplicationOperationSpec);
|
|
473
|
+
return new LroEngine(lro, {
|
|
474
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
475
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
476
|
+
lroResourceLocationConfig: "location"
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Delete the replication connection on the destination volume, and send release to the source
|
|
482
|
+
* replication
|
|
483
|
+
* @param resourceGroupName The name of the resource group.
|
|
484
|
+
* @param accountName The name of the NetApp account
|
|
485
|
+
* @param poolName The name of the capacity pool
|
|
486
|
+
* @param volumeName The name of the volume
|
|
487
|
+
* @param options The options parameters.
|
|
488
|
+
*/
|
|
489
|
+
beginDeleteReplicationAndWait(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
490
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
491
|
+
const poller = yield this.beginDeleteReplication(resourceGroupName, accountName, poolName, volumeName, options);
|
|
492
|
+
return poller.pollUntilDone();
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* Authorize the replication connection on the source volume
|
|
497
|
+
* @param resourceGroupName The name of the resource group.
|
|
498
|
+
* @param accountName The name of the NetApp account
|
|
499
|
+
* @param poolName The name of the capacity pool
|
|
500
|
+
* @param volumeName The name of the volume
|
|
501
|
+
* @param body Authorize request object supplied in the body of the operation.
|
|
502
|
+
* @param options The options parameters.
|
|
503
|
+
*/
|
|
504
|
+
beginAuthorizeReplication(resourceGroupName, accountName, poolName, volumeName, body, options) {
|
|
505
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
506
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
507
|
+
return this.client.sendOperationRequest(args, spec);
|
|
508
|
+
});
|
|
509
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
510
|
+
var _a;
|
|
511
|
+
let currentRawResponse = undefined;
|
|
512
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
513
|
+
const callback = (rawResponse, flatResponse) => {
|
|
514
|
+
currentRawResponse = rawResponse;
|
|
515
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
516
|
+
};
|
|
517
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
518
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
519
|
+
return {
|
|
520
|
+
flatResponse,
|
|
521
|
+
rawResponse: {
|
|
522
|
+
statusCode: currentRawResponse.status,
|
|
523
|
+
body: currentRawResponse.parsedBody,
|
|
524
|
+
headers: currentRawResponse.headers.toJSON()
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
});
|
|
528
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, poolName, volumeName, body, options }, authorizeReplicationOperationSpec);
|
|
529
|
+
return new LroEngine(lro, {
|
|
530
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
531
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
532
|
+
lroResourceLocationConfig: "location"
|
|
533
|
+
});
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Authorize the replication connection on the source volume
|
|
538
|
+
* @param resourceGroupName The name of the resource group.
|
|
539
|
+
* @param accountName The name of the NetApp account
|
|
540
|
+
* @param poolName The name of the capacity pool
|
|
541
|
+
* @param volumeName The name of the volume
|
|
542
|
+
* @param body Authorize request object supplied in the body of the operation.
|
|
543
|
+
* @param options The options parameters.
|
|
544
|
+
*/
|
|
545
|
+
beginAuthorizeReplicationAndWait(resourceGroupName, accountName, poolName, volumeName, body, options) {
|
|
546
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
547
|
+
const poller = yield this.beginAuthorizeReplication(resourceGroupName, accountName, poolName, volumeName, body, options);
|
|
548
|
+
return poller.pollUntilDone();
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Re-Initializes the replication connection on the destination volume
|
|
553
|
+
* @param resourceGroupName The name of the resource group.
|
|
554
|
+
* @param accountName The name of the NetApp account
|
|
555
|
+
* @param poolName The name of the capacity pool
|
|
556
|
+
* @param volumeName The name of the volume
|
|
557
|
+
* @param options The options parameters.
|
|
558
|
+
*/
|
|
559
|
+
beginReInitializeReplication(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
560
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
561
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
562
|
+
return this.client.sendOperationRequest(args, spec);
|
|
563
|
+
});
|
|
564
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
565
|
+
var _a;
|
|
566
|
+
let currentRawResponse = undefined;
|
|
567
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
568
|
+
const callback = (rawResponse, flatResponse) => {
|
|
569
|
+
currentRawResponse = rawResponse;
|
|
570
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
571
|
+
};
|
|
572
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
573
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
574
|
+
return {
|
|
575
|
+
flatResponse,
|
|
576
|
+
rawResponse: {
|
|
577
|
+
statusCode: currentRawResponse.status,
|
|
578
|
+
body: currentRawResponse.parsedBody,
|
|
579
|
+
headers: currentRawResponse.headers.toJSON()
|
|
580
|
+
}
|
|
581
|
+
};
|
|
582
|
+
});
|
|
583
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, poolName, volumeName, options }, reInitializeReplicationOperationSpec);
|
|
584
|
+
return new LroEngine(lro, {
|
|
585
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
586
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
587
|
+
lroResourceLocationConfig: "location"
|
|
588
|
+
});
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* Re-Initializes the replication connection on the destination volume
|
|
593
|
+
* @param resourceGroupName The name of the resource group.
|
|
594
|
+
* @param accountName The name of the NetApp account
|
|
595
|
+
* @param poolName The name of the capacity pool
|
|
596
|
+
* @param volumeName The name of the volume
|
|
597
|
+
* @param options The options parameters.
|
|
598
|
+
*/
|
|
599
|
+
beginReInitializeReplicationAndWait(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
600
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
601
|
+
const poller = yield this.beginReInitializeReplication(resourceGroupName, accountName, poolName, volumeName, options);
|
|
602
|
+
return poller.pollUntilDone();
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Moves volume to another pool
|
|
607
|
+
* @param resourceGroupName The name of the resource group.
|
|
608
|
+
* @param accountName The name of the NetApp account
|
|
609
|
+
* @param poolName The name of the capacity pool
|
|
610
|
+
* @param volumeName The name of the volume
|
|
611
|
+
* @param body Move volume to the pool supplied in the body of the operation.
|
|
612
|
+
* @param options The options parameters.
|
|
613
|
+
*/
|
|
614
|
+
beginPoolChange(resourceGroupName, accountName, poolName, volumeName, body, options) {
|
|
615
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
616
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
617
|
+
return this.client.sendOperationRequest(args, spec);
|
|
618
|
+
});
|
|
619
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
620
|
+
var _a;
|
|
621
|
+
let currentRawResponse = undefined;
|
|
622
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
623
|
+
const callback = (rawResponse, flatResponse) => {
|
|
624
|
+
currentRawResponse = rawResponse;
|
|
625
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
626
|
+
};
|
|
627
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
628
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
629
|
+
return {
|
|
630
|
+
flatResponse,
|
|
631
|
+
rawResponse: {
|
|
632
|
+
statusCode: currentRawResponse.status,
|
|
633
|
+
body: currentRawResponse.parsedBody,
|
|
634
|
+
headers: currentRawResponse.headers.toJSON()
|
|
635
|
+
}
|
|
636
|
+
};
|
|
637
|
+
});
|
|
638
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, poolName, volumeName, body, options }, poolChangeOperationSpec);
|
|
639
|
+
return new LroEngine(lro, {
|
|
640
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
641
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
642
|
+
lroResourceLocationConfig: "location"
|
|
643
|
+
});
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* Moves volume to another pool
|
|
648
|
+
* @param resourceGroupName The name of the resource group.
|
|
649
|
+
* @param accountName The name of the NetApp account
|
|
650
|
+
* @param poolName The name of the capacity pool
|
|
651
|
+
* @param volumeName The name of the volume
|
|
652
|
+
* @param body Move volume to the pool supplied in the body of the operation.
|
|
653
|
+
* @param options The options parameters.
|
|
654
|
+
*/
|
|
655
|
+
beginPoolChangeAndWait(resourceGroupName, accountName, poolName, volumeName, body, options) {
|
|
656
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
657
|
+
const poller = yield this.beginPoolChange(resourceGroupName, accountName, poolName, volumeName, body, options);
|
|
658
|
+
return poller.pollUntilDone();
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* ListNext
|
|
663
|
+
* @param resourceGroupName The name of the resource group.
|
|
664
|
+
* @param accountName The name of the NetApp account
|
|
665
|
+
* @param poolName The name of the capacity pool
|
|
666
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
667
|
+
* @param options The options parameters.
|
|
668
|
+
*/
|
|
669
|
+
_listNext(resourceGroupName, accountName, poolName, nextLink, options) {
|
|
670
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, poolName, nextLink, options }, listNextOperationSpec);
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
// Operation Specifications
|
|
674
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
675
|
+
const listOperationSpec = {
|
|
676
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes",
|
|
677
|
+
httpMethod: "GET",
|
|
678
|
+
responses: {
|
|
679
|
+
200: {
|
|
680
|
+
bodyMapper: Mappers.VolumeList
|
|
681
|
+
},
|
|
682
|
+
default: {}
|
|
683
|
+
},
|
|
684
|
+
queryParameters: [Parameters.apiVersion],
|
|
685
|
+
urlParameters: [
|
|
686
|
+
Parameters.$host,
|
|
687
|
+
Parameters.subscriptionId,
|
|
688
|
+
Parameters.resourceGroupName,
|
|
689
|
+
Parameters.accountName,
|
|
690
|
+
Parameters.poolName
|
|
691
|
+
],
|
|
692
|
+
headerParameters: [Parameters.accept],
|
|
693
|
+
serializer
|
|
694
|
+
};
|
|
695
|
+
const getOperationSpec = {
|
|
696
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}",
|
|
697
|
+
httpMethod: "GET",
|
|
698
|
+
responses: {
|
|
699
|
+
200: {
|
|
700
|
+
bodyMapper: Mappers.Volume
|
|
701
|
+
},
|
|
702
|
+
default: {}
|
|
703
|
+
},
|
|
704
|
+
queryParameters: [Parameters.apiVersion],
|
|
705
|
+
urlParameters: [
|
|
706
|
+
Parameters.$host,
|
|
707
|
+
Parameters.subscriptionId,
|
|
708
|
+
Parameters.resourceGroupName,
|
|
709
|
+
Parameters.accountName,
|
|
710
|
+
Parameters.poolName,
|
|
711
|
+
Parameters.volumeName
|
|
712
|
+
],
|
|
713
|
+
headerParameters: [Parameters.accept],
|
|
714
|
+
serializer
|
|
715
|
+
};
|
|
716
|
+
const createOrUpdateOperationSpec = {
|
|
717
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}",
|
|
718
|
+
httpMethod: "PUT",
|
|
719
|
+
responses: {
|
|
720
|
+
200: {
|
|
721
|
+
bodyMapper: Mappers.Volume
|
|
722
|
+
},
|
|
723
|
+
201: {
|
|
724
|
+
bodyMapper: Mappers.Volume
|
|
725
|
+
},
|
|
726
|
+
202: {
|
|
727
|
+
bodyMapper: Mappers.Volume
|
|
728
|
+
},
|
|
729
|
+
204: {
|
|
730
|
+
bodyMapper: Mappers.Volume
|
|
731
|
+
},
|
|
732
|
+
default: {}
|
|
733
|
+
},
|
|
734
|
+
requestBody: Parameters.body7,
|
|
735
|
+
queryParameters: [Parameters.apiVersion],
|
|
736
|
+
urlParameters: [
|
|
737
|
+
Parameters.$host,
|
|
738
|
+
Parameters.subscriptionId,
|
|
739
|
+
Parameters.resourceGroupName,
|
|
740
|
+
Parameters.accountName,
|
|
741
|
+
Parameters.poolName,
|
|
742
|
+
Parameters.volumeName
|
|
743
|
+
],
|
|
744
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
745
|
+
mediaType: "json",
|
|
746
|
+
serializer
|
|
747
|
+
};
|
|
748
|
+
const updateOperationSpec = {
|
|
749
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}",
|
|
750
|
+
httpMethod: "PATCH",
|
|
751
|
+
responses: {
|
|
752
|
+
200: {
|
|
753
|
+
bodyMapper: Mappers.Volume
|
|
754
|
+
},
|
|
755
|
+
201: {
|
|
756
|
+
bodyMapper: Mappers.Volume
|
|
757
|
+
},
|
|
758
|
+
202: {
|
|
759
|
+
bodyMapper: Mappers.Volume
|
|
760
|
+
},
|
|
761
|
+
204: {
|
|
762
|
+
bodyMapper: Mappers.Volume
|
|
763
|
+
},
|
|
764
|
+
default: {
|
|
765
|
+
bodyMapper: Mappers.CloudError
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
requestBody: Parameters.body8,
|
|
769
|
+
queryParameters: [Parameters.apiVersion],
|
|
770
|
+
urlParameters: [
|
|
771
|
+
Parameters.$host,
|
|
772
|
+
Parameters.subscriptionId,
|
|
773
|
+
Parameters.resourceGroupName,
|
|
774
|
+
Parameters.accountName,
|
|
775
|
+
Parameters.poolName,
|
|
776
|
+
Parameters.volumeName
|
|
777
|
+
],
|
|
778
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
779
|
+
mediaType: "json",
|
|
780
|
+
serializer
|
|
781
|
+
};
|
|
782
|
+
const deleteOperationSpec = {
|
|
783
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}",
|
|
784
|
+
httpMethod: "DELETE",
|
|
785
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
786
|
+
queryParameters: [Parameters.apiVersion],
|
|
787
|
+
urlParameters: [
|
|
788
|
+
Parameters.$host,
|
|
789
|
+
Parameters.subscriptionId,
|
|
790
|
+
Parameters.resourceGroupName,
|
|
791
|
+
Parameters.accountName,
|
|
792
|
+
Parameters.poolName,
|
|
793
|
+
Parameters.volumeName
|
|
794
|
+
],
|
|
795
|
+
serializer
|
|
796
|
+
};
|
|
797
|
+
const revertOperationSpec = {
|
|
798
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert",
|
|
799
|
+
httpMethod: "POST",
|
|
800
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
801
|
+
requestBody: Parameters.body9,
|
|
802
|
+
queryParameters: [Parameters.apiVersion],
|
|
803
|
+
urlParameters: [
|
|
804
|
+
Parameters.$host,
|
|
805
|
+
Parameters.subscriptionId,
|
|
806
|
+
Parameters.resourceGroupName,
|
|
807
|
+
Parameters.accountName,
|
|
808
|
+
Parameters.poolName,
|
|
809
|
+
Parameters.volumeName
|
|
810
|
+
],
|
|
811
|
+
headerParameters: [Parameters.contentType],
|
|
812
|
+
mediaType: "json",
|
|
813
|
+
serializer
|
|
814
|
+
};
|
|
815
|
+
const breakReplicationOperationSpec = {
|
|
816
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication",
|
|
817
|
+
httpMethod: "POST",
|
|
818
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
819
|
+
requestBody: Parameters.body10,
|
|
820
|
+
queryParameters: [Parameters.apiVersion],
|
|
821
|
+
urlParameters: [
|
|
822
|
+
Parameters.$host,
|
|
823
|
+
Parameters.subscriptionId,
|
|
824
|
+
Parameters.resourceGroupName,
|
|
825
|
+
Parameters.accountName,
|
|
826
|
+
Parameters.poolName,
|
|
827
|
+
Parameters.volumeName
|
|
828
|
+
],
|
|
829
|
+
headerParameters: [Parameters.contentType],
|
|
830
|
+
mediaType: "json",
|
|
831
|
+
serializer
|
|
832
|
+
};
|
|
833
|
+
const replicationStatusOperationSpec = {
|
|
834
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus",
|
|
835
|
+
httpMethod: "GET",
|
|
836
|
+
responses: {
|
|
837
|
+
200: {
|
|
838
|
+
bodyMapper: Mappers.ReplicationStatus
|
|
839
|
+
},
|
|
840
|
+
default: {}
|
|
841
|
+
},
|
|
842
|
+
queryParameters: [Parameters.apiVersion],
|
|
843
|
+
urlParameters: [
|
|
844
|
+
Parameters.$host,
|
|
845
|
+
Parameters.subscriptionId,
|
|
846
|
+
Parameters.resourceGroupName,
|
|
847
|
+
Parameters.accountName,
|
|
848
|
+
Parameters.poolName,
|
|
849
|
+
Parameters.volumeName
|
|
850
|
+
],
|
|
851
|
+
headerParameters: [Parameters.accept],
|
|
852
|
+
serializer
|
|
853
|
+
};
|
|
854
|
+
const resyncReplicationOperationSpec = {
|
|
855
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication",
|
|
856
|
+
httpMethod: "POST",
|
|
857
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
858
|
+
queryParameters: [Parameters.apiVersion],
|
|
859
|
+
urlParameters: [
|
|
860
|
+
Parameters.$host,
|
|
861
|
+
Parameters.subscriptionId,
|
|
862
|
+
Parameters.resourceGroupName,
|
|
863
|
+
Parameters.accountName,
|
|
864
|
+
Parameters.poolName,
|
|
865
|
+
Parameters.volumeName
|
|
866
|
+
],
|
|
867
|
+
serializer
|
|
868
|
+
};
|
|
869
|
+
const deleteReplicationOperationSpec = {
|
|
870
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication",
|
|
871
|
+
httpMethod: "POST",
|
|
872
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
873
|
+
queryParameters: [Parameters.apiVersion],
|
|
874
|
+
urlParameters: [
|
|
875
|
+
Parameters.$host,
|
|
876
|
+
Parameters.subscriptionId,
|
|
877
|
+
Parameters.resourceGroupName,
|
|
878
|
+
Parameters.accountName,
|
|
879
|
+
Parameters.poolName,
|
|
880
|
+
Parameters.volumeName
|
|
881
|
+
],
|
|
882
|
+
serializer
|
|
883
|
+
};
|
|
884
|
+
const authorizeReplicationOperationSpec = {
|
|
885
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication",
|
|
886
|
+
httpMethod: "POST",
|
|
887
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
888
|
+
requestBody: Parameters.body11,
|
|
889
|
+
queryParameters: [Parameters.apiVersion],
|
|
890
|
+
urlParameters: [
|
|
891
|
+
Parameters.$host,
|
|
892
|
+
Parameters.subscriptionId,
|
|
893
|
+
Parameters.resourceGroupName,
|
|
894
|
+
Parameters.accountName,
|
|
895
|
+
Parameters.poolName,
|
|
896
|
+
Parameters.volumeName
|
|
897
|
+
],
|
|
898
|
+
headerParameters: [Parameters.contentType],
|
|
899
|
+
mediaType: "json",
|
|
900
|
+
serializer
|
|
901
|
+
};
|
|
902
|
+
const reInitializeReplicationOperationSpec = {
|
|
903
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication",
|
|
904
|
+
httpMethod: "POST",
|
|
905
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
906
|
+
queryParameters: [Parameters.apiVersion],
|
|
907
|
+
urlParameters: [
|
|
908
|
+
Parameters.$host,
|
|
909
|
+
Parameters.subscriptionId,
|
|
910
|
+
Parameters.resourceGroupName,
|
|
911
|
+
Parameters.accountName,
|
|
912
|
+
Parameters.poolName,
|
|
913
|
+
Parameters.volumeName
|
|
914
|
+
],
|
|
915
|
+
serializer
|
|
916
|
+
};
|
|
917
|
+
const poolChangeOperationSpec = {
|
|
918
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange",
|
|
919
|
+
httpMethod: "POST",
|
|
920
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
921
|
+
requestBody: Parameters.body12,
|
|
922
|
+
queryParameters: [Parameters.apiVersion],
|
|
923
|
+
urlParameters: [
|
|
924
|
+
Parameters.$host,
|
|
925
|
+
Parameters.subscriptionId,
|
|
926
|
+
Parameters.resourceGroupName,
|
|
927
|
+
Parameters.accountName,
|
|
928
|
+
Parameters.poolName,
|
|
929
|
+
Parameters.volumeName
|
|
930
|
+
],
|
|
931
|
+
headerParameters: [Parameters.contentType],
|
|
932
|
+
mediaType: "json",
|
|
933
|
+
serializer
|
|
934
|
+
};
|
|
935
|
+
const listNextOperationSpec = {
|
|
936
|
+
path: "{nextLink}",
|
|
937
|
+
httpMethod: "GET",
|
|
938
|
+
responses: {
|
|
939
|
+
200: {
|
|
940
|
+
bodyMapper: Mappers.VolumeList
|
|
941
|
+
},
|
|
942
|
+
default: {}
|
|
943
|
+
},
|
|
944
|
+
queryParameters: [Parameters.apiVersion],
|
|
945
|
+
urlParameters: [
|
|
946
|
+
Parameters.$host,
|
|
947
|
+
Parameters.subscriptionId,
|
|
948
|
+
Parameters.resourceGroupName,
|
|
949
|
+
Parameters.accountName,
|
|
950
|
+
Parameters.nextLink,
|
|
951
|
+
Parameters.poolName
|
|
952
|
+
],
|
|
953
|
+
headerParameters: [Parameters.accept],
|
|
954
|
+
serializer
|
|
955
|
+
};
|
|
956
|
+
//# sourceMappingURL=volumes.js.map
|