@azure/arm-netapp 14.1.1 → 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 +71 -79
- 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/dist-esm/src/index.js +12 -0
- 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 +2254 -1426
- 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 +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +21 -0
- 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/operationsMappers.ts → dist-esm/src/operationsInterfaces/accountBackups.js} +2 -10
- 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/{src/models/netAppResourceMappers.ts → dist-esm/src/operationsInterfaces/accounts.js} +2 -8
- 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/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/backupPolicies.js} +2 -2
- 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/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1977 -2621
- package/src/models/mappers.ts +2392 -1509
- package/src/models/parameters.ts +281 -51
- package/src/netAppManagementClient.ts +128 -0
- package/src/operations/accountBackups.ts +187 -132
- package/src/operations/accounts.ts +506 -243
- package/src/operations/backupPolicies.ts +390 -223
- package/src/operations/backups.ts +486 -313
- package/src/operations/index.ts +3 -2
- package/src/operations/netAppResource.ts +112 -204
- package/src/operations/netAppResourceQuotaLimits.ts +150 -0
- package/src/operations/operations.ts +65 -43
- package/src/operations/pools.ts +430 -263
- package/src/operations/snapshotPolicies.ts +352 -282
- package/src/operations/snapshots.ts +459 -231
- package/src/operations/vaults.ts +81 -51
- package/src/operations/volumeGroups.ts +408 -0
- 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/{esm/operations/index.js → src/operationsInterfaces/index.ts} +4 -3
- 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 -7016
- 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 -35
- package/esm/azureNetAppFilesManagementClient.d.ts.map +0 -1
- package/esm/azureNetAppFilesManagementClient.js +0 -48
- 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 -3070
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -65
- 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 +0 -9
- package/esm/models/netAppResourceMappers.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.map +0 -1
- package/esm/models/parameters.d.ts +0 -15
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -158
- 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/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 -132
- package/esm/operations/accounts.d.ts.map +0 -1
- package/esm/operations/accounts.js +0 -288
- 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/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/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 -68
- package/src/azureNetAppFilesManagementClientContext.ts +0 -68
- package/src/models/accountBackupsMappers.ts +0 -44
- package/src/models/accountsMappers.ts +0 -44
- package/src/models/backupPoliciesMappers.ts +0 -44
- package/src/models/backupsMappers.ts +0 -46
- package/src/models/poolsMappers.ts +0 -44
- package/src/models/snapshotPoliciesMappers.ts +0 -46
- package/src/models/snapshotsMappers.ts +0 -44
- package/src/models/vaultsMappers.ts +0 -44
- package/src/models/volumesMappers.ts +0 -49
|
@@ -3,295 +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
|
-
* List and describe all NetApp accounts in the
|
|
31
|
-
* @
|
|
32
|
-
* @param resourceGroupName The name of the resource group.
|
|
33
|
-
* @param [options] The optional parameters
|
|
34
|
-
* @returns Promise<Models.AccountsListResponse>
|
|
35
|
-
*/
|
|
36
|
-
list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.AccountsListResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* @param resourceGroupName The name of the resource group.
|
|
39
|
-
* @param callback The callback
|
|
51
|
+
* List and describe all NetApp accounts in the subscription.
|
|
52
|
+
* @param options The options parameters.
|
|
40
53
|
*/
|
|
41
|
-
|
|
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;
|
|
64
|
+
},
|
|
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
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
42
92
|
/**
|
|
93
|
+
* List and describe all NetApp accounts in the resource group.
|
|
43
94
|
* @param resourceGroupName The name of the resource group.
|
|
44
|
-
* @param options The
|
|
45
|
-
* @param callback The callback
|
|
95
|
+
* @param options The options parameters.
|
|
46
96
|
*/
|
|
47
|
-
list(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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(
|
|
51
124
|
resourceGroupName,
|
|
125
|
+
continuationToken,
|
|
52
126
|
options
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
+
}
|
|
56
140
|
}
|
|
57
141
|
|
|
58
142
|
/**
|
|
59
|
-
*
|
|
60
|
-
* @
|
|
61
|
-
* @param resourceGroupName The name of the resource group.
|
|
62
|
-
* @param accountName The name of the NetApp account
|
|
63
|
-
* @param [options] The optional parameters
|
|
64
|
-
* @returns Promise<Models.AccountsGetResponse>
|
|
143
|
+
* List and describe all NetApp accounts in the subscription.
|
|
144
|
+
* @param options The options parameters.
|
|
65
145
|
*/
|
|
66
|
-
|
|
146
|
+
private _listBySubscription(
|
|
147
|
+
options?: AccountsListBySubscriptionOptionalParams
|
|
148
|
+
): Promise<AccountsListBySubscriptionResponse> {
|
|
149
|
+
return this.client.sendOperationRequest(
|
|
150
|
+
{ options },
|
|
151
|
+
listBySubscriptionOperationSpec
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
|
|
67
155
|
/**
|
|
156
|
+
* List and describe all NetApp accounts in the resource group.
|
|
68
157
|
* @param resourceGroupName The name of the resource group.
|
|
69
|
-
* @param
|
|
70
|
-
* @param callback The callback
|
|
158
|
+
* @param options The options parameters.
|
|
71
159
|
*/
|
|
72
|
-
|
|
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
|
+
|
|
73
170
|
/**
|
|
171
|
+
* Get the NetApp account
|
|
74
172
|
* @param resourceGroupName The name of the resource group.
|
|
75
173
|
* @param accountName The name of the NetApp account
|
|
76
|
-
* @param options The
|
|
77
|
-
* @param callback The callback
|
|
174
|
+
* @param options The options parameters.
|
|
78
175
|
*/
|
|
79
|
-
get(
|
|
80
|
-
|
|
176
|
+
get(
|
|
177
|
+
resourceGroupName: string,
|
|
178
|
+
accountName: string,
|
|
179
|
+
options?: AccountsGetOptionalParams
|
|
180
|
+
): Promise<AccountsGetResponse> {
|
|
81
181
|
return this.client.sendOperationRequest(
|
|
82
|
-
{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
options
|
|
86
|
-
},
|
|
87
|
-
getOperationSpec,
|
|
88
|
-
callback) as Promise<Models.AccountsGetResponse>;
|
|
182
|
+
{ resourceGroupName, accountName, options },
|
|
183
|
+
getOperationSpec
|
|
184
|
+
);
|
|
89
185
|
}
|
|
90
186
|
|
|
91
187
|
/**
|
|
92
188
|
* Create or update the specified NetApp account within the resource group
|
|
93
|
-
* @summary Create or update a NetApp account
|
|
94
|
-
* @param body NetApp Account object supplied in the body of the operation.
|
|
95
189
|
* @param resourceGroupName The name of the resource group.
|
|
96
190
|
* @param accountName The name of the NetApp account
|
|
97
|
-
* @param
|
|
98
|
-
* @
|
|
191
|
+
* @param body NetApp Account object supplied in the body of the operation.
|
|
192
|
+
* @param options The options parameters.
|
|
99
193
|
*/
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
+
});
|
|
103
254
|
}
|
|
104
255
|
|
|
105
256
|
/**
|
|
106
|
-
*
|
|
107
|
-
* @summary Delete a NetApp account
|
|
257
|
+
* Create or update the specified NetApp account within the resource group
|
|
108
258
|
* @param resourceGroupName The name of the resource group.
|
|
109
259
|
* @param accountName The name of the NetApp account
|
|
110
|
-
* @param
|
|
111
|
-
* @
|
|
260
|
+
* @param body NetApp Account object supplied in the body of the operation.
|
|
261
|
+
* @param options The options parameters.
|
|
112
262
|
*/
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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();
|
|
116
276
|
}
|
|
117
277
|
|
|
118
278
|
/**
|
|
119
|
-
*
|
|
120
|
-
* @summary Update a NetApp account
|
|
121
|
-
* @param body NetApp Account object supplied in the body of the operation.
|
|
279
|
+
* Delete the specified NetApp account
|
|
122
280
|
* @param resourceGroupName The name of the resource group.
|
|
123
281
|
* @param accountName The name of the NetApp account
|
|
124
|
-
* @param
|
|
125
|
-
* @returns Promise<Models.AccountsUpdateResponse>
|
|
282
|
+
* @param options The options parameters.
|
|
126
283
|
*/
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
+
});
|
|
130
338
|
}
|
|
131
339
|
|
|
132
340
|
/**
|
|
133
|
-
*
|
|
134
|
-
* @summary Create or update a NetApp account
|
|
135
|
-
* @param body NetApp Account object supplied in the body of the operation.
|
|
341
|
+
* Delete the specified NetApp account
|
|
136
342
|
* @param resourceGroupName The name of the resource group.
|
|
137
343
|
* @param accountName The name of the NetApp account
|
|
138
|
-
* @param
|
|
139
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
344
|
+
* @param options The options parameters.
|
|
140
345
|
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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();
|
|
151
357
|
}
|
|
152
358
|
|
|
153
359
|
/**
|
|
154
|
-
*
|
|
155
|
-
* @summary Delete a NetApp account
|
|
360
|
+
* Patch the specified NetApp account
|
|
156
361
|
* @param resourceGroupName The name of the resource group.
|
|
157
362
|
* @param accountName The name of the NetApp account
|
|
158
|
-
* @param
|
|
159
|
-
* @
|
|
363
|
+
* @param body NetApp Account object supplied in the body of the operation.
|
|
364
|
+
* @param options The options parameters.
|
|
160
365
|
*/
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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
|
+
});
|
|
170
426
|
}
|
|
171
427
|
|
|
172
428
|
/**
|
|
173
429
|
* Patch the specified NetApp account
|
|
174
|
-
* @summary Update a NetApp account
|
|
175
|
-
* @param body NetApp Account object supplied in the body of the operation.
|
|
176
430
|
* @param resourceGroupName The name of the resource group.
|
|
177
431
|
* @param accountName The name of the NetApp account
|
|
178
|
-
* @param
|
|
179
|
-
* @
|
|
432
|
+
* @param body NetApp Account object supplied in the body of the operation.
|
|
433
|
+
* @param options The options parameters.
|
|
180
434
|
*/
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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();
|
|
191
448
|
}
|
|
192
449
|
|
|
193
450
|
/**
|
|
194
|
-
*
|
|
195
|
-
* @
|
|
196
|
-
* @param
|
|
197
|
-
* @param [options] The optional parameters
|
|
198
|
-
* @returns Promise<Models.AccountsListNextResponse>
|
|
199
|
-
*/
|
|
200
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.AccountsListNextResponse>;
|
|
201
|
-
/**
|
|
202
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
203
|
-
* @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.
|
|
204
454
|
*/
|
|
205
|
-
|
|
455
|
+
private _listBySubscriptionNext(
|
|
456
|
+
nextLink: string,
|
|
457
|
+
options?: AccountsListBySubscriptionNextOptionalParams
|
|
458
|
+
): Promise<AccountsListBySubscriptionNextResponse> {
|
|
459
|
+
return this.client.sendOperationRequest(
|
|
460
|
+
{ nextLink, options },
|
|
461
|
+
listBySubscriptionNextOperationSpec
|
|
462
|
+
);
|
|
463
|
+
}
|
|
464
|
+
|
|
206
465
|
/**
|
|
207
|
-
*
|
|
208
|
-
* @param
|
|
209
|
-
* @param
|
|
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.
|
|
210
470
|
*/
|
|
211
|
-
|
|
212
|
-
|
|
471
|
+
private _listNext(
|
|
472
|
+
resourceGroupName: string,
|
|
473
|
+
nextLink: string,
|
|
474
|
+
options?: AccountsListNextOptionalParams
|
|
475
|
+
): Promise<AccountsListNextResponse> {
|
|
213
476
|
return this.client.sendOperationRequest(
|
|
214
|
-
{
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
},
|
|
218
|
-
listNextOperationSpec,
|
|
219
|
-
callback) as Promise<Models.AccountsListNextResponse>;
|
|
477
|
+
{ resourceGroupName, nextLink, options },
|
|
478
|
+
listNextOperationSpec
|
|
479
|
+
);
|
|
220
480
|
}
|
|
221
481
|
}
|
|
222
|
-
|
|
223
482
|
// Operation Specifications
|
|
224
|
-
const serializer =
|
|
225
|
-
|
|
483
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
484
|
+
|
|
485
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
486
|
+
path:
|
|
487
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts",
|
|
226
488
|
httpMethod: "GET",
|
|
227
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts",
|
|
228
|
-
urlParameters: [
|
|
229
|
-
Parameters.subscriptionId,
|
|
230
|
-
Parameters.resourceGroupName
|
|
231
|
-
],
|
|
232
|
-
queryParameters: [
|
|
233
|
-
Parameters.apiVersion
|
|
234
|
-
],
|
|
235
|
-
headerParameters: [
|
|
236
|
-
Parameters.acceptLanguage
|
|
237
|
-
],
|
|
238
489
|
responses: {
|
|
239
490
|
200: {
|
|
240
491
|
bodyMapper: Mappers.NetAppAccountList
|
|
241
492
|
},
|
|
242
|
-
default: {
|
|
243
|
-
bodyMapper: Mappers.CloudError
|
|
244
|
-
}
|
|
493
|
+
default: {}
|
|
245
494
|
},
|
|
495
|
+
queryParameters: [Parameters.apiVersion],
|
|
496
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
497
|
+
headerParameters: [Parameters.accept],
|
|
246
498
|
serializer
|
|
247
499
|
};
|
|
248
|
-
|
|
249
|
-
|
|
500
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
501
|
+
path:
|
|
502
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts",
|
|
250
503
|
httpMethod: "GET",
|
|
251
|
-
|
|
504
|
+
responses: {
|
|
505
|
+
200: {
|
|
506
|
+
bodyMapper: Mappers.NetAppAccountList
|
|
507
|
+
},
|
|
508
|
+
default: {}
|
|
509
|
+
},
|
|
510
|
+
queryParameters: [Parameters.apiVersion],
|
|
252
511
|
urlParameters: [
|
|
512
|
+
Parameters.$host,
|
|
253
513
|
Parameters.subscriptionId,
|
|
254
|
-
Parameters.resourceGroupName
|
|
255
|
-
Parameters.accountName
|
|
256
|
-
],
|
|
257
|
-
queryParameters: [
|
|
258
|
-
Parameters.apiVersion
|
|
259
|
-
],
|
|
260
|
-
headerParameters: [
|
|
261
|
-
Parameters.acceptLanguage
|
|
514
|
+
Parameters.resourceGroupName
|
|
262
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",
|
|
263
523
|
responses: {
|
|
264
524
|
200: {
|
|
265
525
|
bodyMapper: Mappers.NetAppAccount
|
|
266
526
|
},
|
|
267
|
-
default: {
|
|
268
|
-
bodyMapper: Mappers.CloudError
|
|
269
|
-
}
|
|
527
|
+
default: {}
|
|
270
528
|
},
|
|
271
|
-
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
275
|
-
httpMethod: "PUT",
|
|
276
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}",
|
|
529
|
+
queryParameters: [Parameters.apiVersion],
|
|
277
530
|
urlParameters: [
|
|
531
|
+
Parameters.$host,
|
|
278
532
|
Parameters.subscriptionId,
|
|
279
533
|
Parameters.resourceGroupName,
|
|
280
534
|
Parameters.accountName
|
|
281
535
|
],
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
parameterPath: "body",
|
|
290
|
-
mapper: {
|
|
291
|
-
...Mappers.NetAppAccount,
|
|
292
|
-
required: true
|
|
293
|
-
}
|
|
294
|
-
},
|
|
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",
|
|
295
543
|
responses: {
|
|
296
544
|
200: {
|
|
297
545
|
bodyMapper: Mappers.NetAppAccount
|
|
@@ -299,92 +547,107 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
299
547
|
201: {
|
|
300
548
|
bodyMapper: Mappers.NetAppAccount
|
|
301
549
|
},
|
|
302
|
-
|
|
303
|
-
bodyMapper: Mappers.
|
|
304
|
-
}
|
|
550
|
+
202: {
|
|
551
|
+
bodyMapper: Mappers.NetAppAccount
|
|
552
|
+
},
|
|
553
|
+
204: {
|
|
554
|
+
bodyMapper: Mappers.NetAppAccount
|
|
555
|
+
},
|
|
556
|
+
default: {}
|
|
305
557
|
},
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
310
|
-
httpMethod: "DELETE",
|
|
311
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}",
|
|
558
|
+
requestBody: Parameters.body3,
|
|
559
|
+
queryParameters: [Parameters.apiVersion],
|
|
312
560
|
urlParameters: [
|
|
561
|
+
Parameters.$host,
|
|
313
562
|
Parameters.subscriptionId,
|
|
314
563
|
Parameters.resourceGroupName,
|
|
315
564
|
Parameters.accountName
|
|
316
565
|
],
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
],
|
|
320
|
-
headerParameters: [
|
|
321
|
-
Parameters.acceptLanguage
|
|
322
|
-
],
|
|
323
|
-
responses: {
|
|
324
|
-
202: {},
|
|
325
|
-
204: {},
|
|
326
|
-
default: {
|
|
327
|
-
bodyMapper: Mappers.CloudError
|
|
328
|
-
}
|
|
329
|
-
},
|
|
566
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
567
|
+
mediaType: "json",
|
|
330
568
|
serializer
|
|
331
569
|
};
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
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],
|
|
336
576
|
urlParameters: [
|
|
577
|
+
Parameters.$host,
|
|
337
578
|
Parameters.subscriptionId,
|
|
338
579
|
Parameters.resourceGroupName,
|
|
339
580
|
Parameters.accountName
|
|
340
581
|
],
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
requestBody: {
|
|
348
|
-
parameterPath: "body",
|
|
349
|
-
mapper: {
|
|
350
|
-
...Mappers.NetAppAccountPatch,
|
|
351
|
-
required: true
|
|
352
|
-
}
|
|
353
|
-
},
|
|
582
|
+
serializer
|
|
583
|
+
};
|
|
584
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
585
|
+
path:
|
|
586
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}",
|
|
587
|
+
httpMethod: "PATCH",
|
|
354
588
|
responses: {
|
|
355
589
|
200: {
|
|
356
590
|
bodyMapper: Mappers.NetAppAccount
|
|
357
591
|
},
|
|
592
|
+
201: {
|
|
593
|
+
bodyMapper: Mappers.NetAppAccount
|
|
594
|
+
},
|
|
358
595
|
202: {
|
|
359
596
|
bodyMapper: Mappers.NetAppAccount
|
|
360
597
|
},
|
|
598
|
+
204: {
|
|
599
|
+
bodyMapper: Mappers.NetAppAccount
|
|
600
|
+
},
|
|
361
601
|
default: {
|
|
362
602
|
bodyMapper: Mappers.CloudError
|
|
363
603
|
}
|
|
364
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",
|
|
365
615
|
serializer
|
|
366
616
|
};
|
|
367
|
-
|
|
368
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
369
|
-
httpMethod: "GET",
|
|
370
|
-
baseUrl: "https://management.azure.com",
|
|
617
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
371
618
|
path: "{nextLink}",
|
|
619
|
+
httpMethod: "GET",
|
|
620
|
+
responses: {
|
|
621
|
+
200: {
|
|
622
|
+
bodyMapper: Mappers.NetAppAccountList
|
|
623
|
+
},
|
|
624
|
+
default: {}
|
|
625
|
+
},
|
|
626
|
+
queryParameters: [Parameters.apiVersion],
|
|
372
627
|
urlParameters: [
|
|
373
|
-
Parameters
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
Parameters.apiVersion
|
|
377
|
-
],
|
|
378
|
-
headerParameters: [
|
|
379
|
-
Parameters.acceptLanguage
|
|
628
|
+
Parameters.$host,
|
|
629
|
+
Parameters.subscriptionId,
|
|
630
|
+
Parameters.nextLink
|
|
380
631
|
],
|
|
632
|
+
headerParameters: [Parameters.accept],
|
|
633
|
+
serializer
|
|
634
|
+
};
|
|
635
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
636
|
+
path: "{nextLink}",
|
|
637
|
+
httpMethod: "GET",
|
|
381
638
|
responses: {
|
|
382
639
|
200: {
|
|
383
640
|
bodyMapper: Mappers.NetAppAccountList
|
|
384
641
|
},
|
|
385
|
-
default: {
|
|
386
|
-
bodyMapper: Mappers.CloudError
|
|
387
|
-
}
|
|
642
|
+
default: {}
|
|
388
643
|
},
|
|
644
|
+
queryParameters: [Parameters.apiVersion],
|
|
645
|
+
urlParameters: [
|
|
646
|
+
Parameters.$host,
|
|
647
|
+
Parameters.subscriptionId,
|
|
648
|
+
Parameters.resourceGroupName,
|
|
649
|
+
Parameters.nextLink
|
|
650
|
+
],
|
|
651
|
+
headerParameters: [Parameters.accept],
|
|
389
652
|
serializer
|
|
390
653
|
};
|