@azure/arm-netapp 14.4.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +70 -78
- package/dist/index.js +8881 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/netAppResourceMappers.js → dist-esm/src/index.js} +5 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +2374 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +162 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +76 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1505 -1644
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +46 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +319 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/netAppManagementClient.d.ts +31 -0
- package/dist-esm/src/netAppManagementClient.d.ts.map +1 -0
- package/dist-esm/src/netAppManagementClient.js +64 -0
- package/dist-esm/src/netAppManagementClient.js.map +1 -0
- package/dist-esm/src/operations/accountBackups.d.ts +55 -0
- package/dist-esm/src/operations/accountBackups.d.ts.map +1 -0
- package/dist-esm/src/operations/accountBackups.js +195 -0
- package/dist-esm/src/operations/accountBackups.js.map +1 -0
- package/dist-esm/src/operations/accounts.d.ts +107 -0
- package/dist-esm/src/operations/accounts.d.ts.map +1 -0
- package/dist-esm/src/operations/accounts.js +482 -0
- package/dist-esm/src/operations/accounts.js.map +1 -0
- package/dist-esm/src/operations/backupPolicies.d.ts +91 -0
- package/dist-esm/src/operations/backupPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/backupPolicies.js +365 -0
- package/dist-esm/src/operations/backupPolicies.js.map +1 -0
- package/dist-esm/src/operations/backups.d.ts +125 -0
- package/dist-esm/src/operations/backups.d.ts.map +1 -0
- package/dist-esm/src/operations/backups.js +484 -0
- package/dist-esm/src/operations/backups.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/netAppResource.d.ts +40 -0
- package/dist-esm/src/operations/netAppResource.d.ts.map +1 -0
- package/dist-esm/src/operations/netAppResource.js +133 -0
- package/dist-esm/src/operations/netAppResource.js.map +1 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.d.ts +35 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.d.ts.map +1 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.js +122 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +88 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/pools.d.ts +99 -0
- package/dist-esm/src/operations/pools.d.ts.map +1 -0
- package/dist-esm/src/operations/pools.js +401 -0
- package/dist-esm/src/operations/pools.js.map +1 -0
- package/dist-esm/src/operations/snapshotPolicies.d.ts +90 -0
- package/dist-esm/src/operations/snapshotPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/snapshotPolicies.js +346 -0
- package/dist-esm/src/operations/snapshotPolicies.js.map +1 -0
- package/dist-esm/src/operations/snapshots.d.ts +109 -0
- package/dist-esm/src/operations/snapshots.d.ts.map +1 -0
- package/dist-esm/src/operations/snapshots.js +423 -0
- package/dist-esm/src/operations/snapshots.js.map +1 -0
- package/dist-esm/src/operations/vaults.d.ts +30 -0
- package/dist-esm/src/operations/vaults.d.ts.map +1 -0
- package/dist-esm/src/operations/vaults.js +97 -0
- package/dist-esm/src/operations/vaults.js.map +1 -0
- package/dist-esm/src/operations/volumeGroups.d.ts +73 -0
- package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/volumeGroups.js +278 -0
- package/dist-esm/src/operations/volumeGroups.js.map +1 -0
- package/dist-esm/src/operations/volumes.d.ts +254 -0
- package/dist-esm/src/operations/volumes.d.ts.map +1 -0
- package/dist-esm/src/operations/volumes.js +956 -0
- package/dist-esm/src/operations/volumes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accountBackups.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/accountBackups.d.ts.map +1 -0
- package/{src/models/netAppResourceMappers.ts → dist-esm/src/operationsInterfaces/accountBackups.js} +2 -8
- package/dist-esm/src/operationsInterfaces/accountBackups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backups.d.ts +106 -0
- package/dist-esm/src/operationsInterfaces/backups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/backups.js +9 -0
- package/dist-esm/src/operationsInterfaces/backups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +21 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.d.ts +32 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.js +9 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.js +9 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/pools.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/pools.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/pools.js} +2 -1
- package/dist-esm/src/operationsInterfaces/pools.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.d.ts +73 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshots.d.ts +90 -0
- package/dist-esm/src/operationsInterfaces/snapshots.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshots.js +9 -0
- package/dist-esm/src/operationsInterfaces/snapshots.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/vaults.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/vaults.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/vaults.js +9 -0
- package/dist-esm/src/operationsInterfaces/vaults.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumes.d.ts +227 -0
- package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumes.js +9 -0
- package/dist-esm/src/operationsInterfaces/volumes.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +70 -32
- package/review/arm-netapp.api.md +1681 -0
- package/rollup.config.js +181 -30
- package/src/{models/operationsMappers.ts → index.ts} +4 -10
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1888 -3345
- package/src/models/mappers.ts +1542 -1652
- package/src/models/parameters.ts +271 -66
- package/src/netAppManagementClient.ts +128 -0
- package/src/operations/accountBackups.ts +187 -132
- package/src/operations/accounts.ts +487 -325
- package/src/operations/backupPolicies.ts +390 -223
- package/src/operations/backups.ts +486 -313
- package/src/operations/index.ts +1 -2
- package/src/operations/netAppResource.ts +112 -204
- package/src/operations/netAppResourceQuotaLimits.ts +100 -90
- package/src/operations/operations.ts +65 -43
- package/src/operations/pools.ts +430 -263
- package/src/operations/snapshotPolicies.ts +345 -275
- package/src/operations/snapshots.ts +454 -226
- package/src/operations/vaults.ts +81 -51
- package/src/operations/volumeGroups.ts +303 -182
- package/src/operations/volumes.ts +1101 -637
- package/src/operationsInterfaces/accountBackups.ts +72 -0
- package/src/operationsInterfaces/accounts.ts +139 -0
- package/src/operationsInterfaces/backupPolicies.ts +147 -0
- package/src/operationsInterfaces/backups.ts +202 -0
- package/src/operationsInterfaces/index.ts +21 -0
- package/src/operationsInterfaces/netAppResource.ts +66 -0
- package/src/operationsInterfaces/netAppResourceQuotaLimits.ts +40 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/pools.ts +144 -0
- package/src/operationsInterfaces/snapshotPolicies.ts +142 -0
- package/src/operationsInterfaces/snapshots.ts +178 -0
- package/src/operationsInterfaces/vaults.ts +26 -0
- package/src/operationsInterfaces/volumeGroups.ts +110 -0
- package/src/operationsInterfaces/volumes.ts +413 -0
- package/tsconfig.json +3 -3
- package/types/arm-netapp.d.ts +3485 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-netapp.js +0 -8542
- package/dist/arm-netapp.js.map +0 -1
- package/dist/arm-netapp.min.js +0 -1
- package/dist/arm-netapp.min.js.map +0 -1
- package/esm/azureNetAppFilesManagementClient.d.ts +0 -37
- package/esm/azureNetAppFilesManagementClient.d.ts.map +0 -1
- package/esm/azureNetAppFilesManagementClient.js +0 -50
- package/esm/azureNetAppFilesManagementClient.js.map +0 -1
- package/esm/azureNetAppFilesManagementClientContext.d.ts +0 -23
- package/esm/azureNetAppFilesManagementClientContext.d.ts.map +0 -1
- package/esm/azureNetAppFilesManagementClientContext.js +0 -61
- package/esm/azureNetAppFilesManagementClientContext.js.map +0 -1
- package/esm/models/accountBackupsMappers.d.ts +0 -2
- package/esm/models/accountBackupsMappers.d.ts.map +0 -1
- package/esm/models/accountBackupsMappers.js +0 -9
- package/esm/models/accountBackupsMappers.js.map +0 -1
- package/esm/models/accountsMappers.d.ts +0 -2
- package/esm/models/accountsMappers.d.ts.map +0 -1
- package/esm/models/accountsMappers.js +0 -9
- package/esm/models/accountsMappers.js.map +0 -1
- package/esm/models/backupPoliciesMappers.d.ts +0 -2
- package/esm/models/backupPoliciesMappers.d.ts.map +0 -1
- package/esm/models/backupPoliciesMappers.js +0 -9
- package/esm/models/backupPoliciesMappers.js.map +0 -1
- package/esm/models/backupsMappers.d.ts +0 -2
- package/esm/models/backupsMappers.d.ts.map +0 -1
- package/esm/models/backupsMappers.js +0 -9
- package/esm/models/backupsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -3856
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -78
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/netAppResourceMappers.d.ts +0 -2
- package/esm/models/netAppResourceMappers.d.ts.map +0 -1
- package/esm/models/netAppResourceMappers.js.map +0 -1
- package/esm/models/netAppResourceQuotaLimitsMappers.d.ts +0 -2
- package/esm/models/netAppResourceQuotaLimitsMappers.d.ts.map +0 -1
- package/esm/models/netAppResourceQuotaLimitsMappers.js +0 -9
- package/esm/models/netAppResourceQuotaLimitsMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -17
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -183
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/poolsMappers.d.ts +0 -2
- package/esm/models/poolsMappers.d.ts.map +0 -1
- package/esm/models/poolsMappers.js +0 -9
- package/esm/models/poolsMappers.js.map +0 -1
- package/esm/models/snapshotPoliciesMappers.d.ts +0 -2
- package/esm/models/snapshotPoliciesMappers.d.ts.map +0 -1
- package/esm/models/snapshotPoliciesMappers.js +0 -9
- package/esm/models/snapshotPoliciesMappers.js.map +0 -1
- package/esm/models/snapshotsMappers.d.ts +0 -2
- package/esm/models/snapshotsMappers.d.ts.map +0 -1
- package/esm/models/snapshotsMappers.js +0 -9
- package/esm/models/snapshotsMappers.js.map +0 -1
- package/esm/models/vaultsMappers.d.ts +0 -2
- package/esm/models/vaultsMappers.d.ts.map +0 -1
- package/esm/models/vaultsMappers.js +0 -9
- package/esm/models/vaultsMappers.js.map +0 -1
- package/esm/models/volumeGroupsMappers.d.ts +0 -2
- package/esm/models/volumeGroupsMappers.d.ts.map +0 -1
- package/esm/models/volumeGroupsMappers.js +0 -9
- package/esm/models/volumeGroupsMappers.js.map +0 -1
- package/esm/models/volumesMappers.d.ts +0 -2
- package/esm/models/volumesMappers.d.ts.map +0 -1
- package/esm/models/volumesMappers.js +0 -9
- package/esm/models/volumesMappers.js.map +0 -1
- package/esm/operations/accountBackups.d.ts +0 -81
- package/esm/operations/accountBackups.d.ts.map +0 -1
- package/esm/operations/accountBackups.js +0 -145
- package/esm/operations/accountBackups.js.map +0 -1
- package/esm/operations/accounts.d.ts +0 -167
- package/esm/operations/accounts.d.ts.map +0 -1
- package/esm/operations/accounts.js +0 -344
- package/esm/operations/accounts.js.map +0 -1
- package/esm/operations/backupPolicies.d.ts +0 -125
- package/esm/operations/backupPolicies.d.ts.map +0 -1
- package/esm/operations/backupPolicies.js +0 -277
- package/esm/operations/backupPolicies.js.map +0 -1
- package/esm/operations/backups.d.ts +0 -203
- package/esm/operations/backups.d.ts.map +0 -1
- package/esm/operations/backups.js +0 -379
- package/esm/operations/backups.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/netAppResource.d.ts +0 -115
- package/esm/operations/netAppResource.d.ts.map +0 -1
- package/esm/operations/netAppResource.js +0 -145
- package/esm/operations/netAppResource.js.map +0 -1
- package/esm/operations/netAppResourceQuotaLimits.d.ts +0 -54
- package/esm/operations/netAppResourceQuotaLimits.d.ts.map +0 -1
- package/esm/operations/netAppResourceQuotaLimits.js +0 -86
- package/esm/operations/netAppResourceQuotaLimits.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -29
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -50
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/pools.d.ts +0 -144
- package/esm/operations/pools.d.ts.map +0 -1
- package/esm/operations/pools.js +0 -302
- package/esm/operations/pools.js.map +0 -1
- package/esm/operations/snapshotPolicies.d.ts +0 -149
- package/esm/operations/snapshotPolicies.d.ts.map +0 -1
- package/esm/operations/snapshotPolicies.js +0 -281
- package/esm/operations/snapshotPolicies.js.map +0 -1
- package/esm/operations/snapshots.d.ts +0 -149
- package/esm/operations/snapshots.d.ts.map +0 -1
- package/esm/operations/snapshots.js +0 -312
- package/esm/operations/snapshots.js.map +0 -1
- package/esm/operations/vaults.d.ts +0 -35
- package/esm/operations/vaults.d.ts.map +0 -1
- package/esm/operations/vaults.js +0 -57
- package/esm/operations/vaults.js.map +0 -1
- package/esm/operations/volumeGroups.d.ts +0 -107
- package/esm/operations/volumeGroups.d.ts.map +0 -1
- package/esm/operations/volumeGroups.js +0 -212
- package/esm/operations/volumeGroups.js.map +0 -1
- package/esm/operations/volumes.d.ts +0 -344
- package/esm/operations/volumes.d.ts.map +0 -1
- package/esm/operations/volumes.js +0 -800
- package/esm/operations/volumes.js.map +0 -1
- package/src/azureNetAppFilesManagementClient.ts +0 -72
- package/src/azureNetAppFilesManagementClientContext.ts +0 -68
- package/src/models/accountBackupsMappers.ts +0 -51
- package/src/models/accountsMappers.ts +0 -51
- package/src/models/backupPoliciesMappers.ts +0 -51
- package/src/models/backupsMappers.ts +0 -53
- package/src/models/netAppResourceQuotaLimitsMappers.ts +0 -51
- package/src/models/poolsMappers.ts +0 -51
- package/src/models/snapshotPoliciesMappers.ts +0 -53
- package/src/models/snapshotsMappers.ts +0 -51
- package/src/models/vaultsMappers.ts +0 -51
- package/src/models/volumeGroupsMappers.ts +0 -54
- package/src/models/volumesMappers.ts +0 -56
|
@@ -3,372 +3,543 @@
|
|
|
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 { Accounts } 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
|
+
NetAppAccount,
|
|
19
|
+
AccountsListBySubscriptionNextOptionalParams,
|
|
20
|
+
AccountsListBySubscriptionOptionalParams,
|
|
21
|
+
AccountsListNextOptionalParams,
|
|
22
|
+
AccountsListOptionalParams,
|
|
23
|
+
AccountsListBySubscriptionResponse,
|
|
24
|
+
AccountsListResponse,
|
|
25
|
+
AccountsGetOptionalParams,
|
|
26
|
+
AccountsGetResponse,
|
|
27
|
+
AccountsCreateOrUpdateOptionalParams,
|
|
28
|
+
AccountsCreateOrUpdateResponse,
|
|
29
|
+
AccountsDeleteOptionalParams,
|
|
30
|
+
NetAppAccountPatch,
|
|
31
|
+
AccountsUpdateOptionalParams,
|
|
32
|
+
AccountsUpdateResponse,
|
|
33
|
+
AccountsListBySubscriptionNextResponse,
|
|
34
|
+
AccountsListNextResponse
|
|
35
|
+
} from "../models";
|
|
16
36
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
37
|
+
/// <reference lib="esnext.asynciterable" />
|
|
38
|
+
/** Class containing Accounts operations. */
|
|
39
|
+
export class AccountsImpl implements Accounts {
|
|
40
|
+
private readonly client: NetAppManagementClient;
|
|
20
41
|
|
|
21
42
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
43
|
+
* Initialize a new instance of the class Accounts class.
|
|
44
|
+
* @param client Reference to the service client
|
|
24
45
|
*/
|
|
25
|
-
constructor(client:
|
|
46
|
+
constructor(client: NetAppManagementClient) {
|
|
26
47
|
this.client = client;
|
|
27
48
|
}
|
|
28
49
|
|
|
29
50
|
/**
|
|
30
51
|
* List and describe all NetApp accounts in the subscription.
|
|
31
|
-
* @
|
|
32
|
-
* @param [options] The optional parameters
|
|
33
|
-
* @returns Promise<Models.AccountsListBySubscriptionResponse>
|
|
52
|
+
* @param options The options parameters.
|
|
34
53
|
*/
|
|
35
|
-
listBySubscription(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.NetAppAccountList>, callback?: msRest.ServiceCallback<Models.NetAppAccountList>): Promise<Models.AccountsListBySubscriptionResponse> {
|
|
46
|
-
return this.client.sendOperationRequest(
|
|
47
|
-
{
|
|
48
|
-
options
|
|
54
|
+
public listBySubscription(
|
|
55
|
+
options?: AccountsListBySubscriptionOptionalParams
|
|
56
|
+
): PagedAsyncIterableIterator<NetAppAccount> {
|
|
57
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
58
|
+
return {
|
|
59
|
+
next() {
|
|
60
|
+
return iter.next();
|
|
61
|
+
},
|
|
62
|
+
[Symbol.asyncIterator]() {
|
|
63
|
+
return this;
|
|
49
64
|
},
|
|
50
|
-
|
|
51
|
-
|
|
65
|
+
byPage: () => {
|
|
66
|
+
return this.listBySubscriptionPagingPage(options);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
private async *listBySubscriptionPagingPage(
|
|
72
|
+
options?: AccountsListBySubscriptionOptionalParams
|
|
73
|
+
): AsyncIterableIterator<NetAppAccount[]> {
|
|
74
|
+
let result = await this._listBySubscription(options);
|
|
75
|
+
yield result.value || [];
|
|
76
|
+
let continuationToken = result.nextLink;
|
|
77
|
+
while (continuationToken) {
|
|
78
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
79
|
+
continuationToken = result.nextLink;
|
|
80
|
+
yield result.value || [];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
private async *listBySubscriptionPagingAll(
|
|
85
|
+
options?: AccountsListBySubscriptionOptionalParams
|
|
86
|
+
): AsyncIterableIterator<NetAppAccount> {
|
|
87
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
88
|
+
yield* page;
|
|
89
|
+
}
|
|
52
90
|
}
|
|
53
91
|
|
|
54
92
|
/**
|
|
55
93
|
* List and describe all NetApp accounts in the resource group.
|
|
56
|
-
* @summary Describe all NetApp Accounts in a resource group
|
|
57
94
|
* @param resourceGroupName The name of the resource group.
|
|
58
|
-
* @param
|
|
59
|
-
* @returns Promise<Models.AccountsListResponse>
|
|
95
|
+
* @param options The options parameters.
|
|
60
96
|
*/
|
|
61
|
-
list(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
97
|
+
public list(
|
|
98
|
+
resourceGroupName: string,
|
|
99
|
+
options?: AccountsListOptionalParams
|
|
100
|
+
): PagedAsyncIterableIterator<NetAppAccount> {
|
|
101
|
+
const iter = this.listPagingAll(resourceGroupName, options);
|
|
102
|
+
return {
|
|
103
|
+
next() {
|
|
104
|
+
return iter.next();
|
|
105
|
+
},
|
|
106
|
+
[Symbol.asyncIterator]() {
|
|
107
|
+
return this;
|
|
108
|
+
},
|
|
109
|
+
byPage: () => {
|
|
110
|
+
return this.listPagingPage(resourceGroupName, options);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
private async *listPagingPage(
|
|
116
|
+
resourceGroupName: string,
|
|
117
|
+
options?: AccountsListOptionalParams
|
|
118
|
+
): AsyncIterableIterator<NetAppAccount[]> {
|
|
119
|
+
let result = await this._list(resourceGroupName, options);
|
|
120
|
+
yield result.value || [];
|
|
121
|
+
let continuationToken = result.nextLink;
|
|
122
|
+
while (continuationToken) {
|
|
123
|
+
result = await this._listNext(
|
|
76
124
|
resourceGroupName,
|
|
125
|
+
continuationToken,
|
|
77
126
|
options
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
127
|
+
);
|
|
128
|
+
continuationToken = result.nextLink;
|
|
129
|
+
yield result.value || [];
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
private async *listPagingAll(
|
|
134
|
+
resourceGroupName: string,
|
|
135
|
+
options?: AccountsListOptionalParams
|
|
136
|
+
): AsyncIterableIterator<NetAppAccount> {
|
|
137
|
+
for await (const page of this.listPagingPage(resourceGroupName, options)) {
|
|
138
|
+
yield* page;
|
|
139
|
+
}
|
|
81
140
|
}
|
|
82
141
|
|
|
83
142
|
/**
|
|
84
|
-
*
|
|
85
|
-
* @
|
|
86
|
-
* @param resourceGroupName The name of the resource group.
|
|
87
|
-
* @param accountName The name of the NetApp account
|
|
88
|
-
* @param [options] The optional parameters
|
|
89
|
-
* @returns Promise<Models.AccountsGetResponse>
|
|
143
|
+
* List and describe all NetApp accounts in the subscription.
|
|
144
|
+
* @param options The options parameters.
|
|
90
145
|
*/
|
|
91
|
-
|
|
146
|
+
private _listBySubscription(
|
|
147
|
+
options?: AccountsListBySubscriptionOptionalParams
|
|
148
|
+
): Promise<AccountsListBySubscriptionResponse> {
|
|
149
|
+
return this.client.sendOperationRequest(
|
|
150
|
+
{ options },
|
|
151
|
+
listBySubscriptionOperationSpec
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
|
|
92
155
|
/**
|
|
156
|
+
* List and describe all NetApp accounts in the resource group.
|
|
93
157
|
* @param resourceGroupName The name of the resource group.
|
|
94
|
-
* @param
|
|
95
|
-
* @param callback The callback
|
|
158
|
+
* @param options The options parameters.
|
|
96
159
|
*/
|
|
97
|
-
|
|
160
|
+
private _list(
|
|
161
|
+
resourceGroupName: string,
|
|
162
|
+
options?: AccountsListOptionalParams
|
|
163
|
+
): Promise<AccountsListResponse> {
|
|
164
|
+
return this.client.sendOperationRequest(
|
|
165
|
+
{ resourceGroupName, options },
|
|
166
|
+
listOperationSpec
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
98
170
|
/**
|
|
171
|
+
* Get the NetApp account
|
|
99
172
|
* @param resourceGroupName The name of the resource group.
|
|
100
173
|
* @param accountName The name of the NetApp account
|
|
101
|
-
* @param options The
|
|
102
|
-
* @param callback The callback
|
|
174
|
+
* @param options The options parameters.
|
|
103
175
|
*/
|
|
104
|
-
get(
|
|
105
|
-
|
|
176
|
+
get(
|
|
177
|
+
resourceGroupName: string,
|
|
178
|
+
accountName: string,
|
|
179
|
+
options?: AccountsGetOptionalParams
|
|
180
|
+
): Promise<AccountsGetResponse> {
|
|
106
181
|
return this.client.sendOperationRequest(
|
|
107
|
-
{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
options
|
|
111
|
-
},
|
|
112
|
-
getOperationSpec,
|
|
113
|
-
callback) as Promise<Models.AccountsGetResponse>;
|
|
182
|
+
{ resourceGroupName, accountName, options },
|
|
183
|
+
getOperationSpec
|
|
184
|
+
);
|
|
114
185
|
}
|
|
115
186
|
|
|
116
187
|
/**
|
|
117
188
|
* Create or update the specified NetApp account within the resource group
|
|
118
|
-
* @summary Create or update a NetApp account
|
|
119
|
-
* @param body NetApp Account object supplied in the body of the operation.
|
|
120
189
|
* @param resourceGroupName The name of the resource group.
|
|
121
190
|
* @param accountName The name of the NetApp account
|
|
122
|
-
* @param
|
|
123
|
-
* @
|
|
191
|
+
* @param body NetApp Account object supplied in the body of the operation.
|
|
192
|
+
* @param options The options parameters.
|
|
124
193
|
*/
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
194
|
+
async beginCreateOrUpdate(
|
|
195
|
+
resourceGroupName: string,
|
|
196
|
+
accountName: string,
|
|
197
|
+
body: NetAppAccount,
|
|
198
|
+
options?: AccountsCreateOrUpdateOptionalParams
|
|
199
|
+
): Promise<
|
|
200
|
+
PollerLike<
|
|
201
|
+
PollOperationState<AccountsCreateOrUpdateResponse>,
|
|
202
|
+
AccountsCreateOrUpdateResponse
|
|
203
|
+
>
|
|
204
|
+
> {
|
|
205
|
+
const directSendOperation = async (
|
|
206
|
+
args: coreClient.OperationArguments,
|
|
207
|
+
spec: coreClient.OperationSpec
|
|
208
|
+
): Promise<AccountsCreateOrUpdateResponse> => {
|
|
209
|
+
return this.client.sendOperationRequest(args, spec);
|
|
210
|
+
};
|
|
211
|
+
const sendOperation = async (
|
|
212
|
+
args: coreClient.OperationArguments,
|
|
213
|
+
spec: coreClient.OperationSpec
|
|
214
|
+
) => {
|
|
215
|
+
let currentRawResponse:
|
|
216
|
+
| coreClient.FullOperationResponse
|
|
217
|
+
| undefined = undefined;
|
|
218
|
+
const providedCallback = args.options?.onResponse;
|
|
219
|
+
const callback: coreClient.RawResponseCallback = (
|
|
220
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
221
|
+
flatResponse: unknown
|
|
222
|
+
) => {
|
|
223
|
+
currentRawResponse = rawResponse;
|
|
224
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
225
|
+
};
|
|
226
|
+
const updatedArgs = {
|
|
227
|
+
...args,
|
|
228
|
+
options: {
|
|
229
|
+
...args.options,
|
|
230
|
+
onResponse: callback
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
234
|
+
return {
|
|
235
|
+
flatResponse,
|
|
236
|
+
rawResponse: {
|
|
237
|
+
statusCode: currentRawResponse!.status,
|
|
238
|
+
body: currentRawResponse!.parsedBody,
|
|
239
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
const lro = new LroImpl(
|
|
245
|
+
sendOperation,
|
|
246
|
+
{ resourceGroupName, accountName, body, options },
|
|
247
|
+
createOrUpdateOperationSpec
|
|
248
|
+
);
|
|
249
|
+
return new LroEngine(lro, {
|
|
250
|
+
resumeFrom: options?.resumeFrom,
|
|
251
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
252
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
253
|
+
});
|
|
128
254
|
}
|
|
129
255
|
|
|
130
256
|
/**
|
|
131
|
-
*
|
|
132
|
-
* @summary Delete a NetApp account
|
|
257
|
+
* Create or update the specified NetApp account within the resource group
|
|
133
258
|
* @param resourceGroupName The name of the resource group.
|
|
134
259
|
* @param accountName The name of the NetApp account
|
|
135
|
-
* @param
|
|
136
|
-
* @
|
|
260
|
+
* @param body NetApp Account object supplied in the body of the operation.
|
|
261
|
+
* @param options The options parameters.
|
|
137
262
|
*/
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
263
|
+
async beginCreateOrUpdateAndWait(
|
|
264
|
+
resourceGroupName: string,
|
|
265
|
+
accountName: string,
|
|
266
|
+
body: NetAppAccount,
|
|
267
|
+
options?: AccountsCreateOrUpdateOptionalParams
|
|
268
|
+
): Promise<AccountsCreateOrUpdateResponse> {
|
|
269
|
+
const poller = await this.beginCreateOrUpdate(
|
|
270
|
+
resourceGroupName,
|
|
271
|
+
accountName,
|
|
272
|
+
body,
|
|
273
|
+
options
|
|
274
|
+
);
|
|
275
|
+
return poller.pollUntilDone();
|
|
141
276
|
}
|
|
142
277
|
|
|
143
278
|
/**
|
|
144
|
-
*
|
|
145
|
-
* @summary Update a NetApp account
|
|
146
|
-
* @param body NetApp Account object supplied in the body of the operation.
|
|
279
|
+
* Delete the specified NetApp account
|
|
147
280
|
* @param resourceGroupName The name of the resource group.
|
|
148
281
|
* @param accountName The name of the NetApp account
|
|
149
|
-
* @param
|
|
150
|
-
* @returns Promise<Models.AccountsUpdateResponse>
|
|
282
|
+
* @param options The options parameters.
|
|
151
283
|
*/
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
284
|
+
async beginDelete(
|
|
285
|
+
resourceGroupName: string,
|
|
286
|
+
accountName: string,
|
|
287
|
+
options?: AccountsDeleteOptionalParams
|
|
288
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
289
|
+
const directSendOperation = async (
|
|
290
|
+
args: coreClient.OperationArguments,
|
|
291
|
+
spec: coreClient.OperationSpec
|
|
292
|
+
): Promise<void> => {
|
|
293
|
+
return this.client.sendOperationRequest(args, spec);
|
|
294
|
+
};
|
|
295
|
+
const sendOperation = async (
|
|
296
|
+
args: coreClient.OperationArguments,
|
|
297
|
+
spec: coreClient.OperationSpec
|
|
298
|
+
) => {
|
|
299
|
+
let currentRawResponse:
|
|
300
|
+
| coreClient.FullOperationResponse
|
|
301
|
+
| undefined = undefined;
|
|
302
|
+
const providedCallback = args.options?.onResponse;
|
|
303
|
+
const callback: coreClient.RawResponseCallback = (
|
|
304
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
305
|
+
flatResponse: unknown
|
|
306
|
+
) => {
|
|
307
|
+
currentRawResponse = rawResponse;
|
|
308
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
309
|
+
};
|
|
310
|
+
const updatedArgs = {
|
|
311
|
+
...args,
|
|
312
|
+
options: {
|
|
313
|
+
...args.options,
|
|
314
|
+
onResponse: callback
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
318
|
+
return {
|
|
319
|
+
flatResponse,
|
|
320
|
+
rawResponse: {
|
|
321
|
+
statusCode: currentRawResponse!.status,
|
|
322
|
+
body: currentRawResponse!.parsedBody,
|
|
323
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
const lro = new LroImpl(
|
|
329
|
+
sendOperation,
|
|
330
|
+
{ resourceGroupName, accountName, options },
|
|
331
|
+
deleteOperationSpec
|
|
332
|
+
);
|
|
333
|
+
return new LroEngine(lro, {
|
|
334
|
+
resumeFrom: options?.resumeFrom,
|
|
335
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
336
|
+
lroResourceLocationConfig: "location"
|
|
337
|
+
});
|
|
155
338
|
}
|
|
156
339
|
|
|
157
340
|
/**
|
|
158
|
-
*
|
|
159
|
-
* @summary Create or update a NetApp account
|
|
160
|
-
* @param body NetApp Account object supplied in the body of the operation.
|
|
341
|
+
* Delete the specified NetApp account
|
|
161
342
|
* @param resourceGroupName The name of the resource group.
|
|
162
343
|
* @param accountName The name of the NetApp account
|
|
163
|
-
* @param
|
|
164
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
344
|
+
* @param options The options parameters.
|
|
165
345
|
*/
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
346
|
+
async beginDeleteAndWait(
|
|
347
|
+
resourceGroupName: string,
|
|
348
|
+
accountName: string,
|
|
349
|
+
options?: AccountsDeleteOptionalParams
|
|
350
|
+
): Promise<void> {
|
|
351
|
+
const poller = await this.beginDelete(
|
|
352
|
+
resourceGroupName,
|
|
353
|
+
accountName,
|
|
354
|
+
options
|
|
355
|
+
);
|
|
356
|
+
return poller.pollUntilDone();
|
|
176
357
|
}
|
|
177
358
|
|
|
178
359
|
/**
|
|
179
|
-
*
|
|
180
|
-
* @summary Delete a NetApp account
|
|
360
|
+
* Patch the specified NetApp account
|
|
181
361
|
* @param resourceGroupName The name of the resource group.
|
|
182
362
|
* @param accountName The name of the NetApp account
|
|
183
|
-
* @param
|
|
184
|
-
* @
|
|
363
|
+
* @param body NetApp Account object supplied in the body of the operation.
|
|
364
|
+
* @param options The options parameters.
|
|
185
365
|
*/
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
366
|
+
async beginUpdate(
|
|
367
|
+
resourceGroupName: string,
|
|
368
|
+
accountName: string,
|
|
369
|
+
body: NetAppAccountPatch,
|
|
370
|
+
options?: AccountsUpdateOptionalParams
|
|
371
|
+
): Promise<
|
|
372
|
+
PollerLike<
|
|
373
|
+
PollOperationState<AccountsUpdateResponse>,
|
|
374
|
+
AccountsUpdateResponse
|
|
375
|
+
>
|
|
376
|
+
> {
|
|
377
|
+
const directSendOperation = async (
|
|
378
|
+
args: coreClient.OperationArguments,
|
|
379
|
+
spec: coreClient.OperationSpec
|
|
380
|
+
): Promise<AccountsUpdateResponse> => {
|
|
381
|
+
return this.client.sendOperationRequest(args, spec);
|
|
382
|
+
};
|
|
383
|
+
const sendOperation = async (
|
|
384
|
+
args: coreClient.OperationArguments,
|
|
385
|
+
spec: coreClient.OperationSpec
|
|
386
|
+
) => {
|
|
387
|
+
let currentRawResponse:
|
|
388
|
+
| coreClient.FullOperationResponse
|
|
389
|
+
| undefined = undefined;
|
|
390
|
+
const providedCallback = args.options?.onResponse;
|
|
391
|
+
const callback: coreClient.RawResponseCallback = (
|
|
392
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
393
|
+
flatResponse: unknown
|
|
394
|
+
) => {
|
|
395
|
+
currentRawResponse = rawResponse;
|
|
396
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
397
|
+
};
|
|
398
|
+
const updatedArgs = {
|
|
399
|
+
...args,
|
|
400
|
+
options: {
|
|
401
|
+
...args.options,
|
|
402
|
+
onResponse: callback
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
406
|
+
return {
|
|
407
|
+
flatResponse,
|
|
408
|
+
rawResponse: {
|
|
409
|
+
statusCode: currentRawResponse!.status,
|
|
410
|
+
body: currentRawResponse!.parsedBody,
|
|
411
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
const lro = new LroImpl(
|
|
417
|
+
sendOperation,
|
|
418
|
+
{ resourceGroupName, accountName, body, options },
|
|
419
|
+
updateOperationSpec
|
|
420
|
+
);
|
|
421
|
+
return new LroEngine(lro, {
|
|
422
|
+
resumeFrom: options?.resumeFrom,
|
|
423
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
424
|
+
lroResourceLocationConfig: "location"
|
|
425
|
+
});
|
|
195
426
|
}
|
|
196
427
|
|
|
197
428
|
/**
|
|
198
429
|
* Patch the specified NetApp account
|
|
199
|
-
* @summary Update a NetApp account
|
|
200
|
-
* @param body NetApp Account object supplied in the body of the operation.
|
|
201
430
|
* @param resourceGroupName The name of the resource group.
|
|
202
431
|
* @param accountName The name of the NetApp account
|
|
203
|
-
* @param
|
|
204
|
-
* @
|
|
432
|
+
* @param body NetApp Account object supplied in the body of the operation.
|
|
433
|
+
* @param options The options parameters.
|
|
205
434
|
*/
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
435
|
+
async beginUpdateAndWait(
|
|
436
|
+
resourceGroupName: string,
|
|
437
|
+
accountName: string,
|
|
438
|
+
body: NetAppAccountPatch,
|
|
439
|
+
options?: AccountsUpdateOptionalParams
|
|
440
|
+
): Promise<AccountsUpdateResponse> {
|
|
441
|
+
const poller = await this.beginUpdate(
|
|
442
|
+
resourceGroupName,
|
|
443
|
+
accountName,
|
|
444
|
+
body,
|
|
445
|
+
options
|
|
446
|
+
);
|
|
447
|
+
return poller.pollUntilDone();
|
|
216
448
|
}
|
|
217
449
|
|
|
218
450
|
/**
|
|
219
|
-
*
|
|
220
|
-
* @
|
|
221
|
-
* @param
|
|
222
|
-
* @param [options] The optional parameters
|
|
223
|
-
* @returns Promise<Models.AccountsListBySubscriptionNextResponse>
|
|
224
|
-
*/
|
|
225
|
-
listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.AccountsListBySubscriptionNextResponse>;
|
|
226
|
-
/**
|
|
227
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
228
|
-
* @param callback The callback
|
|
229
|
-
*/
|
|
230
|
-
listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.NetAppAccountList>): void;
|
|
231
|
-
/**
|
|
232
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
233
|
-
* @param options The optional parameters
|
|
234
|
-
* @param callback The callback
|
|
451
|
+
* ListBySubscriptionNext
|
|
452
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
453
|
+
* @param options The options parameters.
|
|
235
454
|
*/
|
|
236
|
-
|
|
237
|
-
|
|
455
|
+
private _listBySubscriptionNext(
|
|
456
|
+
nextLink: string,
|
|
457
|
+
options?: AccountsListBySubscriptionNextOptionalParams
|
|
458
|
+
): Promise<AccountsListBySubscriptionNextResponse> {
|
|
238
459
|
return this.client.sendOperationRequest(
|
|
239
|
-
{
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
},
|
|
243
|
-
listBySubscriptionNextOperationSpec,
|
|
244
|
-
callback) as Promise<Models.AccountsListBySubscriptionNextResponse>;
|
|
460
|
+
{ nextLink, options },
|
|
461
|
+
listBySubscriptionNextOperationSpec
|
|
462
|
+
);
|
|
245
463
|
}
|
|
246
464
|
|
|
247
465
|
/**
|
|
248
|
-
*
|
|
249
|
-
* @
|
|
250
|
-
* @param
|
|
251
|
-
* @param
|
|
252
|
-
* @returns Promise<Models.AccountsListNextResponse>
|
|
253
|
-
*/
|
|
254
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.AccountsListNextResponse>;
|
|
255
|
-
/**
|
|
256
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
257
|
-
* @param callback The callback
|
|
258
|
-
*/
|
|
259
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.NetAppAccountList>): void;
|
|
260
|
-
/**
|
|
261
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
262
|
-
* @param options The optional parameters
|
|
263
|
-
* @param callback The callback
|
|
466
|
+
* ListNext
|
|
467
|
+
* @param resourceGroupName The name of the resource group.
|
|
468
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
469
|
+
* @param options The options parameters.
|
|
264
470
|
*/
|
|
265
|
-
|
|
266
|
-
|
|
471
|
+
private _listNext(
|
|
472
|
+
resourceGroupName: string,
|
|
473
|
+
nextLink: string,
|
|
474
|
+
options?: AccountsListNextOptionalParams
|
|
475
|
+
): Promise<AccountsListNextResponse> {
|
|
267
476
|
return this.client.sendOperationRequest(
|
|
268
|
-
{
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
},
|
|
272
|
-
listNextOperationSpec,
|
|
273
|
-
callback) as Promise<Models.AccountsListNextResponse>;
|
|
477
|
+
{ resourceGroupName, nextLink, options },
|
|
478
|
+
listNextOperationSpec
|
|
479
|
+
);
|
|
274
480
|
}
|
|
275
481
|
}
|
|
276
|
-
|
|
277
482
|
// Operation Specifications
|
|
278
|
-
const serializer =
|
|
279
|
-
|
|
483
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
484
|
+
|
|
485
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
486
|
+
path:
|
|
487
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts",
|
|
280
488
|
httpMethod: "GET",
|
|
281
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts",
|
|
282
|
-
urlParameters: [
|
|
283
|
-
Parameters.subscriptionId
|
|
284
|
-
],
|
|
285
|
-
queryParameters: [
|
|
286
|
-
Parameters.apiVersion
|
|
287
|
-
],
|
|
288
|
-
headerParameters: [
|
|
289
|
-
Parameters.acceptLanguage
|
|
290
|
-
],
|
|
291
489
|
responses: {
|
|
292
490
|
200: {
|
|
293
491
|
bodyMapper: Mappers.NetAppAccountList
|
|
294
492
|
},
|
|
295
|
-
default: {
|
|
296
|
-
bodyMapper: Mappers.CloudError
|
|
297
|
-
}
|
|
493
|
+
default: {}
|
|
298
494
|
},
|
|
495
|
+
queryParameters: [Parameters.apiVersion],
|
|
496
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
497
|
+
headerParameters: [Parameters.accept],
|
|
299
498
|
serializer
|
|
300
499
|
};
|
|
301
|
-
|
|
302
|
-
|
|
500
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
501
|
+
path:
|
|
502
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts",
|
|
303
503
|
httpMethod: "GET",
|
|
304
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts",
|
|
305
|
-
urlParameters: [
|
|
306
|
-
Parameters.subscriptionId,
|
|
307
|
-
Parameters.resourceGroupName
|
|
308
|
-
],
|
|
309
|
-
queryParameters: [
|
|
310
|
-
Parameters.apiVersion
|
|
311
|
-
],
|
|
312
|
-
headerParameters: [
|
|
313
|
-
Parameters.acceptLanguage
|
|
314
|
-
],
|
|
315
504
|
responses: {
|
|
316
505
|
200: {
|
|
317
506
|
bodyMapper: Mappers.NetAppAccountList
|
|
318
507
|
},
|
|
319
|
-
default: {
|
|
320
|
-
bodyMapper: Mappers.CloudError
|
|
321
|
-
}
|
|
508
|
+
default: {}
|
|
322
509
|
},
|
|
323
|
-
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
327
|
-
httpMethod: "GET",
|
|
328
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}",
|
|
510
|
+
queryParameters: [Parameters.apiVersion],
|
|
329
511
|
urlParameters: [
|
|
512
|
+
Parameters.$host,
|
|
330
513
|
Parameters.subscriptionId,
|
|
331
|
-
Parameters.resourceGroupName
|
|
332
|
-
Parameters.accountName
|
|
333
|
-
],
|
|
334
|
-
queryParameters: [
|
|
335
|
-
Parameters.apiVersion
|
|
336
|
-
],
|
|
337
|
-
headerParameters: [
|
|
338
|
-
Parameters.acceptLanguage
|
|
514
|
+
Parameters.resourceGroupName
|
|
339
515
|
],
|
|
516
|
+
headerParameters: [Parameters.accept],
|
|
517
|
+
serializer
|
|
518
|
+
};
|
|
519
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
520
|
+
path:
|
|
521
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}",
|
|
522
|
+
httpMethod: "GET",
|
|
340
523
|
responses: {
|
|
341
524
|
200: {
|
|
342
525
|
bodyMapper: Mappers.NetAppAccount
|
|
343
526
|
},
|
|
344
|
-
default: {
|
|
345
|
-
bodyMapper: Mappers.CloudError
|
|
346
|
-
}
|
|
527
|
+
default: {}
|
|
347
528
|
},
|
|
348
|
-
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
352
|
-
httpMethod: "PUT",
|
|
353
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}",
|
|
529
|
+
queryParameters: [Parameters.apiVersion],
|
|
354
530
|
urlParameters: [
|
|
531
|
+
Parameters.$host,
|
|
355
532
|
Parameters.subscriptionId,
|
|
356
533
|
Parameters.resourceGroupName,
|
|
357
534
|
Parameters.accountName
|
|
358
535
|
],
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
parameterPath: "body",
|
|
367
|
-
mapper: {
|
|
368
|
-
...Mappers.NetAppAccount,
|
|
369
|
-
required: true
|
|
370
|
-
}
|
|
371
|
-
},
|
|
536
|
+
headerParameters: [Parameters.accept],
|
|
537
|
+
serializer
|
|
538
|
+
};
|
|
539
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
540
|
+
path:
|
|
541
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}",
|
|
542
|
+
httpMethod: "PUT",
|
|
372
543
|
responses: {
|
|
373
544
|
200: {
|
|
374
545
|
bodyMapper: Mappers.NetAppAccount
|
|
@@ -376,116 +547,107 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
376
547
|
201: {
|
|
377
548
|
bodyMapper: Mappers.NetAppAccount
|
|
378
549
|
},
|
|
379
|
-
|
|
380
|
-
bodyMapper: Mappers.
|
|
381
|
-
}
|
|
550
|
+
202: {
|
|
551
|
+
bodyMapper: Mappers.NetAppAccount
|
|
552
|
+
},
|
|
553
|
+
204: {
|
|
554
|
+
bodyMapper: Mappers.NetAppAccount
|
|
555
|
+
},
|
|
556
|
+
default: {}
|
|
382
557
|
},
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
387
|
-
httpMethod: "DELETE",
|
|
388
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}",
|
|
558
|
+
requestBody: Parameters.body3,
|
|
559
|
+
queryParameters: [Parameters.apiVersion],
|
|
389
560
|
urlParameters: [
|
|
561
|
+
Parameters.$host,
|
|
390
562
|
Parameters.subscriptionId,
|
|
391
563
|
Parameters.resourceGroupName,
|
|
392
564
|
Parameters.accountName
|
|
393
565
|
],
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
],
|
|
397
|
-
headerParameters: [
|
|
398
|
-
Parameters.acceptLanguage
|
|
399
|
-
],
|
|
400
|
-
responses: {
|
|
401
|
-
202: {},
|
|
402
|
-
204: {},
|
|
403
|
-
default: {
|
|
404
|
-
bodyMapper: Mappers.CloudError
|
|
405
|
-
}
|
|
406
|
-
},
|
|
566
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
567
|
+
mediaType: "json",
|
|
407
568
|
serializer
|
|
408
569
|
};
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
570
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
571
|
+
path:
|
|
572
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}",
|
|
573
|
+
httpMethod: "DELETE",
|
|
574
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
575
|
+
queryParameters: [Parameters.apiVersion],
|
|
413
576
|
urlParameters: [
|
|
577
|
+
Parameters.$host,
|
|
414
578
|
Parameters.subscriptionId,
|
|
415
579
|
Parameters.resourceGroupName,
|
|
416
580
|
Parameters.accountName
|
|
417
581
|
],
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
requestBody: {
|
|
425
|
-
parameterPath: "body",
|
|
426
|
-
mapper: {
|
|
427
|
-
...Mappers.NetAppAccountPatch,
|
|
428
|
-
required: true
|
|
429
|
-
}
|
|
430
|
-
},
|
|
582
|
+
serializer
|
|
583
|
+
};
|
|
584
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
585
|
+
path:
|
|
586
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}",
|
|
587
|
+
httpMethod: "PATCH",
|
|
431
588
|
responses: {
|
|
432
589
|
200: {
|
|
433
590
|
bodyMapper: Mappers.NetAppAccount
|
|
434
591
|
},
|
|
592
|
+
201: {
|
|
593
|
+
bodyMapper: Mappers.NetAppAccount
|
|
594
|
+
},
|
|
435
595
|
202: {
|
|
436
596
|
bodyMapper: Mappers.NetAppAccount
|
|
437
597
|
},
|
|
598
|
+
204: {
|
|
599
|
+
bodyMapper: Mappers.NetAppAccount
|
|
600
|
+
},
|
|
438
601
|
default: {
|
|
439
602
|
bodyMapper: Mappers.CloudError
|
|
440
603
|
}
|
|
441
604
|
},
|
|
605
|
+
requestBody: Parameters.body4,
|
|
606
|
+
queryParameters: [Parameters.apiVersion],
|
|
607
|
+
urlParameters: [
|
|
608
|
+
Parameters.$host,
|
|
609
|
+
Parameters.subscriptionId,
|
|
610
|
+
Parameters.resourceGroupName,
|
|
611
|
+
Parameters.accountName
|
|
612
|
+
],
|
|
613
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
614
|
+
mediaType: "json",
|
|
442
615
|
serializer
|
|
443
616
|
};
|
|
444
|
-
|
|
445
|
-
const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
446
|
-
httpMethod: "GET",
|
|
447
|
-
baseUrl: "https://management.azure.com",
|
|
617
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
448
618
|
path: "{nextLink}",
|
|
449
|
-
|
|
450
|
-
Parameters.nextPageLink
|
|
451
|
-
],
|
|
452
|
-
queryParameters: [
|
|
453
|
-
Parameters.apiVersion
|
|
454
|
-
],
|
|
455
|
-
headerParameters: [
|
|
456
|
-
Parameters.acceptLanguage
|
|
457
|
-
],
|
|
619
|
+
httpMethod: "GET",
|
|
458
620
|
responses: {
|
|
459
621
|
200: {
|
|
460
622
|
bodyMapper: Mappers.NetAppAccountList
|
|
461
623
|
},
|
|
462
|
-
default: {
|
|
463
|
-
bodyMapper: Mappers.CloudError
|
|
464
|
-
}
|
|
624
|
+
default: {}
|
|
465
625
|
},
|
|
626
|
+
queryParameters: [Parameters.apiVersion],
|
|
627
|
+
urlParameters: [
|
|
628
|
+
Parameters.$host,
|
|
629
|
+
Parameters.subscriptionId,
|
|
630
|
+
Parameters.nextLink
|
|
631
|
+
],
|
|
632
|
+
headerParameters: [Parameters.accept],
|
|
466
633
|
serializer
|
|
467
634
|
};
|
|
468
|
-
|
|
469
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
470
|
-
httpMethod: "GET",
|
|
471
|
-
baseUrl: "https://management.azure.com",
|
|
635
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
472
636
|
path: "{nextLink}",
|
|
473
|
-
|
|
474
|
-
Parameters.nextPageLink
|
|
475
|
-
],
|
|
476
|
-
queryParameters: [
|
|
477
|
-
Parameters.apiVersion
|
|
478
|
-
],
|
|
479
|
-
headerParameters: [
|
|
480
|
-
Parameters.acceptLanguage
|
|
481
|
-
],
|
|
637
|
+
httpMethod: "GET",
|
|
482
638
|
responses: {
|
|
483
639
|
200: {
|
|
484
640
|
bodyMapper: Mappers.NetAppAccountList
|
|
485
641
|
},
|
|
486
|
-
default: {
|
|
487
|
-
bodyMapper: Mappers.CloudError
|
|
488
|
-
}
|
|
642
|
+
default: {}
|
|
489
643
|
},
|
|
644
|
+
queryParameters: [Parameters.apiVersion],
|
|
645
|
+
urlParameters: [
|
|
646
|
+
Parameters.$host,
|
|
647
|
+
Parameters.subscriptionId,
|
|
648
|
+
Parameters.resourceGroupName,
|
|
649
|
+
Parameters.nextLink
|
|
650
|
+
],
|
|
651
|
+
headerParameters: [Parameters.accept],
|
|
490
652
|
serializer
|
|
491
653
|
};
|