@azure/arm-netapp 17.0.2-alpha.20230302.1 → 18.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 +52 -8
- package/dist/index.js +1454 -1117
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/accountBackupsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/accountBackupsGetSample.js +1 -1
- package/dist-esm/samples-dev/accountBackupsListSample.js +1 -1
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +21 -1
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/accountsGetSample.js +1 -1
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/accountsListSample.js +1 -1
- package/dist-esm/samples-dev/accountsRenewCredentialsSample.js +1 -1
- package/dist-esm/samples-dev/accountsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesCreateSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesGetSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesListSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/backupsCreateSample.js +1 -1
- package/dist-esm/samples-dev/backupsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/backupsGetSample.js +1 -1
- package/dist-esm/samples-dev/backupsGetStatusSample.js +1 -1
- package/dist-esm/samples-dev/backupsGetVolumeRestoreStatusSample.js +1 -1
- package/dist-esm/samples-dev/backupsListSample.js +1 -1
- package/dist-esm/samples-dev/backupsRestoreFilesSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupsRestoreFilesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupsRestoreFilesSample.js +46 -0
- package/dist-esm/samples-dev/backupsRestoreFilesSample.js.map +1 -0
- package/dist-esm/samples-dev/backupsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/netAppResourceCheckFilePathAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/netAppResourceCheckNameAvailabilitySample.js +2 -2
- package/dist-esm/samples-dev/netAppResourceCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/netAppResourceCheckQuotaAvailabilitySample.js +2 -2
- package/dist-esm/samples-dev/netAppResourceCheckQuotaAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/netAppResourceQueryRegionInfoSample.js +1 -1
- package/dist-esm/samples-dev/netAppResourceQuotaLimitsGetSample.js +1 -1
- package/dist-esm/samples-dev/netAppResourceQuotaLimitsListSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/poolsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/poolsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/poolsGetSample.js +1 -1
- package/dist-esm/samples-dev/poolsListSample.js +1 -1
- package/dist-esm/samples-dev/poolsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/snapshotPoliciesCreateSample.js +1 -1
- package/dist-esm/samples-dev/snapshotPoliciesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/snapshotPoliciesGetSample.js +1 -1
- package/dist-esm/samples-dev/snapshotPoliciesListSample.js +1 -1
- package/dist-esm/samples-dev/snapshotPoliciesListVolumesSample.js +1 -1
- package/dist-esm/samples-dev/snapshotPoliciesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/snapshotsCreateSample.js +1 -1
- package/dist-esm/samples-dev/snapshotsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/snapshotsGetSample.js +1 -1
- package/dist-esm/samples-dev/snapshotsListSample.js +1 -1
- package/dist-esm/samples-dev/snapshotsRestoreFilesSample.js +1 -1
- package/dist-esm/samples-dev/snapshotsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/subvolumesCreateSample.js +1 -1
- package/dist-esm/samples-dev/subvolumesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/subvolumesGetMetadataSample.js +1 -1
- package/dist-esm/samples-dev/subvolumesGetSample.js +1 -1
- package/dist-esm/samples-dev/subvolumesListByVolumeSample.js +1 -1
- package/dist-esm/samples-dev/subvolumesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js +8 -8
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/volumeGroupsGetSample.js +1 -1
- package/dist-esm/samples-dev/volumeGroupsListByNetAppAccountSample.js +1 -1
- package/dist-esm/samples-dev/volumeQuotaRulesCreateSample.js +1 -1
- package/dist-esm/samples-dev/volumeQuotaRulesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/volumeQuotaRulesGetSample.js +1 -1
- package/dist-esm/samples-dev/volumeQuotaRulesListByVolumeSample.js +1 -1
- package/dist-esm/samples-dev/volumeQuotaRulesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/volumesAuthorizeReplicationSample.js +1 -1
- package/dist-esm/samples-dev/volumesBreakFileLocksSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumesBreakFileLocksSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{vaultsListSample.js → volumesBreakFileLocksSample.js} +16 -23
- package/dist-esm/samples-dev/volumesBreakFileLocksSample.js.map +1 -0
- package/dist-esm/samples-dev/volumesBreakReplicationSample.js +1 -1
- package/dist-esm/samples-dev/volumesCreateOrUpdateSample.js +1 -3
- package/dist-esm/samples-dev/volumesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/volumesDeleteReplicationSample.js +1 -1
- package/dist-esm/samples-dev/volumesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/volumesFinalizeRelocationSample.js +1 -1
- package/dist-esm/samples-dev/volumesGetSample.js +1 -1
- package/dist-esm/samples-dev/volumesListReplicationsSample.js +1 -1
- package/dist-esm/samples-dev/volumesListSample.js +1 -1
- package/dist-esm/samples-dev/volumesPoolChangeSample.js +1 -1
- package/dist-esm/samples-dev/volumesReInitializeReplicationSample.js +1 -1
- package/dist-esm/samples-dev/volumesReestablishReplicationSample.js +1 -1
- package/dist-esm/samples-dev/volumesRelocateSample.js +1 -1
- package/dist-esm/samples-dev/volumesReplicationStatusSample.js +1 -1
- package/dist-esm/samples-dev/volumesResetCifsPasswordSample.js +1 -1
- package/dist-esm/samples-dev/volumesResyncReplicationSample.js +1 -1
- package/dist-esm/samples-dev/volumesRevertRelocationSample.js +1 -1
- package/dist-esm/samples-dev/volumesRevertSample.js +1 -1
- package/dist-esm/samples-dev/volumesUpdateSample.js +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +218 -202
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +16 -8
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +9 -7
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +392 -371
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +9 -7
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +40 -21
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/netAppManagementClient.d.ts +2 -4
- package/dist-esm/src/netAppManagementClient.d.ts.map +1 -1
- package/dist-esm/src/netAppManagementClient.js +4 -6
- package/dist-esm/src/netAppManagementClient.js.map +1 -1
- package/dist-esm/src/operations/accountBackups.d.ts +7 -7
- package/dist-esm/src/operations/accountBackups.d.ts.map +1 -1
- package/dist-esm/src/operations/accountBackups.js +16 -12
- package/dist-esm/src/operations/accountBackups.js.map +1 -1
- package/dist-esm/src/operations/accounts.d.ts +17 -17
- package/dist-esm/src/operations/accounts.d.ts.map +1 -1
- package/dist-esm/src/operations/accounts.js +51 -34
- package/dist-esm/src/operations/accounts.js.map +1 -1
- package/dist-esm/src/operations/backupPolicies.d.ts +13 -13
- package/dist-esm/src/operations/backupPolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/backupPolicies.js +40 -28
- package/dist-esm/src/operations/backupPolicies.js.map +1 -1
- package/dist-esm/src/operations/backups.d.ts +38 -16
- package/dist-esm/src/operations/backups.d.ts.map +1 -1
- package/dist-esm/src/operations/backups.js +155 -52
- package/dist-esm/src/operations/backups.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +0 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +0 -1
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/netAppResource.d.ts +8 -8
- package/dist-esm/src/operations/netAppResource.d.ts.map +1 -1
- package/dist-esm/src/operations/netAppResource.js +10 -10
- package/dist-esm/src/operations/netAppResource.js.map +1 -1
- package/dist-esm/src/operations/netAppResourceQuotaLimits.d.ts +3 -3
- package/dist-esm/src/operations/netAppResourceQuotaLimits.js +3 -3
- package/dist-esm/src/operations/pools.d.ts +14 -14
- package/dist-esm/src/operations/pools.d.ts.map +1 -1
- package/dist-esm/src/operations/pools.js +39 -27
- package/dist-esm/src/operations/pools.js.map +1 -1
- package/dist-esm/src/operations/snapshotPolicies.d.ts +12 -12
- package/dist-esm/src/operations/snapshotPolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/snapshotPolicies.js +37 -23
- package/dist-esm/src/operations/snapshotPolicies.js.map +1 -1
- package/dist-esm/src/operations/snapshots.d.ts +16 -16
- package/dist-esm/src/operations/snapshots.d.ts.map +1 -1
- package/dist-esm/src/operations/snapshots.js +82 -66
- package/dist-esm/src/operations/snapshots.js.map +1 -1
- package/dist-esm/src/operations/subvolumes.d.ts +17 -17
- package/dist-esm/src/operations/subvolumes.d.ts.map +1 -1
- package/dist-esm/src/operations/subvolumes.js +82 -66
- package/dist-esm/src/operations/subvolumes.js.map +1 -1
- package/dist-esm/src/operations/volumeGroups.d.ts +10 -10
- package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/volumeGroups.js +26 -18
- package/dist-esm/src/operations/volumeGroups.js.map +1 -1
- package/dist-esm/src/operations/volumeQuotaRules.d.ts +13 -13
- package/dist-esm/src/operations/volumeQuotaRules.d.ts.map +1 -1
- package/dist-esm/src/operations/volumeQuotaRules.js +63 -51
- package/dist-esm/src/operations/volumeQuotaRules.js.map +1 -1
- package/dist-esm/src/operations/volumes.d.ts +72 -54
- package/dist-esm/src/operations/volumes.d.ts.map +1 -1
- package/dist-esm/src/operations/volumes.js +295 -115
- package/dist-esm/src/operations/volumes.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/accountBackups.d.ts +6 -6
- package/dist-esm/src/operationsInterfaces/accountBackups.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +15 -15
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts +12 -12
- package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/backups.d.ts +37 -15
- package/dist-esm/src/operationsInterfaces/backups.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -1
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/netAppResource.d.ts +8 -8
- package/dist-esm/src/operationsInterfaces/netAppResource.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/pools.d.ts +12 -12
- package/dist-esm/src/operationsInterfaces/pools.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.d.ts +11 -11
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/snapshots.d.ts +15 -15
- package/dist-esm/src/operationsInterfaces/snapshots.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/subvolumes.d.ts +15 -15
- package/dist-esm/src/operationsInterfaces/subvolumes.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts +9 -9
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/volumeQuotaRules.d.ts +12 -12
- package/dist-esm/src/operationsInterfaces/volumeQuotaRules.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/volumes.d.ts +69 -51
- package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -1
- package/package.json +7 -7
- package/review/arm-netapp.api.md +135 -113
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +229 -206
- package/src/models/mappers.ts +425 -366
- package/src/models/parameters.ts +43 -20
- package/src/netAppManagementClient.ts +3 -8
- package/src/operations/accountBackups.ts +21 -17
- package/src/operations/accounts.ts +67 -56
- package/src/operations/backupPolicies.ts +55 -45
- package/src/operations/backups.ts +195 -46
- package/src/operations/index.ts +0 -1
- package/src/operations/netAppResource.ts +10 -10
- package/src/operations/netAppResourceQuotaLimits.ts +3 -3
- package/src/operations/pools.ts +53 -43
- package/src/operations/snapshotPolicies.ts +47 -34
- package/src/operations/snapshots.ts +67 -57
- package/src/operations/subvolumes.ts +72 -59
- package/src/operations/volumeGroups.ts +36 -29
- package/src/operations/volumeQuotaRules.ts +55 -45
- package/src/operations/volumes.ts +359 -191
- package/src/operationsInterfaces/accountBackups.ts +6 -6
- package/src/operationsInterfaces/accounts.ts +17 -17
- package/src/operationsInterfaces/backupPolicies.ts +14 -14
- package/src/operationsInterfaces/backups.ts +61 -15
- package/src/operationsInterfaces/index.ts +0 -1
- package/src/operationsInterfaces/netAppResource.ts +8 -8
- package/src/operationsInterfaces/netAppResourceQuotaLimits.ts +2 -2
- package/src/operationsInterfaces/pools.ts +13 -13
- package/src/operationsInterfaces/snapshotPolicies.ts +12 -12
- package/src/operationsInterfaces/snapshots.ts +17 -17
- package/src/operationsInterfaces/subvolumes.ts +18 -18
- package/src/operationsInterfaces/volumeGroups.ts +10 -10
- package/src/operationsInterfaces/volumeQuotaRules.ts +14 -14
- package/src/operationsInterfaces/volumes.ts +85 -51
- package/types/arm-netapp.d.ts +378 -331
- package/dist-esm/samples-dev/vaultsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/vaultsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/vaultsListSample.js.map +0 -1
- package/dist-esm/src/operations/vaults.d.ts +0 -30
- package/dist-esm/src/operations/vaults.d.ts.map +0 -1
- package/dist-esm/src/operations/vaults.js +0 -101
- package/dist-esm/src/operations/vaults.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/vaults.d.ts +0 -13
- package/dist-esm/src/operationsInterfaces/vaults.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/vaults.js +0 -9
- package/dist-esm/src/operationsInterfaces/vaults.js.map +0 -1
- package/src/operations/vaults.ts +0 -127
- package/src/operationsInterfaces/vaults.ts +0 -26
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Patch a snapshot
|
|
17
17
|
*
|
|
18
18
|
* @summary Patch a snapshot
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Snapshots_Update.json
|
|
20
20
|
*/
|
|
21
21
|
function snapshotsUpdate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath
|
|
17
17
|
*
|
|
18
18
|
* @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Subvolumes_Create.json
|
|
20
20
|
*/
|
|
21
21
|
function subvolumesCreate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Delete subvolume
|
|
17
17
|
*
|
|
18
18
|
* @summary Delete subvolume
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Subvolumes_Delete.json
|
|
20
20
|
*/
|
|
21
21
|
function subvolumesDelete() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get details of the specified subvolume
|
|
17
17
|
*
|
|
18
18
|
* @summary Get details of the specified subvolume
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Subvolumes_Metadata.json
|
|
20
20
|
*/
|
|
21
21
|
function subvolumesMetadata() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Returns the path associated with the subvolumeName provided
|
|
17
17
|
*
|
|
18
18
|
* @summary Returns the path associated with the subvolumeName provided
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Subvolumes_Get.json
|
|
20
20
|
*/
|
|
21
21
|
function subvolumesGet() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Returns a list of the subvolumes in the volume
|
|
17
17
|
*
|
|
18
18
|
* @summary Returns a list of the subvolumes in the volume
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Subvolumes_List.json
|
|
20
20
|
*/
|
|
21
21
|
function subvolumesList() {
|
|
22
22
|
var e_1, _a;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Patch a subvolume
|
|
17
17
|
*
|
|
18
18
|
* @summary Patch a subvolume
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Subvolumes_Update.json
|
|
20
20
|
*/
|
|
21
21
|
function subvolumesUpdate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Create a volume group along with specified volumes
|
|
17
17
|
*
|
|
18
18
|
* @summary Create a volume group along with specified volumes
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeGroups_Create.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeGroupsCreate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -29,15 +29,15 @@ function volumeGroupsCreate() {
|
|
|
29
29
|
groupMetaData: {
|
|
30
30
|
applicationIdentifier: "DEV",
|
|
31
31
|
applicationType: "SAP-HANA",
|
|
32
|
-
deploymentSpecId: "
|
|
32
|
+
deploymentSpecId: "20542149-bfca-5618-1879-9863dc6767f1",
|
|
33
33
|
groupDescription: "Volume group"
|
|
34
34
|
},
|
|
35
35
|
location: "westus",
|
|
36
36
|
volumes: [
|
|
37
37
|
{
|
|
38
|
-
name: "
|
|
38
|
+
name: "test-data-mnt00001",
|
|
39
39
|
capacityPoolResourceId: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1",
|
|
40
|
-
creationToken: "
|
|
40
|
+
creationToken: "test-data-mnt00001",
|
|
41
41
|
proximityPlacementGroup: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg",
|
|
42
42
|
serviceLevel: "Premium",
|
|
43
43
|
subnetId: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
|
|
@@ -46,9 +46,9 @@ function volumeGroupsCreate() {
|
|
|
46
46
|
volumeSpecName: "data"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
|
-
name: "
|
|
49
|
+
name: "test-log-mnt00001",
|
|
50
50
|
capacityPoolResourceId: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1",
|
|
51
|
-
creationToken: "
|
|
51
|
+
creationToken: "test-log-mnt00001",
|
|
52
52
|
proximityPlacementGroup: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg",
|
|
53
53
|
serviceLevel: "Premium",
|
|
54
54
|
subnetId: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
|
|
@@ -57,9 +57,9 @@ function volumeGroupsCreate() {
|
|
|
57
57
|
volumeSpecName: "log"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
name: "
|
|
60
|
+
name: "test-shared",
|
|
61
61
|
capacityPoolResourceId: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1",
|
|
62
|
-
creationToken: "
|
|
62
|
+
creationToken: "test-shared",
|
|
63
63
|
proximityPlacementGroup: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg",
|
|
64
64
|
serviceLevel: "Premium",
|
|
65
65
|
subnetId: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumeGroupsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/volumeGroupsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAsB,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH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CAAC;IACvB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group.
|
|
17
17
|
*
|
|
18
18
|
* @summary Delete the specified volume group only if there are no volumes under volume group.
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeGroups_Delete.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeGroupsDelete() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get details of the specified volume group
|
|
17
17
|
*
|
|
18
18
|
* @summary Get details of the specified volume group
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeGroups_Get.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeGroupsGet() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to List all volume groups for given account
|
|
17
17
|
*
|
|
18
18
|
* @summary List all volume groups for given account
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeGroups_List.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeGroupsList() {
|
|
22
22
|
var e_1, _a;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Create the specified quota rule within the given volume
|
|
17
17
|
*
|
|
18
18
|
* @summary Create the specified quota rule within the given volume
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeQuotaRules_Create.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeQuotaRulesCreate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Delete quota rule
|
|
17
17
|
*
|
|
18
18
|
* @summary Delete quota rule
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeQuotaRules_Delete.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeQuotaRulesDelete() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get details of the specified quota rule
|
|
17
17
|
*
|
|
18
18
|
* @summary Get details of the specified quota rule
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeQuotaRules_Get.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeQuotaRulesGet() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to List all quota rules associated with the volume
|
|
17
17
|
*
|
|
18
18
|
* @summary List all quota rules associated with the volume
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeQuotaRules_List.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeQuotaRulesList() {
|
|
22
22
|
var e_1, _a;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Patch a quota rule
|
|
17
17
|
*
|
|
18
18
|
* @summary Patch a quota rule
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/VolumeQuotaRules_Update.json
|
|
20
20
|
*/
|
|
21
21
|
function volumeQuotaRulesUpdate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Authorize the replication connection on the source volume
|
|
17
17
|
*
|
|
18
18
|
* @summary Authorize the replication connection on the source volume
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_AuthorizeReplication.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesAuthorizeReplication() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumesBreakFileLocksSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumesBreakFileLocksSample.ts"],"names":[],"mappings":""}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { NetAppManagementClient } from "@azure/arm-netapp";
|
|
@@ -13,41 +13,34 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
15
15
|
/**
|
|
16
|
-
* This sample demonstrates how to
|
|
16
|
+
* This sample demonstrates how to Break all the file locks on a volume
|
|
17
17
|
*
|
|
18
|
-
* @summary
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
18
|
+
* @summary Break all the file locks on a volume
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_BreakFileLocks.json
|
|
20
20
|
*/
|
|
21
|
-
function
|
|
22
|
-
var e_1, _a;
|
|
21
|
+
function volumesBreakFileLocks() {
|
|
23
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
23
|
const subscriptionId = process.env["NETAPP_SUBSCRIPTION_ID"] ||
|
|
25
24
|
"D633CC2E-722B-4AE1-B636-BBD9E4C60ED9";
|
|
26
25
|
const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG";
|
|
27
26
|
const accountName = "account1";
|
|
27
|
+
const poolName = "pool1";
|
|
28
|
+
const volumeName = "volume1";
|
|
29
|
+
const body = {
|
|
30
|
+
clientIp: "101.102.103.104",
|
|
31
|
+
confirmRunningDisruptiveOperation: true
|
|
32
|
+
};
|
|
33
|
+
const options = { body };
|
|
28
34
|
const credential = new DefaultAzureCredential();
|
|
29
35
|
const client = new NetAppManagementClient(credential, subscriptionId);
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
for (var _b = __asyncValues(client.vaults.list(resourceGroupName, accountName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
33
|
-
let item = _c.value;
|
|
34
|
-
resArray.push(item);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
38
|
-
finally {
|
|
39
|
-
try {
|
|
40
|
-
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
41
|
-
}
|
|
42
|
-
finally { if (e_1) throw e_1.error; }
|
|
43
|
-
}
|
|
44
|
-
console.log(resArray);
|
|
36
|
+
const result = yield client.volumes.beginBreakFileLocksAndWait(resourceGroupName, accountName, poolName, volumeName, options);
|
|
37
|
+
console.log(result);
|
|
45
38
|
});
|
|
46
39
|
}
|
|
47
40
|
function main() {
|
|
48
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
|
|
42
|
+
volumesBreakFileLocks();
|
|
50
43
|
});
|
|
51
44
|
}
|
|
52
45
|
main().catch(console.error);
|
|
53
|
-
//# sourceMappingURL=
|
|
46
|
+
//# sourceMappingURL=volumesBreakFileLocksSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumesBreakFileLocksSample.js","sourceRoot":"","sources":["../../samples-dev/volumesBreakFileLocksSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;YACrC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,MAAM,CAAC;QACzE,MAAM,WAAW,GAAG,UAAU,CAAC;QAC/B,MAAM,QAAQ,GAAG,OAAO,CAAC;QACzB,MAAM,UAAU,GAAG,SAAS,CAAC;QAC7B,MAAM,IAAI,GAA0B;YAClC,QAAQ,EAAE,iBAAiB;YAC3B,iCAAiC,EAAE,IAAI;SACxC,CAAC;QACF,MAAM,OAAO,GAAwC,EAAE,IAAI,EAAE,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,0BAA0B,CAC5D,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,UAAU,EACV,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,qBAAqB,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Break the replication connection on the destination volume
|
|
17
17
|
*
|
|
18
18
|
* @summary Break the replication connection on the destination volume
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_BreakReplication.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesBreakReplication() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Create or update the specified volume within the capacity pool
|
|
17
17
|
*
|
|
18
18
|
* @summary Create or update the specified volume within the capacity pool
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_CreateOrUpdate.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesCreateOrUpdate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -28,11 +28,9 @@ function volumesCreateOrUpdate() {
|
|
|
28
28
|
const volumeName = "volume1";
|
|
29
29
|
const body = {
|
|
30
30
|
creationToken: "my-unique-file-path",
|
|
31
|
-
encryptionKeySource: "Microsoft.KeyVault",
|
|
32
31
|
location: "eastus",
|
|
33
32
|
serviceLevel: "Premium",
|
|
34
33
|
subnetId: "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3",
|
|
35
|
-
throughputMibps: 128,
|
|
36
34
|
usageThreshold: 107374182400
|
|
37
35
|
};
|
|
38
36
|
const credential = new DefaultAzureCredential();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumesCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/volumesCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAU,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;YACrC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,MAAM,CAAC;QACzE,MAAM,WAAW,GAAG,UAAU,CAAC;QAC/B,MAAM,QAAQ,GAAG,OAAO,CAAC;QACzB,MAAM,UAAU,GAAG,SAAS,CAAC;QAC7B,MAAM,IAAI,GAAW;YACnB,aAAa,EAAE,qBAAqB;YACpC,
|
|
1
|
+
{"version":3,"file":"volumesCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/volumesCreateO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();
|
|
|
16
16
|
* This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication
|
|
17
17
|
*
|
|
18
18
|
* @summary Delete the replication connection on the destination volume, and send release to the source replication
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_DeleteReplication.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesDeleteReplication() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Delete the specified volume
|
|
17
17
|
*
|
|
18
18
|
* @summary Delete the specified volume
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_Delete.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesDelete() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume.
|
|
17
17
|
*
|
|
18
18
|
* @summary Finalizes the relocation of the volume and cleans up the old volume.
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_FinalizeRelocation.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesFinalizeRelocation() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get the details of the specified volume
|
|
17
17
|
*
|
|
18
18
|
* @summary Get the details of the specified volume
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_Get.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesGet() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to List all replications for a specified volume
|
|
17
17
|
*
|
|
18
18
|
* @summary List all replications for a specified volume
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_ListReplications.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesListReplications() {
|
|
22
22
|
var e_1, _a;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to List all volumes within the capacity pool
|
|
17
17
|
*
|
|
18
18
|
* @summary List all volumes within the capacity pool
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_List.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesList() {
|
|
22
22
|
var e_1, _a;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Moves volume to another pool
|
|
17
17
|
*
|
|
18
18
|
* @summary Moves volume to another pool
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_PoolChange.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesAuthorizeReplication() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Re-Initializes the replication connection on the destination volume
|
|
17
17
|
*
|
|
18
18
|
* @summary Re-Initializes the replication connection on the destination volume
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_ReInitializeReplication.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesReInitializeReplication() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots
|
|
17
17
|
*
|
|
18
18
|
* @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_ReestablishReplication.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesReestablishReplication() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Relocates volume to a new stamp
|
|
17
17
|
*
|
|
18
18
|
* @summary Relocates volume to a new stamp
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_Relocate.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesRelocate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get the status of the replication
|
|
17
17
|
*
|
|
18
18
|
* @summary Get the status of the replication
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_ReplicationStatus.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesReplicationStatus() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Reset cifs password from volume
|
|
17
17
|
*
|
|
18
18
|
* @summary Reset cifs password from volume
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_ResetCifsPassword.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesResetCifsPassword() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source.
|
|
17
17
|
*
|
|
18
18
|
* @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source.
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_ResyncReplication.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesResyncReplication() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume.
|
|
17
17
|
*
|
|
18
18
|
* @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume.
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_RevertRelocation.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesRevertRelocation() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Revert a volume to the snapshot specified in the body
|
|
17
17
|
*
|
|
18
18
|
* @summary Revert a volume to the snapshot specified in the body
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_Revert.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesRevert() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Patch the specified volume
|
|
17
17
|
*
|
|
18
18
|
* @summary Patch the specified volume
|
|
19
|
-
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-
|
|
19
|
+
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-09-01/examples/Volumes_Update.json
|
|
20
20
|
*/
|
|
21
21
|
function volumesUpdate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
requestPath: string;
|
|
7
|
-
requestMethod: string;
|
|
8
|
-
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
|
|
2
|
+
export declare function createLroSpec<T>(inputs: {
|
|
3
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
4
|
+
args: Record<string, unknown>;
|
|
5
|
+
spec: {
|
|
9
6
|
readonly requestBody?: unknown;
|
|
10
7
|
readonly path?: string;
|
|
11
8
|
readonly httpMethod: string;
|
|
12
|
-
} & Record<string, any
|
|
13
|
-
|
|
14
|
-
sendPollRequest(path: string): Promise<LroResponse<T>>;
|
|
15
|
-
}
|
|
9
|
+
} & Record<string, any>;
|
|
10
|
+
}): LongRunningOperation<T>;
|
|
16
11
|
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
package/dist-esm/src/lroImpl.js
CHANGED
|
@@ -5,25 +5,17 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
sendPollRequest(path) {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
|
|
25
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
26
|
-
});
|
|
27
|
-
}
|
|
8
|
+
import { __rest } from "tslib";
|
|
9
|
+
export function createLroSpec(inputs) {
|
|
10
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
11
|
+
return {
|
|
12
|
+
requestMethod: spec.httpMethod,
|
|
13
|
+
requestPath: spec.path,
|
|
14
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
15
|
+
sendPollRequest: (path, options) => {
|
|
16
|
+
const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
|
|
17
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
28
20
|
}
|
|
29
21
|
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAQH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|