@azure/arm-netapp 14.4.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +70 -78
- package/dist/index.js +8881 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/netAppResourceMappers.js → dist-esm/src/index.js} +5 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +2374 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +162 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +76 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1505 -1644
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +46 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +319 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/netAppManagementClient.d.ts +31 -0
- package/dist-esm/src/netAppManagementClient.d.ts.map +1 -0
- package/dist-esm/src/netAppManagementClient.js +64 -0
- package/dist-esm/src/netAppManagementClient.js.map +1 -0
- package/dist-esm/src/operations/accountBackups.d.ts +55 -0
- package/dist-esm/src/operations/accountBackups.d.ts.map +1 -0
- package/dist-esm/src/operations/accountBackups.js +195 -0
- package/dist-esm/src/operations/accountBackups.js.map +1 -0
- package/dist-esm/src/operations/accounts.d.ts +107 -0
- package/dist-esm/src/operations/accounts.d.ts.map +1 -0
- package/dist-esm/src/operations/accounts.js +482 -0
- package/dist-esm/src/operations/accounts.js.map +1 -0
- package/dist-esm/src/operations/backupPolicies.d.ts +91 -0
- package/dist-esm/src/operations/backupPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/backupPolicies.js +365 -0
- package/dist-esm/src/operations/backupPolicies.js.map +1 -0
- package/dist-esm/src/operations/backups.d.ts +125 -0
- package/dist-esm/src/operations/backups.d.ts.map +1 -0
- package/dist-esm/src/operations/backups.js +484 -0
- package/dist-esm/src/operations/backups.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/netAppResource.d.ts +40 -0
- package/dist-esm/src/operations/netAppResource.d.ts.map +1 -0
- package/dist-esm/src/operations/netAppResource.js +133 -0
- package/dist-esm/src/operations/netAppResource.js.map +1 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.d.ts +35 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.d.ts.map +1 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.js +122 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +88 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/pools.d.ts +99 -0
- package/dist-esm/src/operations/pools.d.ts.map +1 -0
- package/dist-esm/src/operations/pools.js +401 -0
- package/dist-esm/src/operations/pools.js.map +1 -0
- package/dist-esm/src/operations/snapshotPolicies.d.ts +90 -0
- package/dist-esm/src/operations/snapshotPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/snapshotPolicies.js +346 -0
- package/dist-esm/src/operations/snapshotPolicies.js.map +1 -0
- package/dist-esm/src/operations/snapshots.d.ts +109 -0
- package/dist-esm/src/operations/snapshots.d.ts.map +1 -0
- package/dist-esm/src/operations/snapshots.js +423 -0
- package/dist-esm/src/operations/snapshots.js.map +1 -0
- package/dist-esm/src/operations/vaults.d.ts +30 -0
- package/dist-esm/src/operations/vaults.d.ts.map +1 -0
- package/dist-esm/src/operations/vaults.js +97 -0
- package/dist-esm/src/operations/vaults.js.map +1 -0
- package/dist-esm/src/operations/volumeGroups.d.ts +73 -0
- package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/volumeGroups.js +278 -0
- package/dist-esm/src/operations/volumeGroups.js.map +1 -0
- package/dist-esm/src/operations/volumes.d.ts +254 -0
- package/dist-esm/src/operations/volumes.d.ts.map +1 -0
- package/dist-esm/src/operations/volumes.js +956 -0
- package/dist-esm/src/operations/volumes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accountBackups.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/accountBackups.d.ts.map +1 -0
- package/{src/models/netAppResourceMappers.ts → dist-esm/src/operationsInterfaces/accountBackups.js} +2 -8
- package/dist-esm/src/operationsInterfaces/accountBackups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backups.d.ts +106 -0
- package/dist-esm/src/operationsInterfaces/backups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/backups.js +9 -0
- package/dist-esm/src/operationsInterfaces/backups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +21 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.d.ts +32 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.js +9 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.js +9 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/pools.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/pools.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/pools.js} +2 -1
- package/dist-esm/src/operationsInterfaces/pools.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.d.ts +73 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshots.d.ts +90 -0
- package/dist-esm/src/operationsInterfaces/snapshots.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshots.js +9 -0
- package/dist-esm/src/operationsInterfaces/snapshots.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/vaults.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/vaults.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/vaults.js +9 -0
- package/dist-esm/src/operationsInterfaces/vaults.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumes.d.ts +227 -0
- package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumes.js +9 -0
- package/dist-esm/src/operationsInterfaces/volumes.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +70 -32
- package/review/arm-netapp.api.md +1681 -0
- package/rollup.config.js +181 -30
- package/src/{models/operationsMappers.ts → index.ts} +4 -10
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1888 -3345
- package/src/models/mappers.ts +1542 -1652
- package/src/models/parameters.ts +271 -66
- package/src/netAppManagementClient.ts +128 -0
- package/src/operations/accountBackups.ts +187 -132
- package/src/operations/accounts.ts +487 -325
- package/src/operations/backupPolicies.ts +390 -223
- package/src/operations/backups.ts +486 -313
- package/src/operations/index.ts +1 -2
- package/src/operations/netAppResource.ts +112 -204
- package/src/operations/netAppResourceQuotaLimits.ts +100 -90
- package/src/operations/operations.ts +65 -43
- package/src/operations/pools.ts +430 -263
- package/src/operations/snapshotPolicies.ts +345 -275
- package/src/operations/snapshots.ts +454 -226
- package/src/operations/vaults.ts +81 -51
- package/src/operations/volumeGroups.ts +303 -182
- package/src/operations/volumes.ts +1101 -637
- package/src/operationsInterfaces/accountBackups.ts +72 -0
- package/src/operationsInterfaces/accounts.ts +139 -0
- package/src/operationsInterfaces/backupPolicies.ts +147 -0
- package/src/operationsInterfaces/backups.ts +202 -0
- package/src/operationsInterfaces/index.ts +21 -0
- package/src/operationsInterfaces/netAppResource.ts +66 -0
- package/src/operationsInterfaces/netAppResourceQuotaLimits.ts +40 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/pools.ts +144 -0
- package/src/operationsInterfaces/snapshotPolicies.ts +142 -0
- package/src/operationsInterfaces/snapshots.ts +178 -0
- package/src/operationsInterfaces/vaults.ts +26 -0
- package/src/operationsInterfaces/volumeGroups.ts +110 -0
- package/src/operationsInterfaces/volumes.ts +413 -0
- package/tsconfig.json +3 -3
- package/types/arm-netapp.d.ts +3485 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-netapp.js +0 -8542
- package/dist/arm-netapp.js.map +0 -1
- package/dist/arm-netapp.min.js +0 -1
- package/dist/arm-netapp.min.js.map +0 -1
- package/esm/azureNetAppFilesManagementClient.d.ts +0 -37
- package/esm/azureNetAppFilesManagementClient.d.ts.map +0 -1
- package/esm/azureNetAppFilesManagementClient.js +0 -50
- package/esm/azureNetAppFilesManagementClient.js.map +0 -1
- package/esm/azureNetAppFilesManagementClientContext.d.ts +0 -23
- package/esm/azureNetAppFilesManagementClientContext.d.ts.map +0 -1
- package/esm/azureNetAppFilesManagementClientContext.js +0 -61
- package/esm/azureNetAppFilesManagementClientContext.js.map +0 -1
- package/esm/models/accountBackupsMappers.d.ts +0 -2
- package/esm/models/accountBackupsMappers.d.ts.map +0 -1
- package/esm/models/accountBackupsMappers.js +0 -9
- package/esm/models/accountBackupsMappers.js.map +0 -1
- package/esm/models/accountsMappers.d.ts +0 -2
- package/esm/models/accountsMappers.d.ts.map +0 -1
- package/esm/models/accountsMappers.js +0 -9
- package/esm/models/accountsMappers.js.map +0 -1
- package/esm/models/backupPoliciesMappers.d.ts +0 -2
- package/esm/models/backupPoliciesMappers.d.ts.map +0 -1
- package/esm/models/backupPoliciesMappers.js +0 -9
- package/esm/models/backupPoliciesMappers.js.map +0 -1
- package/esm/models/backupsMappers.d.ts +0 -2
- package/esm/models/backupsMappers.d.ts.map +0 -1
- package/esm/models/backupsMappers.js +0 -9
- package/esm/models/backupsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -3856
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -78
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/netAppResourceMappers.d.ts +0 -2
- package/esm/models/netAppResourceMappers.d.ts.map +0 -1
- package/esm/models/netAppResourceMappers.js.map +0 -1
- package/esm/models/netAppResourceQuotaLimitsMappers.d.ts +0 -2
- package/esm/models/netAppResourceQuotaLimitsMappers.d.ts.map +0 -1
- package/esm/models/netAppResourceQuotaLimitsMappers.js +0 -9
- package/esm/models/netAppResourceQuotaLimitsMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -17
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -183
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/poolsMappers.d.ts +0 -2
- package/esm/models/poolsMappers.d.ts.map +0 -1
- package/esm/models/poolsMappers.js +0 -9
- package/esm/models/poolsMappers.js.map +0 -1
- package/esm/models/snapshotPoliciesMappers.d.ts +0 -2
- package/esm/models/snapshotPoliciesMappers.d.ts.map +0 -1
- package/esm/models/snapshotPoliciesMappers.js +0 -9
- package/esm/models/snapshotPoliciesMappers.js.map +0 -1
- package/esm/models/snapshotsMappers.d.ts +0 -2
- package/esm/models/snapshotsMappers.d.ts.map +0 -1
- package/esm/models/snapshotsMappers.js +0 -9
- package/esm/models/snapshotsMappers.js.map +0 -1
- package/esm/models/vaultsMappers.d.ts +0 -2
- package/esm/models/vaultsMappers.d.ts.map +0 -1
- package/esm/models/vaultsMappers.js +0 -9
- package/esm/models/vaultsMappers.js.map +0 -1
- package/esm/models/volumeGroupsMappers.d.ts +0 -2
- package/esm/models/volumeGroupsMappers.d.ts.map +0 -1
- package/esm/models/volumeGroupsMappers.js +0 -9
- package/esm/models/volumeGroupsMappers.js.map +0 -1
- package/esm/models/volumesMappers.d.ts +0 -2
- package/esm/models/volumesMappers.d.ts.map +0 -1
- package/esm/models/volumesMappers.js +0 -9
- package/esm/models/volumesMappers.js.map +0 -1
- package/esm/operations/accountBackups.d.ts +0 -81
- package/esm/operations/accountBackups.d.ts.map +0 -1
- package/esm/operations/accountBackups.js +0 -145
- package/esm/operations/accountBackups.js.map +0 -1
- package/esm/operations/accounts.d.ts +0 -167
- package/esm/operations/accounts.d.ts.map +0 -1
- package/esm/operations/accounts.js +0 -344
- package/esm/operations/accounts.js.map +0 -1
- package/esm/operations/backupPolicies.d.ts +0 -125
- package/esm/operations/backupPolicies.d.ts.map +0 -1
- package/esm/operations/backupPolicies.js +0 -277
- package/esm/operations/backupPolicies.js.map +0 -1
- package/esm/operations/backups.d.ts +0 -203
- package/esm/operations/backups.d.ts.map +0 -1
- package/esm/operations/backups.js +0 -379
- package/esm/operations/backups.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/netAppResource.d.ts +0 -115
- package/esm/operations/netAppResource.d.ts.map +0 -1
- package/esm/operations/netAppResource.js +0 -145
- package/esm/operations/netAppResource.js.map +0 -1
- package/esm/operations/netAppResourceQuotaLimits.d.ts +0 -54
- package/esm/operations/netAppResourceQuotaLimits.d.ts.map +0 -1
- package/esm/operations/netAppResourceQuotaLimits.js +0 -86
- package/esm/operations/netAppResourceQuotaLimits.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -29
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -50
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/pools.d.ts +0 -144
- package/esm/operations/pools.d.ts.map +0 -1
- package/esm/operations/pools.js +0 -302
- package/esm/operations/pools.js.map +0 -1
- package/esm/operations/snapshotPolicies.d.ts +0 -149
- package/esm/operations/snapshotPolicies.d.ts.map +0 -1
- package/esm/operations/snapshotPolicies.js +0 -281
- package/esm/operations/snapshotPolicies.js.map +0 -1
- package/esm/operations/snapshots.d.ts +0 -149
- package/esm/operations/snapshots.d.ts.map +0 -1
- package/esm/operations/snapshots.js +0 -312
- package/esm/operations/snapshots.js.map +0 -1
- package/esm/operations/vaults.d.ts +0 -35
- package/esm/operations/vaults.d.ts.map +0 -1
- package/esm/operations/vaults.js +0 -57
- package/esm/operations/vaults.js.map +0 -1
- package/esm/operations/volumeGroups.d.ts +0 -107
- package/esm/operations/volumeGroups.d.ts.map +0 -1
- package/esm/operations/volumeGroups.js +0 -212
- package/esm/operations/volumeGroups.js.map +0 -1
- package/esm/operations/volumes.d.ts +0 -344
- package/esm/operations/volumes.d.ts.map +0 -1
- package/esm/operations/volumes.js +0 -800
- package/esm/operations/volumes.js.map +0 -1
- package/src/azureNetAppFilesManagementClient.ts +0 -72
- package/src/azureNetAppFilesManagementClientContext.ts +0 -68
- package/src/models/accountBackupsMappers.ts +0 -51
- package/src/models/accountsMappers.ts +0 -51
- package/src/models/backupPoliciesMappers.ts +0 -51
- package/src/models/backupsMappers.ts +0 -53
- package/src/models/netAppResourceQuotaLimitsMappers.ts +0 -51
- package/src/models/poolsMappers.ts +0 -51
- package/src/models/snapshotPoliciesMappers.ts +0 -53
- package/src/models/snapshotsMappers.ts +0 -51
- package/src/models/vaultsMappers.ts +0 -51
- package/src/models/volumeGroupsMappers.ts +0 -54
- package/src/models/volumesMappers.ts +0 -56
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing Snapshots operations. */
|
|
16
|
+
export class SnapshotsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class Snapshots class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* List all snapshots associated with the volume
|
|
26
|
+
* @param resourceGroupName The name of the resource group.
|
|
27
|
+
* @param accountName The name of the NetApp account
|
|
28
|
+
* @param poolName The name of the capacity pool
|
|
29
|
+
* @param volumeName The name of the volume
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
list(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
33
|
+
const iter = this.listPagingAll(resourceGroupName, accountName, poolName, volumeName, options);
|
|
34
|
+
return {
|
|
35
|
+
next() {
|
|
36
|
+
return iter.next();
|
|
37
|
+
},
|
|
38
|
+
[Symbol.asyncIterator]() {
|
|
39
|
+
return this;
|
|
40
|
+
},
|
|
41
|
+
byPage: () => {
|
|
42
|
+
return this.listPagingPage(resourceGroupName, accountName, poolName, volumeName, options);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
listPagingPage(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
48
|
+
let result = yield __await(this._list(resourceGroupName, accountName, poolName, volumeName, options));
|
|
49
|
+
yield yield __await(result.value || []);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
listPagingAll(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
53
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
54
|
+
var e_1, _a;
|
|
55
|
+
try {
|
|
56
|
+
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, poolName, volumeName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
57
|
+
const page = _c.value;
|
|
58
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
62
|
+
finally {
|
|
63
|
+
try {
|
|
64
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
65
|
+
}
|
|
66
|
+
finally { if (e_1) throw e_1.error; }
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* List all snapshots associated with the volume
|
|
72
|
+
* @param resourceGroupName The name of the resource group.
|
|
73
|
+
* @param accountName The name of the NetApp account
|
|
74
|
+
* @param poolName The name of the capacity pool
|
|
75
|
+
* @param volumeName The name of the volume
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
_list(resourceGroupName, accountName, poolName, volumeName, options) {
|
|
79
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, poolName, volumeName, options }, listOperationSpec);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get details of the specified snapshot
|
|
83
|
+
* @param resourceGroupName The name of the resource group.
|
|
84
|
+
* @param accountName The name of the NetApp account
|
|
85
|
+
* @param poolName The name of the capacity pool
|
|
86
|
+
* @param volumeName The name of the volume
|
|
87
|
+
* @param snapshotName The name of the snapshot
|
|
88
|
+
* @param options The options parameters.
|
|
89
|
+
*/
|
|
90
|
+
get(resourceGroupName, accountName, poolName, volumeName, snapshotName, options) {
|
|
91
|
+
return this.client.sendOperationRequest({
|
|
92
|
+
resourceGroupName,
|
|
93
|
+
accountName,
|
|
94
|
+
poolName,
|
|
95
|
+
volumeName,
|
|
96
|
+
snapshotName,
|
|
97
|
+
options
|
|
98
|
+
}, getOperationSpec);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Create the specified snapshot within the given volume
|
|
102
|
+
* @param resourceGroupName The name of the resource group.
|
|
103
|
+
* @param accountName The name of the NetApp account
|
|
104
|
+
* @param poolName The name of the capacity pool
|
|
105
|
+
* @param volumeName The name of the volume
|
|
106
|
+
* @param snapshotName The name of the snapshot
|
|
107
|
+
* @param body Snapshot object supplied in the body of the operation.
|
|
108
|
+
* @param options The options parameters.
|
|
109
|
+
*/
|
|
110
|
+
beginCreate(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, options) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
return this.client.sendOperationRequest(args, spec);
|
|
114
|
+
});
|
|
115
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
var _a;
|
|
117
|
+
let currentRawResponse = undefined;
|
|
118
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
119
|
+
const callback = (rawResponse, flatResponse) => {
|
|
120
|
+
currentRawResponse = rawResponse;
|
|
121
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
122
|
+
};
|
|
123
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
124
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
125
|
+
return {
|
|
126
|
+
flatResponse,
|
|
127
|
+
rawResponse: {
|
|
128
|
+
statusCode: currentRawResponse.status,
|
|
129
|
+
body: currentRawResponse.parsedBody,
|
|
130
|
+
headers: currentRawResponse.headers.toJSON()
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
});
|
|
134
|
+
const lro = new LroImpl(sendOperation, {
|
|
135
|
+
resourceGroupName,
|
|
136
|
+
accountName,
|
|
137
|
+
poolName,
|
|
138
|
+
volumeName,
|
|
139
|
+
snapshotName,
|
|
140
|
+
body,
|
|
141
|
+
options
|
|
142
|
+
}, createOperationSpec);
|
|
143
|
+
return new LroEngine(lro, {
|
|
144
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
145
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
146
|
+
lroResourceLocationConfig: "location"
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Create the specified snapshot within the given volume
|
|
152
|
+
* @param resourceGroupName The name of the resource group.
|
|
153
|
+
* @param accountName The name of the NetApp account
|
|
154
|
+
* @param poolName The name of the capacity pool
|
|
155
|
+
* @param volumeName The name of the volume
|
|
156
|
+
* @param snapshotName The name of the snapshot
|
|
157
|
+
* @param body Snapshot object supplied in the body of the operation.
|
|
158
|
+
* @param options The options parameters.
|
|
159
|
+
*/
|
|
160
|
+
beginCreateAndWait(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, options) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
const poller = yield this.beginCreate(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, options);
|
|
163
|
+
return poller.pollUntilDone();
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Patch a snapshot
|
|
168
|
+
* @param resourceGroupName The name of the resource group.
|
|
169
|
+
* @param accountName The name of the NetApp account
|
|
170
|
+
* @param poolName The name of the capacity pool
|
|
171
|
+
* @param volumeName The name of the volume
|
|
172
|
+
* @param snapshotName The name of the snapshot
|
|
173
|
+
* @param body Snapshot object supplied in the body of the operation.
|
|
174
|
+
* @param options The options parameters.
|
|
175
|
+
*/
|
|
176
|
+
beginUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, options) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
return this.client.sendOperationRequest(args, spec);
|
|
180
|
+
});
|
|
181
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
var _a;
|
|
183
|
+
let currentRawResponse = undefined;
|
|
184
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
185
|
+
const callback = (rawResponse, flatResponse) => {
|
|
186
|
+
currentRawResponse = rawResponse;
|
|
187
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
188
|
+
};
|
|
189
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
190
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
191
|
+
return {
|
|
192
|
+
flatResponse,
|
|
193
|
+
rawResponse: {
|
|
194
|
+
statusCode: currentRawResponse.status,
|
|
195
|
+
body: currentRawResponse.parsedBody,
|
|
196
|
+
headers: currentRawResponse.headers.toJSON()
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
});
|
|
200
|
+
const lro = new LroImpl(sendOperation, {
|
|
201
|
+
resourceGroupName,
|
|
202
|
+
accountName,
|
|
203
|
+
poolName,
|
|
204
|
+
volumeName,
|
|
205
|
+
snapshotName,
|
|
206
|
+
body,
|
|
207
|
+
options
|
|
208
|
+
}, updateOperationSpec);
|
|
209
|
+
return new LroEngine(lro, {
|
|
210
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
211
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
212
|
+
lroResourceLocationConfig: "location"
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Patch a snapshot
|
|
218
|
+
* @param resourceGroupName The name of the resource group.
|
|
219
|
+
* @param accountName The name of the NetApp account
|
|
220
|
+
* @param poolName The name of the capacity pool
|
|
221
|
+
* @param volumeName The name of the volume
|
|
222
|
+
* @param snapshotName The name of the snapshot
|
|
223
|
+
* @param body Snapshot object supplied in the body of the operation.
|
|
224
|
+
* @param options The options parameters.
|
|
225
|
+
*/
|
|
226
|
+
beginUpdateAndWait(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, options) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
const poller = yield this.beginUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, options);
|
|
229
|
+
return poller.pollUntilDone();
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Delete snapshot
|
|
234
|
+
* @param resourceGroupName The name of the resource group.
|
|
235
|
+
* @param accountName The name of the NetApp account
|
|
236
|
+
* @param poolName The name of the capacity pool
|
|
237
|
+
* @param volumeName The name of the volume
|
|
238
|
+
* @param snapshotName The name of the snapshot
|
|
239
|
+
* @param options The options parameters.
|
|
240
|
+
*/
|
|
241
|
+
beginDelete(resourceGroupName, accountName, poolName, volumeName, snapshotName, options) {
|
|
242
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
243
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
244
|
+
return this.client.sendOperationRequest(args, spec);
|
|
245
|
+
});
|
|
246
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
247
|
+
var _a;
|
|
248
|
+
let currentRawResponse = undefined;
|
|
249
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
250
|
+
const callback = (rawResponse, flatResponse) => {
|
|
251
|
+
currentRawResponse = rawResponse;
|
|
252
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
253
|
+
};
|
|
254
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
255
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
256
|
+
return {
|
|
257
|
+
flatResponse,
|
|
258
|
+
rawResponse: {
|
|
259
|
+
statusCode: currentRawResponse.status,
|
|
260
|
+
body: currentRawResponse.parsedBody,
|
|
261
|
+
headers: currentRawResponse.headers.toJSON()
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
});
|
|
265
|
+
const lro = new LroImpl(sendOperation, {
|
|
266
|
+
resourceGroupName,
|
|
267
|
+
accountName,
|
|
268
|
+
poolName,
|
|
269
|
+
volumeName,
|
|
270
|
+
snapshotName,
|
|
271
|
+
options
|
|
272
|
+
}, deleteOperationSpec);
|
|
273
|
+
return new LroEngine(lro, {
|
|
274
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
275
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
276
|
+
lroResourceLocationConfig: "location"
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Delete snapshot
|
|
282
|
+
* @param resourceGroupName The name of the resource group.
|
|
283
|
+
* @param accountName The name of the NetApp account
|
|
284
|
+
* @param poolName The name of the capacity pool
|
|
285
|
+
* @param volumeName The name of the volume
|
|
286
|
+
* @param snapshotName The name of the snapshot
|
|
287
|
+
* @param options The options parameters.
|
|
288
|
+
*/
|
|
289
|
+
beginDeleteAndWait(resourceGroupName, accountName, poolName, volumeName, snapshotName, options) {
|
|
290
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
+
const poller = yield this.beginDelete(resourceGroupName, accountName, poolName, volumeName, snapshotName, options);
|
|
292
|
+
return poller.pollUntilDone();
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
// Operation Specifications
|
|
297
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
298
|
+
const listOperationSpec = {
|
|
299
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots",
|
|
300
|
+
httpMethod: "GET",
|
|
301
|
+
responses: {
|
|
302
|
+
200: {
|
|
303
|
+
bodyMapper: Mappers.SnapshotsList
|
|
304
|
+
},
|
|
305
|
+
default: {}
|
|
306
|
+
},
|
|
307
|
+
queryParameters: [Parameters.apiVersion],
|
|
308
|
+
urlParameters: [
|
|
309
|
+
Parameters.$host,
|
|
310
|
+
Parameters.subscriptionId,
|
|
311
|
+
Parameters.resourceGroupName,
|
|
312
|
+
Parameters.accountName,
|
|
313
|
+
Parameters.poolName,
|
|
314
|
+
Parameters.volumeName
|
|
315
|
+
],
|
|
316
|
+
headerParameters: [Parameters.accept],
|
|
317
|
+
serializer
|
|
318
|
+
};
|
|
319
|
+
const getOperationSpec = {
|
|
320
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}",
|
|
321
|
+
httpMethod: "GET",
|
|
322
|
+
responses: {
|
|
323
|
+
200: {
|
|
324
|
+
bodyMapper: Mappers.Snapshot
|
|
325
|
+
},
|
|
326
|
+
default: {}
|
|
327
|
+
},
|
|
328
|
+
queryParameters: [Parameters.apiVersion],
|
|
329
|
+
urlParameters: [
|
|
330
|
+
Parameters.$host,
|
|
331
|
+
Parameters.subscriptionId,
|
|
332
|
+
Parameters.resourceGroupName,
|
|
333
|
+
Parameters.accountName,
|
|
334
|
+
Parameters.poolName,
|
|
335
|
+
Parameters.volumeName,
|
|
336
|
+
Parameters.snapshotName
|
|
337
|
+
],
|
|
338
|
+
headerParameters: [Parameters.accept],
|
|
339
|
+
serializer
|
|
340
|
+
};
|
|
341
|
+
const createOperationSpec = {
|
|
342
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}",
|
|
343
|
+
httpMethod: "PUT",
|
|
344
|
+
responses: {
|
|
345
|
+
200: {
|
|
346
|
+
bodyMapper: Mappers.Snapshot
|
|
347
|
+
},
|
|
348
|
+
201: {
|
|
349
|
+
bodyMapper: Mappers.Snapshot
|
|
350
|
+
},
|
|
351
|
+
202: {
|
|
352
|
+
bodyMapper: Mappers.Snapshot
|
|
353
|
+
},
|
|
354
|
+
204: {
|
|
355
|
+
bodyMapper: Mappers.Snapshot
|
|
356
|
+
},
|
|
357
|
+
default: {}
|
|
358
|
+
},
|
|
359
|
+
requestBody: Parameters.body13,
|
|
360
|
+
queryParameters: [Parameters.apiVersion],
|
|
361
|
+
urlParameters: [
|
|
362
|
+
Parameters.$host,
|
|
363
|
+
Parameters.subscriptionId,
|
|
364
|
+
Parameters.resourceGroupName,
|
|
365
|
+
Parameters.accountName,
|
|
366
|
+
Parameters.poolName,
|
|
367
|
+
Parameters.volumeName,
|
|
368
|
+
Parameters.snapshotName
|
|
369
|
+
],
|
|
370
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
371
|
+
mediaType: "json",
|
|
372
|
+
serializer
|
|
373
|
+
};
|
|
374
|
+
const updateOperationSpec = {
|
|
375
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}",
|
|
376
|
+
httpMethod: "PATCH",
|
|
377
|
+
responses: {
|
|
378
|
+
200: {
|
|
379
|
+
bodyMapper: Mappers.Snapshot
|
|
380
|
+
},
|
|
381
|
+
201: {
|
|
382
|
+
bodyMapper: Mappers.Snapshot
|
|
383
|
+
},
|
|
384
|
+
202: {
|
|
385
|
+
bodyMapper: Mappers.Snapshot
|
|
386
|
+
},
|
|
387
|
+
204: {
|
|
388
|
+
bodyMapper: Mappers.Snapshot
|
|
389
|
+
},
|
|
390
|
+
default: {}
|
|
391
|
+
},
|
|
392
|
+
requestBody: Parameters.body14,
|
|
393
|
+
queryParameters: [Parameters.apiVersion],
|
|
394
|
+
urlParameters: [
|
|
395
|
+
Parameters.$host,
|
|
396
|
+
Parameters.subscriptionId,
|
|
397
|
+
Parameters.resourceGroupName,
|
|
398
|
+
Parameters.accountName,
|
|
399
|
+
Parameters.poolName,
|
|
400
|
+
Parameters.volumeName,
|
|
401
|
+
Parameters.snapshotName
|
|
402
|
+
],
|
|
403
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
404
|
+
mediaType: "json",
|
|
405
|
+
serializer
|
|
406
|
+
};
|
|
407
|
+
const deleteOperationSpec = {
|
|
408
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}",
|
|
409
|
+
httpMethod: "DELETE",
|
|
410
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
411
|
+
queryParameters: [Parameters.apiVersion],
|
|
412
|
+
urlParameters: [
|
|
413
|
+
Parameters.$host,
|
|
414
|
+
Parameters.subscriptionId,
|
|
415
|
+
Parameters.resourceGroupName,
|
|
416
|
+
Parameters.accountName,
|
|
417
|
+
Parameters.poolName,
|
|
418
|
+
Parameters.volumeName,
|
|
419
|
+
Parameters.snapshotName
|
|
420
|
+
],
|
|
421
|
+
serializer
|
|
422
|
+
};
|
|
423
|
+
//# sourceMappingURL=snapshots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshots.js","sourceRoot":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ChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,mMAAmM;IACrM,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC9D,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,YAAY;KACxB;IACD,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Vaults } from "../operationsInterfaces";
|
|
3
|
+
import { NetAppManagementClient } from "../netAppManagementClient";
|
|
4
|
+
import { Vault, VaultsListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing Vaults operations. */
|
|
6
|
+
export declare class VaultsImpl implements Vaults {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Vaults class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: NetAppManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* List vaults for a Netapp Account
|
|
15
|
+
* @param resourceGroupName The name of the resource group.
|
|
16
|
+
* @param accountName The name of the NetApp account
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
list(resourceGroupName: string, accountName: string, options?: VaultsListOptionalParams): PagedAsyncIterableIterator<Vault>;
|
|
20
|
+
private listPagingPage;
|
|
21
|
+
private listPagingAll;
|
|
22
|
+
/**
|
|
23
|
+
* List vaults for a Netapp Account
|
|
24
|
+
* @param resourceGroupName The name of the resource group.
|
|
25
|
+
* @param accountName The name of the NetApp account
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
private _list;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=vaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaults.d.ts","sourceRoot":"","sources":["../../../src/operations/vaults.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAIjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,wBAAwB,EAAsB,MAAM,WAAW,CAAC;AAGhF,0CAA0C;AAC1C,qBAAa,UAAW,YAAW,MAAM;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD;;;OAGG;gBACS,MAAM,EAAE,sBAAsB;IAI1C;;;;;OAKG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,wBAAwB,GACjC,0BAA0B,CAAC,KAAK,CAAC;YAerB,cAAc;YASd,aAAa;IAc5B;;;;;OAKG;IACH,OAAO,CAAC,KAAK;CAUd"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Vaults operations. */
|
|
14
|
+
export class VaultsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Vaults class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* List vaults for a Netapp Account
|
|
24
|
+
* @param resourceGroupName The name of the resource group.
|
|
25
|
+
* @param accountName The name of the NetApp account
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
list(resourceGroupName, accountName, options) {
|
|
29
|
+
const iter = this.listPagingAll(resourceGroupName, accountName, options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listPagingPage(resourceGroupName, accountName, options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listPagingPage(resourceGroupName, accountName, options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
44
|
+
let result = yield __await(this._list(resourceGroupName, accountName, options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
listPagingAll(resourceGroupName, accountName, options) {
|
|
49
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
50
|
+
var e_1, _a;
|
|
51
|
+
try {
|
|
52
|
+
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
53
|
+
const page = _c.value;
|
|
54
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
58
|
+
finally {
|
|
59
|
+
try {
|
|
60
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
61
|
+
}
|
|
62
|
+
finally { if (e_1) throw e_1.error; }
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* List vaults for a Netapp Account
|
|
68
|
+
* @param resourceGroupName The name of the resource group.
|
|
69
|
+
* @param accountName The name of the NetApp account
|
|
70
|
+
* @param options The options parameters.
|
|
71
|
+
*/
|
|
72
|
+
_list(resourceGroupName, accountName, options) {
|
|
73
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
// Operation Specifications
|
|
77
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
78
|
+
const listOperationSpec = {
|
|
79
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/vaults",
|
|
80
|
+
httpMethod: "GET",
|
|
81
|
+
responses: {
|
|
82
|
+
200: {
|
|
83
|
+
bodyMapper: Mappers.VaultList
|
|
84
|
+
},
|
|
85
|
+
default: {}
|
|
86
|
+
},
|
|
87
|
+
queryParameters: [Parameters.apiVersion],
|
|
88
|
+
urlParameters: [
|
|
89
|
+
Parameters.$host,
|
|
90
|
+
Parameters.subscriptionId,
|
|
91
|
+
Parameters.resourceGroupName,
|
|
92
|
+
Parameters.accountName
|
|
93
|
+
],
|
|
94
|
+
headerParameters: [Parameters.accept],
|
|
95
|
+
serializer
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=vaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaults.js","sourceRoot":"","sources":["../../../src/operations/vaults.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAInD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAM,OAAO,UAAU;IAGrB;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAkC;QAElC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;YACtE,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,WAAmB,EACnB,OAAkC;;YAElC,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA,CAAC;YACvE,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;QAC3B,CAAC;KAAA;IAEc,aAAa,CAC1B,iBAAyB,EACzB,WAAmB,EACnB,OAAkC;;;;gBAElC,KAAyB,IAAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAC1C,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAA,IAAA;oBAJU,MAAM,IAAI,WAAA,CAAA;oBAKnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;iBACb;;;;;;;;;QACH,CAAC;KAAA;IAED;;;;;OAKG;IACK,KAAK,CACX,iBAAyB,EACzB,WAAmB,EACnB,OAAkC;QAElC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC3C,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,mIAAmI;IACrI,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;QACD,OAAO,EAAE,EAAE;KACZ;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { VolumeGroups } from "../operationsInterfaces";
|
|
3
|
+
import { NetAppManagementClient } from "../netAppManagementClient";
|
|
4
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
5
|
+
import { VolumeGroup, VolumeGroupsListByNetAppAccountOptionalParams, VolumeGroupsGetOptionalParams, VolumeGroupsGetResponse, VolumeGroupDetails, VolumeGroupsCreateOptionalParams, VolumeGroupsCreateResponse, VolumeGroupsDeleteOptionalParams } from "../models";
|
|
6
|
+
/** Class containing VolumeGroups operations. */
|
|
7
|
+
export declare class VolumeGroupsImpl implements VolumeGroups {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class VolumeGroups class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: NetAppManagementClient);
|
|
14
|
+
/**
|
|
15
|
+
* List all volume groups for given account
|
|
16
|
+
* @param resourceGroupName The name of the resource group.
|
|
17
|
+
* @param accountName The name of the NetApp account
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
listByNetAppAccount(resourceGroupName: string, accountName: string, options?: VolumeGroupsListByNetAppAccountOptionalParams): PagedAsyncIterableIterator<VolumeGroup>;
|
|
21
|
+
private listByNetAppAccountPagingPage;
|
|
22
|
+
private listByNetAppAccountPagingAll;
|
|
23
|
+
/**
|
|
24
|
+
* List all volume groups for given account
|
|
25
|
+
* @param resourceGroupName The name of the resource group.
|
|
26
|
+
* @param accountName The name of the NetApp account
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
private _listByNetAppAccount;
|
|
30
|
+
/**
|
|
31
|
+
* Get details of the specified volume group
|
|
32
|
+
* @param resourceGroupName The name of the resource group.
|
|
33
|
+
* @param accountName The name of the NetApp account
|
|
34
|
+
* @param volumeGroupName The name of the volumeGroup
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
get(resourceGroupName: string, accountName: string, volumeGroupName: string, options?: VolumeGroupsGetOptionalParams): Promise<VolumeGroupsGetResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Create a volume group along with specified volumes
|
|
40
|
+
* @param resourceGroupName The name of the resource group.
|
|
41
|
+
* @param accountName The name of the NetApp account
|
|
42
|
+
* @param volumeGroupName The name of the volumeGroup
|
|
43
|
+
* @param body Volume Group object supplied in the body of the operation.
|
|
44
|
+
* @param options The options parameters.
|
|
45
|
+
*/
|
|
46
|
+
beginCreate(resourceGroupName: string, accountName: string, volumeGroupName: string, body: VolumeGroupDetails, options?: VolumeGroupsCreateOptionalParams): Promise<PollerLike<PollOperationState<VolumeGroupsCreateResponse>, VolumeGroupsCreateResponse>>;
|
|
47
|
+
/**
|
|
48
|
+
* Create a volume group along with specified volumes
|
|
49
|
+
* @param resourceGroupName The name of the resource group.
|
|
50
|
+
* @param accountName The name of the NetApp account
|
|
51
|
+
* @param volumeGroupName The name of the volumeGroup
|
|
52
|
+
* @param body Volume Group object supplied in the body of the operation.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
beginCreateAndWait(resourceGroupName: string, accountName: string, volumeGroupName: string, body: VolumeGroupDetails, options?: VolumeGroupsCreateOptionalParams): Promise<VolumeGroupsCreateResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Delete the specified volume group only if there are no volumes under volume group.
|
|
58
|
+
* @param resourceGroupName The name of the resource group.
|
|
59
|
+
* @param accountName The name of the NetApp account
|
|
60
|
+
* @param volumeGroupName The name of the volumeGroup
|
|
61
|
+
* @param options The options parameters.
|
|
62
|
+
*/
|
|
63
|
+
beginDelete(resourceGroupName: string, accountName: string, volumeGroupName: string, options?: VolumeGroupsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
64
|
+
/**
|
|
65
|
+
* Delete the specified volume group only if there are no volumes under volume group.
|
|
66
|
+
* @param resourceGroupName The name of the resource group.
|
|
67
|
+
* @param accountName The name of the NetApp account
|
|
68
|
+
* @param volumeGroupName The name of the volumeGroup
|
|
69
|
+
* @param options The options parameters.
|
|
70
|
+
*/
|
|
71
|
+
beginDeleteAndWait(resourceGroupName: string, accountName: string, volumeGroupName: string, options?: VolumeGroupsDeleteOptionalParams): Promise<void>;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=volumeGroups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumeGroups.d.ts","sourceRoot":"","sources":["../../../src/operations/volumeGroups.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,WAAW,EACX,6CAA6C,EAE7C,6BAA6B,EAC7B,uBAAuB,EACvB,kBAAkB,EAClB,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,WAAW,CAAC;AAGnB,gDAAgD;AAChD,qBAAa,gBAAiB,YAAW,YAAY;IACnD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD;;;OAGG;gBACS,MAAM,EAAE,sBAAsB;IAI1C;;;;;OAKG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,6CAA6C,GACtD,0BAA0B,CAAC,WAAW,CAAC;YAuB3B,6BAA6B;YAa7B,4BAA4B;IAc3C;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAW5B;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAOnC;;;;;;;OAOG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,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