@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
package/src/operations/pools.ts
CHANGED
|
@@ -3,315 +3,515 @@
|
|
|
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 { Pools } 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
|
+
CapacityPool,
|
|
19
|
+
PoolsListNextOptionalParams,
|
|
20
|
+
PoolsListOptionalParams,
|
|
21
|
+
PoolsListResponse,
|
|
22
|
+
PoolsGetOptionalParams,
|
|
23
|
+
PoolsGetResponse,
|
|
24
|
+
PoolsCreateOrUpdateOptionalParams,
|
|
25
|
+
PoolsCreateOrUpdateResponse,
|
|
26
|
+
CapacityPoolPatch,
|
|
27
|
+
PoolsUpdateOptionalParams,
|
|
28
|
+
PoolsUpdateResponse,
|
|
29
|
+
PoolsDeleteOptionalParams,
|
|
30
|
+
PoolsListNextResponse
|
|
31
|
+
} from "../models";
|
|
16
32
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
33
|
+
/// <reference lib="esnext.asynciterable" />
|
|
34
|
+
/** Class containing Pools operations. */
|
|
35
|
+
export class PoolsImpl implements Pools {
|
|
36
|
+
private readonly client: NetAppManagementClient;
|
|
20
37
|
|
|
21
38
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
39
|
+
* Initialize a new instance of the class Pools class.
|
|
40
|
+
* @param client Reference to the service client
|
|
24
41
|
*/
|
|
25
|
-
constructor(client:
|
|
42
|
+
constructor(client: NetAppManagementClient) {
|
|
26
43
|
this.client = client;
|
|
27
44
|
}
|
|
28
45
|
|
|
29
46
|
/**
|
|
30
47
|
* List all capacity pools in the NetApp Account
|
|
31
|
-
* @summary Describe all Capacity Pools
|
|
32
48
|
* @param resourceGroupName The name of the resource group.
|
|
33
49
|
* @param accountName The name of the NetApp account
|
|
34
|
-
* @param
|
|
35
|
-
* @returns Promise<Models.PoolsListResponse>
|
|
50
|
+
* @param options The options parameters.
|
|
36
51
|
*/
|
|
37
|
-
list(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
public list(
|
|
53
|
+
resourceGroupName: string,
|
|
54
|
+
accountName: string,
|
|
55
|
+
options?: PoolsListOptionalParams
|
|
56
|
+
): PagedAsyncIterableIterator<CapacityPool> {
|
|
57
|
+
const iter = this.listPagingAll(resourceGroupName, accountName, options);
|
|
58
|
+
return {
|
|
59
|
+
next() {
|
|
60
|
+
return iter.next();
|
|
61
|
+
},
|
|
62
|
+
[Symbol.asyncIterator]() {
|
|
63
|
+
return this;
|
|
64
|
+
},
|
|
65
|
+
byPage: () => {
|
|
66
|
+
return this.listPagingPage(resourceGroupName, accountName, options);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
private async *listPagingPage(
|
|
72
|
+
resourceGroupName: string,
|
|
73
|
+
accountName: string,
|
|
74
|
+
options?: PoolsListOptionalParams
|
|
75
|
+
): AsyncIterableIterator<CapacityPool[]> {
|
|
76
|
+
let result = await this._list(resourceGroupName, accountName, options);
|
|
77
|
+
yield result.value || [];
|
|
78
|
+
let continuationToken = result.nextLink;
|
|
79
|
+
while (continuationToken) {
|
|
80
|
+
result = await this._listNext(
|
|
54
81
|
resourceGroupName,
|
|
55
82
|
accountName,
|
|
83
|
+
continuationToken,
|
|
56
84
|
options
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
85
|
+
);
|
|
86
|
+
continuationToken = result.nextLink;
|
|
87
|
+
yield result.value || [];
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
private async *listPagingAll(
|
|
92
|
+
resourceGroupName: string,
|
|
93
|
+
accountName: string,
|
|
94
|
+
options?: PoolsListOptionalParams
|
|
95
|
+
): AsyncIterableIterator<CapacityPool> {
|
|
96
|
+
for await (const page of this.listPagingPage(
|
|
97
|
+
resourceGroupName,
|
|
98
|
+
accountName,
|
|
99
|
+
options
|
|
100
|
+
)) {
|
|
101
|
+
yield* page;
|
|
102
|
+
}
|
|
60
103
|
}
|
|
61
104
|
|
|
62
105
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @summary Describe a Capacity Pool
|
|
65
|
-
* @param resourceGroupName The name of the resource group.
|
|
66
|
-
* @param accountName The name of the NetApp account
|
|
67
|
-
* @param poolName The name of the capacity pool
|
|
68
|
-
* @param [options] The optional parameters
|
|
69
|
-
* @returns Promise<Models.PoolsGetResponse>
|
|
70
|
-
*/
|
|
71
|
-
get(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise<Models.PoolsGetResponse>;
|
|
72
|
-
/**
|
|
106
|
+
* List all capacity pools in the NetApp Account
|
|
73
107
|
* @param resourceGroupName The name of the resource group.
|
|
74
108
|
* @param accountName The name of the NetApp account
|
|
75
|
-
* @param
|
|
76
|
-
* @param callback The callback
|
|
109
|
+
* @param options The options parameters.
|
|
77
110
|
*/
|
|
78
|
-
|
|
111
|
+
private _list(
|
|
112
|
+
resourceGroupName: string,
|
|
113
|
+
accountName: string,
|
|
114
|
+
options?: PoolsListOptionalParams
|
|
115
|
+
): Promise<PoolsListResponse> {
|
|
116
|
+
return this.client.sendOperationRequest(
|
|
117
|
+
{ resourceGroupName, accountName, options },
|
|
118
|
+
listOperationSpec
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
79
122
|
/**
|
|
123
|
+
* Get details of the specified capacity pool
|
|
80
124
|
* @param resourceGroupName The name of the resource group.
|
|
81
125
|
* @param accountName The name of the NetApp account
|
|
82
126
|
* @param poolName The name of the capacity pool
|
|
83
|
-
* @param options The
|
|
84
|
-
* @param callback The callback
|
|
127
|
+
* @param options The options parameters.
|
|
85
128
|
*/
|
|
86
|
-
get(
|
|
87
|
-
|
|
129
|
+
get(
|
|
130
|
+
resourceGroupName: string,
|
|
131
|
+
accountName: string,
|
|
132
|
+
poolName: string,
|
|
133
|
+
options?: PoolsGetOptionalParams
|
|
134
|
+
): Promise<PoolsGetResponse> {
|
|
88
135
|
return this.client.sendOperationRequest(
|
|
89
|
-
{
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
poolName,
|
|
93
|
-
options
|
|
94
|
-
},
|
|
95
|
-
getOperationSpec,
|
|
96
|
-
callback) as Promise<Models.PoolsGetResponse>;
|
|
136
|
+
{ resourceGroupName, accountName, poolName, options },
|
|
137
|
+
getOperationSpec
|
|
138
|
+
);
|
|
97
139
|
}
|
|
98
140
|
|
|
99
141
|
/**
|
|
100
142
|
* Create or Update a capacity pool
|
|
101
|
-
* @summary Create or Update the specified capacity pool within the resource group
|
|
102
|
-
* @param body Capacity pool object supplied in the body of the operation.
|
|
103
143
|
* @param resourceGroupName The name of the resource group.
|
|
104
144
|
* @param accountName The name of the NetApp account
|
|
105
145
|
* @param poolName The name of the capacity pool
|
|
106
|
-
* @param
|
|
107
|
-
* @
|
|
146
|
+
* @param body Capacity pool object supplied in the body of the operation.
|
|
147
|
+
* @param options The options parameters.
|
|
108
148
|
*/
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
149
|
+
async beginCreateOrUpdate(
|
|
150
|
+
resourceGroupName: string,
|
|
151
|
+
accountName: string,
|
|
152
|
+
poolName: string,
|
|
153
|
+
body: CapacityPool,
|
|
154
|
+
options?: PoolsCreateOrUpdateOptionalParams
|
|
155
|
+
): Promise<
|
|
156
|
+
PollerLike<
|
|
157
|
+
PollOperationState<PoolsCreateOrUpdateResponse>,
|
|
158
|
+
PoolsCreateOrUpdateResponse
|
|
159
|
+
>
|
|
160
|
+
> {
|
|
161
|
+
const directSendOperation = async (
|
|
162
|
+
args: coreClient.OperationArguments,
|
|
163
|
+
spec: coreClient.OperationSpec
|
|
164
|
+
): Promise<PoolsCreateOrUpdateResponse> => {
|
|
165
|
+
return this.client.sendOperationRequest(args, spec);
|
|
166
|
+
};
|
|
167
|
+
const sendOperation = async (
|
|
168
|
+
args: coreClient.OperationArguments,
|
|
169
|
+
spec: coreClient.OperationSpec
|
|
170
|
+
) => {
|
|
171
|
+
let currentRawResponse:
|
|
172
|
+
| coreClient.FullOperationResponse
|
|
173
|
+
| undefined = undefined;
|
|
174
|
+
const providedCallback = args.options?.onResponse;
|
|
175
|
+
const callback: coreClient.RawResponseCallback = (
|
|
176
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
177
|
+
flatResponse: unknown
|
|
178
|
+
) => {
|
|
179
|
+
currentRawResponse = rawResponse;
|
|
180
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
181
|
+
};
|
|
182
|
+
const updatedArgs = {
|
|
183
|
+
...args,
|
|
184
|
+
options: {
|
|
185
|
+
...args.options,
|
|
186
|
+
onResponse: callback
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
190
|
+
return {
|
|
191
|
+
flatResponse,
|
|
192
|
+
rawResponse: {
|
|
193
|
+
statusCode: currentRawResponse!.status,
|
|
194
|
+
body: currentRawResponse!.parsedBody,
|
|
195
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
const lro = new LroImpl(
|
|
201
|
+
sendOperation,
|
|
202
|
+
{ resourceGroupName, accountName, poolName, body, options },
|
|
203
|
+
createOrUpdateOperationSpec
|
|
204
|
+
);
|
|
205
|
+
return new LroEngine(lro, {
|
|
206
|
+
resumeFrom: options?.resumeFrom,
|
|
207
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
208
|
+
lroResourceLocationConfig: "location"
|
|
209
|
+
});
|
|
112
210
|
}
|
|
113
211
|
|
|
114
212
|
/**
|
|
115
|
-
*
|
|
116
|
-
* @summary Update a capacity pool
|
|
117
|
-
* @param body Capacity pool object supplied in the body of the operation.
|
|
213
|
+
* Create or Update a capacity pool
|
|
118
214
|
* @param resourceGroupName The name of the resource group.
|
|
119
215
|
* @param accountName The name of the NetApp account
|
|
120
216
|
* @param poolName The name of the capacity pool
|
|
121
|
-
* @param
|
|
122
|
-
* @
|
|
217
|
+
* @param body Capacity pool object supplied in the body of the operation.
|
|
218
|
+
* @param options The options parameters.
|
|
123
219
|
*/
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
220
|
+
async beginCreateOrUpdateAndWait(
|
|
221
|
+
resourceGroupName: string,
|
|
222
|
+
accountName: string,
|
|
223
|
+
poolName: string,
|
|
224
|
+
body: CapacityPool,
|
|
225
|
+
options?: PoolsCreateOrUpdateOptionalParams
|
|
226
|
+
): Promise<PoolsCreateOrUpdateResponse> {
|
|
227
|
+
const poller = await this.beginCreateOrUpdate(
|
|
228
|
+
resourceGroupName,
|
|
229
|
+
accountName,
|
|
230
|
+
poolName,
|
|
231
|
+
body,
|
|
232
|
+
options
|
|
233
|
+
);
|
|
234
|
+
return poller.pollUntilDone();
|
|
127
235
|
}
|
|
128
236
|
|
|
129
237
|
/**
|
|
130
|
-
*
|
|
131
|
-
* @summary Delete a capacity pool
|
|
238
|
+
* Patch the specified capacity pool
|
|
132
239
|
* @param resourceGroupName The name of the resource group.
|
|
133
240
|
* @param accountName The name of the NetApp account
|
|
134
241
|
* @param poolName The name of the capacity pool
|
|
135
|
-
* @param
|
|
136
|
-
* @
|
|
242
|
+
* @param body Capacity pool object supplied in the body of the operation.
|
|
243
|
+
* @param options The options parameters.
|
|
137
244
|
*/
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
245
|
+
async beginUpdate(
|
|
246
|
+
resourceGroupName: string,
|
|
247
|
+
accountName: string,
|
|
248
|
+
poolName: string,
|
|
249
|
+
body: CapacityPoolPatch,
|
|
250
|
+
options?: PoolsUpdateOptionalParams
|
|
251
|
+
): Promise<
|
|
252
|
+
PollerLike<PollOperationState<PoolsUpdateResponse>, PoolsUpdateResponse>
|
|
253
|
+
> {
|
|
254
|
+
const directSendOperation = async (
|
|
255
|
+
args: coreClient.OperationArguments,
|
|
256
|
+
spec: coreClient.OperationSpec
|
|
257
|
+
): Promise<PoolsUpdateResponse> => {
|
|
258
|
+
return this.client.sendOperationRequest(args, spec);
|
|
259
|
+
};
|
|
260
|
+
const sendOperation = async (
|
|
261
|
+
args: coreClient.OperationArguments,
|
|
262
|
+
spec: coreClient.OperationSpec
|
|
263
|
+
) => {
|
|
264
|
+
let currentRawResponse:
|
|
265
|
+
| coreClient.FullOperationResponse
|
|
266
|
+
| undefined = undefined;
|
|
267
|
+
const providedCallback = args.options?.onResponse;
|
|
268
|
+
const callback: coreClient.RawResponseCallback = (
|
|
269
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
270
|
+
flatResponse: unknown
|
|
271
|
+
) => {
|
|
272
|
+
currentRawResponse = rawResponse;
|
|
273
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
274
|
+
};
|
|
275
|
+
const updatedArgs = {
|
|
276
|
+
...args,
|
|
277
|
+
options: {
|
|
278
|
+
...args.options,
|
|
279
|
+
onResponse: callback
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
283
|
+
return {
|
|
284
|
+
flatResponse,
|
|
285
|
+
rawResponse: {
|
|
286
|
+
statusCode: currentRawResponse!.status,
|
|
287
|
+
body: currentRawResponse!.parsedBody,
|
|
288
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
const lro = new LroImpl(
|
|
294
|
+
sendOperation,
|
|
295
|
+
{ resourceGroupName, accountName, poolName, body, options },
|
|
296
|
+
updateOperationSpec
|
|
297
|
+
);
|
|
298
|
+
return new LroEngine(lro, {
|
|
299
|
+
resumeFrom: options?.resumeFrom,
|
|
300
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
301
|
+
lroResourceLocationConfig: "location"
|
|
302
|
+
});
|
|
141
303
|
}
|
|
142
304
|
|
|
143
305
|
/**
|
|
144
|
-
*
|
|
145
|
-
* @summary Create or Update the specified capacity pool within the resource group
|
|
146
|
-
* @param body Capacity pool object supplied in the body of the operation.
|
|
306
|
+
* Patch the specified capacity pool
|
|
147
307
|
* @param resourceGroupName The name of the resource group.
|
|
148
308
|
* @param accountName The name of the NetApp account
|
|
149
309
|
* @param poolName The name of the capacity pool
|
|
150
|
-
* @param
|
|
151
|
-
* @
|
|
310
|
+
* @param body Capacity pool object supplied in the body of the operation.
|
|
311
|
+
* @param options The options parameters.
|
|
152
312
|
*/
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
313
|
+
async beginUpdateAndWait(
|
|
314
|
+
resourceGroupName: string,
|
|
315
|
+
accountName: string,
|
|
316
|
+
poolName: string,
|
|
317
|
+
body: CapacityPoolPatch,
|
|
318
|
+
options?: PoolsUpdateOptionalParams
|
|
319
|
+
): Promise<PoolsUpdateResponse> {
|
|
320
|
+
const poller = await this.beginUpdate(
|
|
321
|
+
resourceGroupName,
|
|
322
|
+
accountName,
|
|
323
|
+
poolName,
|
|
324
|
+
body,
|
|
325
|
+
options
|
|
326
|
+
);
|
|
327
|
+
return poller.pollUntilDone();
|
|
164
328
|
}
|
|
165
329
|
|
|
166
330
|
/**
|
|
167
|
-
*
|
|
168
|
-
* @summary Update a capacity pool
|
|
169
|
-
* @param body Capacity pool object supplied in the body of the operation.
|
|
331
|
+
* Delete the specified capacity pool
|
|
170
332
|
* @param resourceGroupName The name of the resource group.
|
|
171
333
|
* @param accountName The name of the NetApp account
|
|
172
334
|
* @param poolName The name of the capacity pool
|
|
173
|
-
* @param
|
|
174
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
335
|
+
* @param options The options parameters.
|
|
175
336
|
*/
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
337
|
+
async beginDelete(
|
|
338
|
+
resourceGroupName: string,
|
|
339
|
+
accountName: string,
|
|
340
|
+
poolName: string,
|
|
341
|
+
options?: PoolsDeleteOptionalParams
|
|
342
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
343
|
+
const directSendOperation = async (
|
|
344
|
+
args: coreClient.OperationArguments,
|
|
345
|
+
spec: coreClient.OperationSpec
|
|
346
|
+
): Promise<void> => {
|
|
347
|
+
return this.client.sendOperationRequest(args, spec);
|
|
348
|
+
};
|
|
349
|
+
const sendOperation = async (
|
|
350
|
+
args: coreClient.OperationArguments,
|
|
351
|
+
spec: coreClient.OperationSpec
|
|
352
|
+
) => {
|
|
353
|
+
let currentRawResponse:
|
|
354
|
+
| coreClient.FullOperationResponse
|
|
355
|
+
| undefined = undefined;
|
|
356
|
+
const providedCallback = args.options?.onResponse;
|
|
357
|
+
const callback: coreClient.RawResponseCallback = (
|
|
358
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
359
|
+
flatResponse: unknown
|
|
360
|
+
) => {
|
|
361
|
+
currentRawResponse = rawResponse;
|
|
362
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
363
|
+
};
|
|
364
|
+
const updatedArgs = {
|
|
365
|
+
...args,
|
|
366
|
+
options: {
|
|
367
|
+
...args.options,
|
|
368
|
+
onResponse: callback
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
372
|
+
return {
|
|
373
|
+
flatResponse,
|
|
374
|
+
rawResponse: {
|
|
375
|
+
statusCode: currentRawResponse!.status,
|
|
376
|
+
body: currentRawResponse!.parsedBody,
|
|
377
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
const lro = new LroImpl(
|
|
383
|
+
sendOperation,
|
|
384
|
+
{ resourceGroupName, accountName, poolName, options },
|
|
385
|
+
deleteOperationSpec
|
|
386
|
+
);
|
|
387
|
+
return new LroEngine(lro, {
|
|
388
|
+
resumeFrom: options?.resumeFrom,
|
|
389
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
390
|
+
lroResourceLocationConfig: "location"
|
|
391
|
+
});
|
|
187
392
|
}
|
|
188
393
|
|
|
189
394
|
/**
|
|
190
395
|
* Delete the specified capacity pool
|
|
191
|
-
* @summary Delete a capacity pool
|
|
192
396
|
* @param resourceGroupName The name of the resource group.
|
|
193
397
|
* @param accountName The name of the NetApp account
|
|
194
398
|
* @param poolName The name of the capacity pool
|
|
195
|
-
* @param
|
|
196
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
399
|
+
* @param options The options parameters.
|
|
197
400
|
*/
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
401
|
+
async beginDeleteAndWait(
|
|
402
|
+
resourceGroupName: string,
|
|
403
|
+
accountName: string,
|
|
404
|
+
poolName: string,
|
|
405
|
+
options?: PoolsDeleteOptionalParams
|
|
406
|
+
): Promise<void> {
|
|
407
|
+
const poller = await this.beginDelete(
|
|
408
|
+
resourceGroupName,
|
|
409
|
+
accountName,
|
|
410
|
+
poolName,
|
|
411
|
+
options
|
|
412
|
+
);
|
|
413
|
+
return poller.pollUntilDone();
|
|
208
414
|
}
|
|
209
415
|
|
|
210
416
|
/**
|
|
211
|
-
*
|
|
212
|
-
* @
|
|
213
|
-
* @param
|
|
214
|
-
* @param
|
|
215
|
-
* @
|
|
216
|
-
*/
|
|
217
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.PoolsListNextResponse>;
|
|
218
|
-
/**
|
|
219
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
220
|
-
* @param callback The callback
|
|
221
|
-
*/
|
|
222
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.CapacityPoolList>): void;
|
|
223
|
-
/**
|
|
224
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
225
|
-
* @param options The optional parameters
|
|
226
|
-
* @param callback The callback
|
|
417
|
+
* ListNext
|
|
418
|
+
* @param resourceGroupName The name of the resource group.
|
|
419
|
+
* @param accountName The name of the NetApp account
|
|
420
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
421
|
+
* @param options The options parameters.
|
|
227
422
|
*/
|
|
228
|
-
|
|
229
|
-
|
|
423
|
+
private _listNext(
|
|
424
|
+
resourceGroupName: string,
|
|
425
|
+
accountName: string,
|
|
426
|
+
nextLink: string,
|
|
427
|
+
options?: PoolsListNextOptionalParams
|
|
428
|
+
): Promise<PoolsListNextResponse> {
|
|
230
429
|
return this.client.sendOperationRequest(
|
|
231
|
-
{
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
},
|
|
235
|
-
listNextOperationSpec,
|
|
236
|
-
callback) as Promise<Models.PoolsListNextResponse>;
|
|
430
|
+
{ resourceGroupName, accountName, nextLink, options },
|
|
431
|
+
listNextOperationSpec
|
|
432
|
+
);
|
|
237
433
|
}
|
|
238
434
|
}
|
|
239
|
-
|
|
240
435
|
// Operation Specifications
|
|
241
|
-
const serializer =
|
|
242
|
-
|
|
436
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
437
|
+
|
|
438
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
439
|
+
path:
|
|
440
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools",
|
|
243
441
|
httpMethod: "GET",
|
|
244
|
-
|
|
442
|
+
responses: {
|
|
443
|
+
200: {
|
|
444
|
+
bodyMapper: Mappers.CapacityPoolList
|
|
445
|
+
},
|
|
446
|
+
default: {}
|
|
447
|
+
},
|
|
448
|
+
queryParameters: [Parameters.apiVersion],
|
|
245
449
|
urlParameters: [
|
|
450
|
+
Parameters.$host,
|
|
246
451
|
Parameters.subscriptionId,
|
|
247
452
|
Parameters.resourceGroupName,
|
|
248
453
|
Parameters.accountName
|
|
249
454
|
],
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
455
|
+
headerParameters: [Parameters.accept],
|
|
456
|
+
serializer
|
|
457
|
+
};
|
|
458
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
459
|
+
path:
|
|
460
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}",
|
|
461
|
+
httpMethod: "GET",
|
|
256
462
|
responses: {
|
|
257
463
|
200: {
|
|
258
|
-
bodyMapper: Mappers.
|
|
464
|
+
bodyMapper: Mappers.CapacityPool
|
|
259
465
|
},
|
|
260
|
-
default: {
|
|
261
|
-
bodyMapper: Mappers.CloudError
|
|
262
|
-
}
|
|
466
|
+
default: {}
|
|
263
467
|
},
|
|
264
|
-
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
268
|
-
httpMethod: "GET",
|
|
269
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}",
|
|
468
|
+
queryParameters: [Parameters.apiVersion],
|
|
270
469
|
urlParameters: [
|
|
470
|
+
Parameters.$host,
|
|
271
471
|
Parameters.subscriptionId,
|
|
272
472
|
Parameters.resourceGroupName,
|
|
273
473
|
Parameters.accountName,
|
|
274
474
|
Parameters.poolName
|
|
275
475
|
],
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
476
|
+
headerParameters: [Parameters.accept],
|
|
477
|
+
serializer
|
|
478
|
+
};
|
|
479
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
480
|
+
path:
|
|
481
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}",
|
|
482
|
+
httpMethod: "PUT",
|
|
282
483
|
responses: {
|
|
283
484
|
200: {
|
|
284
485
|
bodyMapper: Mappers.CapacityPool
|
|
285
486
|
},
|
|
286
|
-
|
|
287
|
-
bodyMapper: Mappers.
|
|
288
|
-
}
|
|
487
|
+
201: {
|
|
488
|
+
bodyMapper: Mappers.CapacityPool
|
|
489
|
+
},
|
|
490
|
+
202: {
|
|
491
|
+
bodyMapper: Mappers.CapacityPool
|
|
492
|
+
},
|
|
493
|
+
204: {
|
|
494
|
+
bodyMapper: Mappers.CapacityPool
|
|
495
|
+
},
|
|
496
|
+
default: {}
|
|
289
497
|
},
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
294
|
-
httpMethod: "PUT",
|
|
295
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}",
|
|
498
|
+
requestBody: Parameters.body5,
|
|
499
|
+
queryParameters: [Parameters.apiVersion],
|
|
296
500
|
urlParameters: [
|
|
501
|
+
Parameters.$host,
|
|
297
502
|
Parameters.subscriptionId,
|
|
298
503
|
Parameters.resourceGroupName,
|
|
299
504
|
Parameters.accountName,
|
|
300
505
|
Parameters.poolName
|
|
301
506
|
],
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
mapper: {
|
|
311
|
-
...Mappers.CapacityPool,
|
|
312
|
-
required: true
|
|
313
|
-
}
|
|
314
|
-
},
|
|
507
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
508
|
+
mediaType: "json",
|
|
509
|
+
serializer
|
|
510
|
+
};
|
|
511
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
512
|
+
path:
|
|
513
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}",
|
|
514
|
+
httpMethod: "PATCH",
|
|
315
515
|
responses: {
|
|
316
516
|
200: {
|
|
317
517
|
bodyMapper: Mappers.CapacityPool
|
|
@@ -319,92 +519,59 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
319
519
|
201: {
|
|
320
520
|
bodyMapper: Mappers.CapacityPool
|
|
321
521
|
},
|
|
322
|
-
|
|
323
|
-
bodyMapper: Mappers.
|
|
324
|
-
}
|
|
522
|
+
202: {
|
|
523
|
+
bodyMapper: Mappers.CapacityPool
|
|
524
|
+
},
|
|
525
|
+
204: {
|
|
526
|
+
bodyMapper: Mappers.CapacityPool
|
|
527
|
+
},
|
|
528
|
+
default: {}
|
|
325
529
|
},
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
330
|
-
httpMethod: "PATCH",
|
|
331
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}",
|
|
530
|
+
requestBody: Parameters.body6,
|
|
531
|
+
queryParameters: [Parameters.apiVersion],
|
|
332
532
|
urlParameters: [
|
|
533
|
+
Parameters.$host,
|
|
333
534
|
Parameters.subscriptionId,
|
|
334
535
|
Parameters.resourceGroupName,
|
|
335
536
|
Parameters.accountName,
|
|
336
537
|
Parameters.poolName
|
|
337
538
|
],
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
],
|
|
341
|
-
headerParameters: [
|
|
342
|
-
Parameters.acceptLanguage
|
|
343
|
-
],
|
|
344
|
-
requestBody: {
|
|
345
|
-
parameterPath: "body",
|
|
346
|
-
mapper: {
|
|
347
|
-
...Mappers.CapacityPoolPatch,
|
|
348
|
-
required: true
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
responses: {
|
|
352
|
-
200: {
|
|
353
|
-
bodyMapper: Mappers.CapacityPool
|
|
354
|
-
},
|
|
355
|
-
202: {},
|
|
356
|
-
default: {
|
|
357
|
-
bodyMapper: Mappers.CloudError
|
|
358
|
-
}
|
|
359
|
-
},
|
|
539
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
540
|
+
mediaType: "json",
|
|
360
541
|
serializer
|
|
361
542
|
};
|
|
362
|
-
|
|
363
|
-
|
|
543
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
544
|
+
path:
|
|
545
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}",
|
|
364
546
|
httpMethod: "DELETE",
|
|
365
|
-
|
|
547
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
548
|
+
queryParameters: [Parameters.apiVersion],
|
|
366
549
|
urlParameters: [
|
|
550
|
+
Parameters.$host,
|
|
367
551
|
Parameters.subscriptionId,
|
|
368
552
|
Parameters.resourceGroupName,
|
|
369
553
|
Parameters.accountName,
|
|
370
554
|
Parameters.poolName
|
|
371
555
|
],
|
|
372
|
-
queryParameters: [
|
|
373
|
-
Parameters.apiVersion
|
|
374
|
-
],
|
|
375
|
-
headerParameters: [
|
|
376
|
-
Parameters.acceptLanguage
|
|
377
|
-
],
|
|
378
|
-
responses: {
|
|
379
|
-
202: {},
|
|
380
|
-
204: {},
|
|
381
|
-
default: {
|
|
382
|
-
bodyMapper: Mappers.CloudError
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
556
|
serializer
|
|
386
557
|
};
|
|
387
|
-
|
|
388
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
389
|
-
httpMethod: "GET",
|
|
390
|
-
baseUrl: "https://management.azure.com",
|
|
558
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
391
559
|
path: "{nextLink}",
|
|
392
|
-
|
|
393
|
-
Parameters.nextPageLink
|
|
394
|
-
],
|
|
395
|
-
queryParameters: [
|
|
396
|
-
Parameters.apiVersion
|
|
397
|
-
],
|
|
398
|
-
headerParameters: [
|
|
399
|
-
Parameters.acceptLanguage
|
|
400
|
-
],
|
|
560
|
+
httpMethod: "GET",
|
|
401
561
|
responses: {
|
|
402
562
|
200: {
|
|
403
563
|
bodyMapper: Mappers.CapacityPoolList
|
|
404
564
|
},
|
|
405
|
-
default: {
|
|
406
|
-
bodyMapper: Mappers.CloudError
|
|
407
|
-
}
|
|
565
|
+
default: {}
|
|
408
566
|
},
|
|
567
|
+
queryParameters: [Parameters.apiVersion],
|
|
568
|
+
urlParameters: [
|
|
569
|
+
Parameters.$host,
|
|
570
|
+
Parameters.subscriptionId,
|
|
571
|
+
Parameters.resourceGroupName,
|
|
572
|
+
Parameters.accountName,
|
|
573
|
+
Parameters.nextLink
|
|
574
|
+
],
|
|
575
|
+
headerParameters: [Parameters.accept],
|
|
409
576
|
serializer
|
|
410
577
|
};
|