@azure/arm-netapp 15.1.1 → 16.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 +57 -0
- package/dist/index.js +3787 -3016
- 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 +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/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/backupsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/netAppResourceCheckFilePathAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/netAppResourceCheckNameAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/netAppResourceCheckQuotaAvailabilitySample.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/vaultsListSample.js +1 -1
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js +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.d.ts +2 -0
- package/dist-esm/samples-dev/volumeQuotaRulesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeQuotaRulesCreateSample.js +40 -0
- package/dist-esm/samples-dev/volumeQuotaRulesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeQuotaRulesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeQuotaRulesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeQuotaRulesDeleteSample.js +34 -0
- package/dist-esm/samples-dev/volumeQuotaRulesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeQuotaRulesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeQuotaRulesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeQuotaRulesGetSample.js +34 -0
- package/dist-esm/samples-dev/volumeQuotaRulesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeQuotaRulesListByVolumeSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeQuotaRulesListByVolumeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeQuotaRulesListByVolumeSample.js +47 -0
- package/dist-esm/samples-dev/volumeQuotaRulesListByVolumeSample.js.map +1 -0
- package/dist-esm/samples-dev/volumeQuotaRulesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumeQuotaRulesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumeQuotaRulesUpdateSample.js +35 -0
- package/dist-esm/samples-dev/volumeQuotaRulesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/volumesAuthorizeReplicationSample.js +1 -1
- package/dist-esm/samples-dev/volumesBreakReplicationSample.js +1 -1
- package/dist-esm/samples-dev/volumesCreateOrUpdateSample.js +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.d.ts +2 -0
- package/dist-esm/samples-dev/volumesFinalizeRelocationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumesFinalizeRelocationSample.js +33 -0
- package/dist-esm/samples-dev/volumesFinalizeRelocationSample.js.map +1 -0
- package/dist-esm/samples-dev/volumesGetSample.js +1 -1
- package/dist-esm/samples-dev/volumesListReplicationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumesListReplicationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumesListReplicationsSample.js +47 -0
- package/dist-esm/samples-dev/volumesListReplicationsSample.js.map +1 -0
- 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/volumesRelocateSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumesRelocateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumesRelocateSample.js +33 -0
- package/dist-esm/samples-dev/volumesRelocateSample.js.map +1 -0
- package/dist-esm/samples-dev/volumesReplicationStatusSample.js +1 -1
- package/dist-esm/samples-dev/volumesResetCifsPasswordSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumesResetCifsPasswordSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumesResetCifsPasswordSample.js +33 -0
- package/dist-esm/samples-dev/volumesResetCifsPasswordSample.js.map +1 -0
- package/dist-esm/samples-dev/volumesResyncReplicationSample.js +1 -1
- package/dist-esm/samples-dev/volumesRevertRelocationSample.d.ts +2 -0
- package/dist-esm/samples-dev/volumesRevertRelocationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/volumesRevertRelocationSample.js +33 -0
- package/dist-esm/samples-dev/volumesRevertRelocationSample.js.map +1 -0
- package/dist-esm/samples-dev/volumesRevertSample.js +1 -1
- package/dist-esm/samples-dev/volumesUpdateSample.js +1 -1
- package/dist-esm/src/models/index.d.ts +788 -747
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +18 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +13 -6
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1839 -1923
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +5 -2
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +23 -5
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/netAppManagementClient.d.ts +4 -1
- package/dist-esm/src/netAppManagementClient.d.ts.map +1 -1
- package/dist-esm/src/netAppManagementClient.js +33 -3
- package/dist-esm/src/netAppManagementClient.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/subvolumes.js +2 -2
- package/dist-esm/src/operations/volumeGroups.js +1 -1
- package/dist-esm/src/operations/volumeQuotaRules.d.ts +109 -0
- package/dist-esm/src/operations/volumeQuotaRules.d.ts.map +1 -0
- package/dist-esm/src/operations/volumeQuotaRules.js +429 -0
- package/dist-esm/src/operations/volumeQuotaRules.js.map +1 -0
- package/dist-esm/src/operations/volumes.d.ts +95 -1
- package/dist-esm/src/operations/volumes.d.ts.map +1 -1
- package/dist-esm/src/operations/volumes.js +360 -0
- package/dist-esm/src/operations/volumes.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/volumeQuotaRules.d.ts +90 -0
- package/dist-esm/src/operationsInterfaces/volumeQuotaRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumeQuotaRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/volumeQuotaRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumes.d.ts +84 -1
- package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -1
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +9 -5
- package/review/arm-netapp.api.md +226 -107
- package/src/models/index.ts +903 -810
- package/src/models/mappers.ts +1977 -1961
- package/src/models/parameters.ts +27 -4
- package/src/netAppManagementClient.ts +40 -2
- package/src/operations/index.ts +1 -0
- package/src/operations/subvolumes.ts +2 -2
- package/src/operations/volumeGroups.ts +1 -1
- package/src/operations/volumeQuotaRules.ts +640 -0
- package/src/operations/volumes.ts +560 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/volumeQuotaRules.ts +179 -0
- package/src/operationsInterfaces/volumes.ts +144 -1
- package/types/arm-netapp.d.ts +404 -163
|
@@ -18,6 +18,8 @@ import {
|
|
|
18
18
|
Volume,
|
|
19
19
|
VolumesListNextOptionalParams,
|
|
20
20
|
VolumesListOptionalParams,
|
|
21
|
+
Replication,
|
|
22
|
+
VolumesListReplicationsOptionalParams,
|
|
21
23
|
VolumesListResponse,
|
|
22
24
|
VolumesGetOptionalParams,
|
|
23
25
|
VolumesGetResponse,
|
|
@@ -29,9 +31,11 @@ import {
|
|
|
29
31
|
VolumesDeleteOptionalParams,
|
|
30
32
|
VolumeRevert,
|
|
31
33
|
VolumesRevertOptionalParams,
|
|
34
|
+
VolumesResetCifsPasswordOptionalParams,
|
|
32
35
|
VolumesBreakReplicationOptionalParams,
|
|
33
36
|
VolumesReplicationStatusOptionalParams,
|
|
34
37
|
VolumesReplicationStatusResponse,
|
|
38
|
+
VolumesListReplicationsResponse,
|
|
35
39
|
VolumesResyncReplicationOptionalParams,
|
|
36
40
|
VolumesDeleteReplicationOptionalParams,
|
|
37
41
|
AuthorizeRequest,
|
|
@@ -39,6 +43,9 @@ import {
|
|
|
39
43
|
VolumesReInitializeReplicationOptionalParams,
|
|
40
44
|
PoolChangeRequest,
|
|
41
45
|
VolumesPoolChangeOptionalParams,
|
|
46
|
+
VolumesRelocateOptionalParams,
|
|
47
|
+
VolumesFinalizeRelocationOptionalParams,
|
|
48
|
+
VolumesRevertRelocationOptionalParams,
|
|
42
49
|
VolumesListNextResponse
|
|
43
50
|
} from "../models";
|
|
44
51
|
|
|
@@ -135,6 +142,82 @@ export class VolumesImpl implements Volumes {
|
|
|
135
142
|
}
|
|
136
143
|
}
|
|
137
144
|
|
|
145
|
+
/**
|
|
146
|
+
* List all replications for a specified volume
|
|
147
|
+
* @param resourceGroupName The name of the resource group.
|
|
148
|
+
* @param accountName The name of the NetApp account
|
|
149
|
+
* @param poolName The name of the capacity pool
|
|
150
|
+
* @param volumeName The name of the volume
|
|
151
|
+
* @param options The options parameters.
|
|
152
|
+
*/
|
|
153
|
+
public listReplications(
|
|
154
|
+
resourceGroupName: string,
|
|
155
|
+
accountName: string,
|
|
156
|
+
poolName: string,
|
|
157
|
+
volumeName: string,
|
|
158
|
+
options?: VolumesListReplicationsOptionalParams
|
|
159
|
+
): PagedAsyncIterableIterator<Replication> {
|
|
160
|
+
const iter = this.listReplicationsPagingAll(
|
|
161
|
+
resourceGroupName,
|
|
162
|
+
accountName,
|
|
163
|
+
poolName,
|
|
164
|
+
volumeName,
|
|
165
|
+
options
|
|
166
|
+
);
|
|
167
|
+
return {
|
|
168
|
+
next() {
|
|
169
|
+
return iter.next();
|
|
170
|
+
},
|
|
171
|
+
[Symbol.asyncIterator]() {
|
|
172
|
+
return this;
|
|
173
|
+
},
|
|
174
|
+
byPage: () => {
|
|
175
|
+
return this.listReplicationsPagingPage(
|
|
176
|
+
resourceGroupName,
|
|
177
|
+
accountName,
|
|
178
|
+
poolName,
|
|
179
|
+
volumeName,
|
|
180
|
+
options
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
private async *listReplicationsPagingPage(
|
|
187
|
+
resourceGroupName: string,
|
|
188
|
+
accountName: string,
|
|
189
|
+
poolName: string,
|
|
190
|
+
volumeName: string,
|
|
191
|
+
options?: VolumesListReplicationsOptionalParams
|
|
192
|
+
): AsyncIterableIterator<Replication[]> {
|
|
193
|
+
let result = await this._listReplications(
|
|
194
|
+
resourceGroupName,
|
|
195
|
+
accountName,
|
|
196
|
+
poolName,
|
|
197
|
+
volumeName,
|
|
198
|
+
options
|
|
199
|
+
);
|
|
200
|
+
yield result.value || [];
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
private async *listReplicationsPagingAll(
|
|
204
|
+
resourceGroupName: string,
|
|
205
|
+
accountName: string,
|
|
206
|
+
poolName: string,
|
|
207
|
+
volumeName: string,
|
|
208
|
+
options?: VolumesListReplicationsOptionalParams
|
|
209
|
+
): AsyncIterableIterator<Replication> {
|
|
210
|
+
for await (const page of this.listReplicationsPagingPage(
|
|
211
|
+
resourceGroupName,
|
|
212
|
+
accountName,
|
|
213
|
+
poolName,
|
|
214
|
+
volumeName,
|
|
215
|
+
options
|
|
216
|
+
)) {
|
|
217
|
+
yield* page;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
138
221
|
/**
|
|
139
222
|
* List all volumes within the capacity pool
|
|
140
223
|
* @param resourceGroupName The name of the resource group.
|
|
@@ -569,6 +652,98 @@ export class VolumesImpl implements Volumes {
|
|
|
569
652
|
return poller.pollUntilDone();
|
|
570
653
|
}
|
|
571
654
|
|
|
655
|
+
/**
|
|
656
|
+
* Reset cifs password from volume
|
|
657
|
+
* @param resourceGroupName The name of the resource group.
|
|
658
|
+
* @param accountName The name of the NetApp account
|
|
659
|
+
* @param poolName The name of the capacity pool
|
|
660
|
+
* @param volumeName The name of the volume
|
|
661
|
+
* @param options The options parameters.
|
|
662
|
+
*/
|
|
663
|
+
async beginResetCifsPassword(
|
|
664
|
+
resourceGroupName: string,
|
|
665
|
+
accountName: string,
|
|
666
|
+
poolName: string,
|
|
667
|
+
volumeName: string,
|
|
668
|
+
options?: VolumesResetCifsPasswordOptionalParams
|
|
669
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
670
|
+
const directSendOperation = async (
|
|
671
|
+
args: coreClient.OperationArguments,
|
|
672
|
+
spec: coreClient.OperationSpec
|
|
673
|
+
): Promise<void> => {
|
|
674
|
+
return this.client.sendOperationRequest(args, spec);
|
|
675
|
+
};
|
|
676
|
+
const sendOperation = async (
|
|
677
|
+
args: coreClient.OperationArguments,
|
|
678
|
+
spec: coreClient.OperationSpec
|
|
679
|
+
) => {
|
|
680
|
+
let currentRawResponse:
|
|
681
|
+
| coreClient.FullOperationResponse
|
|
682
|
+
| undefined = undefined;
|
|
683
|
+
const providedCallback = args.options?.onResponse;
|
|
684
|
+
const callback: coreClient.RawResponseCallback = (
|
|
685
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
686
|
+
flatResponse: unknown
|
|
687
|
+
) => {
|
|
688
|
+
currentRawResponse = rawResponse;
|
|
689
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
690
|
+
};
|
|
691
|
+
const updatedArgs = {
|
|
692
|
+
...args,
|
|
693
|
+
options: {
|
|
694
|
+
...args.options,
|
|
695
|
+
onResponse: callback
|
|
696
|
+
}
|
|
697
|
+
};
|
|
698
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
699
|
+
return {
|
|
700
|
+
flatResponse,
|
|
701
|
+
rawResponse: {
|
|
702
|
+
statusCode: currentRawResponse!.status,
|
|
703
|
+
body: currentRawResponse!.parsedBody,
|
|
704
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
705
|
+
}
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
const lro = new LroImpl(
|
|
710
|
+
sendOperation,
|
|
711
|
+
{ resourceGroupName, accountName, poolName, volumeName, options },
|
|
712
|
+
resetCifsPasswordOperationSpec
|
|
713
|
+
);
|
|
714
|
+
const poller = new LroEngine(lro, {
|
|
715
|
+
resumeFrom: options?.resumeFrom,
|
|
716
|
+
intervalInMs: options?.updateIntervalInMs
|
|
717
|
+
});
|
|
718
|
+
await poller.poll();
|
|
719
|
+
return poller;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Reset cifs password from volume
|
|
724
|
+
* @param resourceGroupName The name of the resource group.
|
|
725
|
+
* @param accountName The name of the NetApp account
|
|
726
|
+
* @param poolName The name of the capacity pool
|
|
727
|
+
* @param volumeName The name of the volume
|
|
728
|
+
* @param options The options parameters.
|
|
729
|
+
*/
|
|
730
|
+
async beginResetCifsPasswordAndWait(
|
|
731
|
+
resourceGroupName: string,
|
|
732
|
+
accountName: string,
|
|
733
|
+
poolName: string,
|
|
734
|
+
volumeName: string,
|
|
735
|
+
options?: VolumesResetCifsPasswordOptionalParams
|
|
736
|
+
): Promise<void> {
|
|
737
|
+
const poller = await this.beginResetCifsPassword(
|
|
738
|
+
resourceGroupName,
|
|
739
|
+
accountName,
|
|
740
|
+
poolName,
|
|
741
|
+
volumeName,
|
|
742
|
+
options
|
|
743
|
+
);
|
|
744
|
+
return poller.pollUntilDone();
|
|
745
|
+
}
|
|
746
|
+
|
|
572
747
|
/**
|
|
573
748
|
* Break the replication connection on the destination volume
|
|
574
749
|
* @param resourceGroupName The name of the resource group.
|
|
@@ -683,6 +858,27 @@ export class VolumesImpl implements Volumes {
|
|
|
683
858
|
);
|
|
684
859
|
}
|
|
685
860
|
|
|
861
|
+
/**
|
|
862
|
+
* List all replications for a specified volume
|
|
863
|
+
* @param resourceGroupName The name of the resource group.
|
|
864
|
+
* @param accountName The name of the NetApp account
|
|
865
|
+
* @param poolName The name of the capacity pool
|
|
866
|
+
* @param volumeName The name of the volume
|
|
867
|
+
* @param options The options parameters.
|
|
868
|
+
*/
|
|
869
|
+
private _listReplications(
|
|
870
|
+
resourceGroupName: string,
|
|
871
|
+
accountName: string,
|
|
872
|
+
poolName: string,
|
|
873
|
+
volumeName: string,
|
|
874
|
+
options?: VolumesListReplicationsOptionalParams
|
|
875
|
+
): Promise<VolumesListReplicationsResponse> {
|
|
876
|
+
return this.client.sendOperationRequest(
|
|
877
|
+
{ resourceGroupName, accountName, poolName, volumeName, options },
|
|
878
|
+
listReplicationsOperationSpec
|
|
879
|
+
);
|
|
880
|
+
}
|
|
881
|
+
|
|
686
882
|
/**
|
|
687
883
|
* Resync the connection on the destination volume. If the operation is ran on the source volume it
|
|
688
884
|
* will reverse-resync the connection and sync from destination to source.
|
|
@@ -1162,6 +1358,284 @@ export class VolumesImpl implements Volumes {
|
|
|
1162
1358
|
return poller.pollUntilDone();
|
|
1163
1359
|
}
|
|
1164
1360
|
|
|
1361
|
+
/**
|
|
1362
|
+
* Relocates volume to a new stamp
|
|
1363
|
+
* @param resourceGroupName The name of the resource group.
|
|
1364
|
+
* @param accountName The name of the NetApp account
|
|
1365
|
+
* @param poolName The name of the capacity pool
|
|
1366
|
+
* @param volumeName The name of the volume
|
|
1367
|
+
* @param options The options parameters.
|
|
1368
|
+
*/
|
|
1369
|
+
async beginRelocate(
|
|
1370
|
+
resourceGroupName: string,
|
|
1371
|
+
accountName: string,
|
|
1372
|
+
poolName: string,
|
|
1373
|
+
volumeName: string,
|
|
1374
|
+
options?: VolumesRelocateOptionalParams
|
|
1375
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
1376
|
+
const directSendOperation = async (
|
|
1377
|
+
args: coreClient.OperationArguments,
|
|
1378
|
+
spec: coreClient.OperationSpec
|
|
1379
|
+
): Promise<void> => {
|
|
1380
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1381
|
+
};
|
|
1382
|
+
const sendOperation = async (
|
|
1383
|
+
args: coreClient.OperationArguments,
|
|
1384
|
+
spec: coreClient.OperationSpec
|
|
1385
|
+
) => {
|
|
1386
|
+
let currentRawResponse:
|
|
1387
|
+
| coreClient.FullOperationResponse
|
|
1388
|
+
| undefined = undefined;
|
|
1389
|
+
const providedCallback = args.options?.onResponse;
|
|
1390
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1391
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1392
|
+
flatResponse: unknown
|
|
1393
|
+
) => {
|
|
1394
|
+
currentRawResponse = rawResponse;
|
|
1395
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1396
|
+
};
|
|
1397
|
+
const updatedArgs = {
|
|
1398
|
+
...args,
|
|
1399
|
+
options: {
|
|
1400
|
+
...args.options,
|
|
1401
|
+
onResponse: callback
|
|
1402
|
+
}
|
|
1403
|
+
};
|
|
1404
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1405
|
+
return {
|
|
1406
|
+
flatResponse,
|
|
1407
|
+
rawResponse: {
|
|
1408
|
+
statusCode: currentRawResponse!.status,
|
|
1409
|
+
body: currentRawResponse!.parsedBody,
|
|
1410
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1411
|
+
}
|
|
1412
|
+
};
|
|
1413
|
+
};
|
|
1414
|
+
|
|
1415
|
+
const lro = new LroImpl(
|
|
1416
|
+
sendOperation,
|
|
1417
|
+
{ resourceGroupName, accountName, poolName, volumeName, options },
|
|
1418
|
+
relocateOperationSpec
|
|
1419
|
+
);
|
|
1420
|
+
const poller = new LroEngine(lro, {
|
|
1421
|
+
resumeFrom: options?.resumeFrom,
|
|
1422
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1423
|
+
});
|
|
1424
|
+
await poller.poll();
|
|
1425
|
+
return poller;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* Relocates volume to a new stamp
|
|
1430
|
+
* @param resourceGroupName The name of the resource group.
|
|
1431
|
+
* @param accountName The name of the NetApp account
|
|
1432
|
+
* @param poolName The name of the capacity pool
|
|
1433
|
+
* @param volumeName The name of the volume
|
|
1434
|
+
* @param options The options parameters.
|
|
1435
|
+
*/
|
|
1436
|
+
async beginRelocateAndWait(
|
|
1437
|
+
resourceGroupName: string,
|
|
1438
|
+
accountName: string,
|
|
1439
|
+
poolName: string,
|
|
1440
|
+
volumeName: string,
|
|
1441
|
+
options?: VolumesRelocateOptionalParams
|
|
1442
|
+
): Promise<void> {
|
|
1443
|
+
const poller = await this.beginRelocate(
|
|
1444
|
+
resourceGroupName,
|
|
1445
|
+
accountName,
|
|
1446
|
+
poolName,
|
|
1447
|
+
volumeName,
|
|
1448
|
+
options
|
|
1449
|
+
);
|
|
1450
|
+
return poller.pollUntilDone();
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Finalizes the relocation of the volume and cleans up the old volume.
|
|
1455
|
+
* @param resourceGroupName The name of the resource group.
|
|
1456
|
+
* @param accountName The name of the NetApp account
|
|
1457
|
+
* @param poolName The name of the capacity pool
|
|
1458
|
+
* @param volumeName The name of the volume
|
|
1459
|
+
* @param options The options parameters.
|
|
1460
|
+
*/
|
|
1461
|
+
async beginFinalizeRelocation(
|
|
1462
|
+
resourceGroupName: string,
|
|
1463
|
+
accountName: string,
|
|
1464
|
+
poolName: string,
|
|
1465
|
+
volumeName: string,
|
|
1466
|
+
options?: VolumesFinalizeRelocationOptionalParams
|
|
1467
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
1468
|
+
const directSendOperation = async (
|
|
1469
|
+
args: coreClient.OperationArguments,
|
|
1470
|
+
spec: coreClient.OperationSpec
|
|
1471
|
+
): Promise<void> => {
|
|
1472
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1473
|
+
};
|
|
1474
|
+
const sendOperation = async (
|
|
1475
|
+
args: coreClient.OperationArguments,
|
|
1476
|
+
spec: coreClient.OperationSpec
|
|
1477
|
+
) => {
|
|
1478
|
+
let currentRawResponse:
|
|
1479
|
+
| coreClient.FullOperationResponse
|
|
1480
|
+
| undefined = undefined;
|
|
1481
|
+
const providedCallback = args.options?.onResponse;
|
|
1482
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1483
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1484
|
+
flatResponse: unknown
|
|
1485
|
+
) => {
|
|
1486
|
+
currentRawResponse = rawResponse;
|
|
1487
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1488
|
+
};
|
|
1489
|
+
const updatedArgs = {
|
|
1490
|
+
...args,
|
|
1491
|
+
options: {
|
|
1492
|
+
...args.options,
|
|
1493
|
+
onResponse: callback
|
|
1494
|
+
}
|
|
1495
|
+
};
|
|
1496
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1497
|
+
return {
|
|
1498
|
+
flatResponse,
|
|
1499
|
+
rawResponse: {
|
|
1500
|
+
statusCode: currentRawResponse!.status,
|
|
1501
|
+
body: currentRawResponse!.parsedBody,
|
|
1502
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1503
|
+
}
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1506
|
+
|
|
1507
|
+
const lro = new LroImpl(
|
|
1508
|
+
sendOperation,
|
|
1509
|
+
{ resourceGroupName, accountName, poolName, volumeName, options },
|
|
1510
|
+
finalizeRelocationOperationSpec
|
|
1511
|
+
);
|
|
1512
|
+
const poller = new LroEngine(lro, {
|
|
1513
|
+
resumeFrom: options?.resumeFrom,
|
|
1514
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1515
|
+
});
|
|
1516
|
+
await poller.poll();
|
|
1517
|
+
return poller;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* Finalizes the relocation of the volume and cleans up the old volume.
|
|
1522
|
+
* @param resourceGroupName The name of the resource group.
|
|
1523
|
+
* @param accountName The name of the NetApp account
|
|
1524
|
+
* @param poolName The name of the capacity pool
|
|
1525
|
+
* @param volumeName The name of the volume
|
|
1526
|
+
* @param options The options parameters.
|
|
1527
|
+
*/
|
|
1528
|
+
async beginFinalizeRelocationAndWait(
|
|
1529
|
+
resourceGroupName: string,
|
|
1530
|
+
accountName: string,
|
|
1531
|
+
poolName: string,
|
|
1532
|
+
volumeName: string,
|
|
1533
|
+
options?: VolumesFinalizeRelocationOptionalParams
|
|
1534
|
+
): Promise<void> {
|
|
1535
|
+
const poller = await this.beginFinalizeRelocation(
|
|
1536
|
+
resourceGroupName,
|
|
1537
|
+
accountName,
|
|
1538
|
+
poolName,
|
|
1539
|
+
volumeName,
|
|
1540
|
+
options
|
|
1541
|
+
);
|
|
1542
|
+
return poller.pollUntilDone();
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* Reverts the volume relocation process, cleans up the new volume and starts using the former-existing
|
|
1547
|
+
* volume.
|
|
1548
|
+
* @param resourceGroupName The name of the resource group.
|
|
1549
|
+
* @param accountName The name of the NetApp account
|
|
1550
|
+
* @param poolName The name of the capacity pool
|
|
1551
|
+
* @param volumeName The name of the volume
|
|
1552
|
+
* @param options The options parameters.
|
|
1553
|
+
*/
|
|
1554
|
+
async beginRevertRelocation(
|
|
1555
|
+
resourceGroupName: string,
|
|
1556
|
+
accountName: string,
|
|
1557
|
+
poolName: string,
|
|
1558
|
+
volumeName: string,
|
|
1559
|
+
options?: VolumesRevertRelocationOptionalParams
|
|
1560
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
1561
|
+
const directSendOperation = async (
|
|
1562
|
+
args: coreClient.OperationArguments,
|
|
1563
|
+
spec: coreClient.OperationSpec
|
|
1564
|
+
): Promise<void> => {
|
|
1565
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1566
|
+
};
|
|
1567
|
+
const sendOperation = async (
|
|
1568
|
+
args: coreClient.OperationArguments,
|
|
1569
|
+
spec: coreClient.OperationSpec
|
|
1570
|
+
) => {
|
|
1571
|
+
let currentRawResponse:
|
|
1572
|
+
| coreClient.FullOperationResponse
|
|
1573
|
+
| undefined = undefined;
|
|
1574
|
+
const providedCallback = args.options?.onResponse;
|
|
1575
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1576
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1577
|
+
flatResponse: unknown
|
|
1578
|
+
) => {
|
|
1579
|
+
currentRawResponse = rawResponse;
|
|
1580
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1581
|
+
};
|
|
1582
|
+
const updatedArgs = {
|
|
1583
|
+
...args,
|
|
1584
|
+
options: {
|
|
1585
|
+
...args.options,
|
|
1586
|
+
onResponse: callback
|
|
1587
|
+
}
|
|
1588
|
+
};
|
|
1589
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1590
|
+
return {
|
|
1591
|
+
flatResponse,
|
|
1592
|
+
rawResponse: {
|
|
1593
|
+
statusCode: currentRawResponse!.status,
|
|
1594
|
+
body: currentRawResponse!.parsedBody,
|
|
1595
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1596
|
+
}
|
|
1597
|
+
};
|
|
1598
|
+
};
|
|
1599
|
+
|
|
1600
|
+
const lro = new LroImpl(
|
|
1601
|
+
sendOperation,
|
|
1602
|
+
{ resourceGroupName, accountName, poolName, volumeName, options },
|
|
1603
|
+
revertRelocationOperationSpec
|
|
1604
|
+
);
|
|
1605
|
+
const poller = new LroEngine(lro, {
|
|
1606
|
+
resumeFrom: options?.resumeFrom,
|
|
1607
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1608
|
+
});
|
|
1609
|
+
await poller.poll();
|
|
1610
|
+
return poller;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
* Reverts the volume relocation process, cleans up the new volume and starts using the former-existing
|
|
1615
|
+
* volume.
|
|
1616
|
+
* @param resourceGroupName The name of the resource group.
|
|
1617
|
+
* @param accountName The name of the NetApp account
|
|
1618
|
+
* @param poolName The name of the capacity pool
|
|
1619
|
+
* @param volumeName The name of the volume
|
|
1620
|
+
* @param options The options parameters.
|
|
1621
|
+
*/
|
|
1622
|
+
async beginRevertRelocationAndWait(
|
|
1623
|
+
resourceGroupName: string,
|
|
1624
|
+
accountName: string,
|
|
1625
|
+
poolName: string,
|
|
1626
|
+
volumeName: string,
|
|
1627
|
+
options?: VolumesRevertRelocationOptionalParams
|
|
1628
|
+
): Promise<void> {
|
|
1629
|
+
const poller = await this.beginRevertRelocation(
|
|
1630
|
+
resourceGroupName,
|
|
1631
|
+
accountName,
|
|
1632
|
+
poolName,
|
|
1633
|
+
volumeName,
|
|
1634
|
+
options
|
|
1635
|
+
);
|
|
1636
|
+
return poller.pollUntilDone();
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1165
1639
|
/**
|
|
1166
1640
|
* ListNext
|
|
1167
1641
|
* @param resourceGroupName The name of the resource group.
|
|
@@ -1332,6 +1806,22 @@ const revertOperationSpec: coreClient.OperationSpec = {
|
|
|
1332
1806
|
mediaType: "json",
|
|
1333
1807
|
serializer
|
|
1334
1808
|
};
|
|
1809
|
+
const resetCifsPasswordOperationSpec: coreClient.OperationSpec = {
|
|
1810
|
+
path:
|
|
1811
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resetCifsPassword",
|
|
1812
|
+
httpMethod: "POST",
|
|
1813
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
1814
|
+
queryParameters: [Parameters.apiVersion],
|
|
1815
|
+
urlParameters: [
|
|
1816
|
+
Parameters.$host,
|
|
1817
|
+
Parameters.subscriptionId,
|
|
1818
|
+
Parameters.resourceGroupName,
|
|
1819
|
+
Parameters.accountName,
|
|
1820
|
+
Parameters.poolName,
|
|
1821
|
+
Parameters.volumeName
|
|
1822
|
+
],
|
|
1823
|
+
serializer
|
|
1824
|
+
};
|
|
1335
1825
|
const breakReplicationOperationSpec: coreClient.OperationSpec = {
|
|
1336
1826
|
path:
|
|
1337
1827
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication",
|
|
@@ -1373,6 +1863,28 @@ const replicationStatusOperationSpec: coreClient.OperationSpec = {
|
|
|
1373
1863
|
headerParameters: [Parameters.accept],
|
|
1374
1864
|
serializer
|
|
1375
1865
|
};
|
|
1866
|
+
const listReplicationsOperationSpec: coreClient.OperationSpec = {
|
|
1867
|
+
path:
|
|
1868
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listReplications",
|
|
1869
|
+
httpMethod: "POST",
|
|
1870
|
+
responses: {
|
|
1871
|
+
200: {
|
|
1872
|
+
bodyMapper: Mappers.ListReplications
|
|
1873
|
+
},
|
|
1874
|
+
default: {}
|
|
1875
|
+
},
|
|
1876
|
+
queryParameters: [Parameters.apiVersion],
|
|
1877
|
+
urlParameters: [
|
|
1878
|
+
Parameters.$host,
|
|
1879
|
+
Parameters.subscriptionId,
|
|
1880
|
+
Parameters.resourceGroupName,
|
|
1881
|
+
Parameters.accountName,
|
|
1882
|
+
Parameters.poolName,
|
|
1883
|
+
Parameters.volumeName
|
|
1884
|
+
],
|
|
1885
|
+
headerParameters: [Parameters.accept],
|
|
1886
|
+
serializer
|
|
1887
|
+
};
|
|
1376
1888
|
const resyncReplicationOperationSpec: coreClient.OperationSpec = {
|
|
1377
1889
|
path:
|
|
1378
1890
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication",
|
|
@@ -1459,6 +1971,54 @@ const poolChangeOperationSpec: coreClient.OperationSpec = {
|
|
|
1459
1971
|
mediaType: "json",
|
|
1460
1972
|
serializer
|
|
1461
1973
|
};
|
|
1974
|
+
const relocateOperationSpec: coreClient.OperationSpec = {
|
|
1975
|
+
path:
|
|
1976
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate",
|
|
1977
|
+
httpMethod: "POST",
|
|
1978
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
1979
|
+
queryParameters: [Parameters.apiVersion],
|
|
1980
|
+
urlParameters: [
|
|
1981
|
+
Parameters.$host,
|
|
1982
|
+
Parameters.subscriptionId,
|
|
1983
|
+
Parameters.resourceGroupName,
|
|
1984
|
+
Parameters.accountName,
|
|
1985
|
+
Parameters.poolName,
|
|
1986
|
+
Parameters.volumeName
|
|
1987
|
+
],
|
|
1988
|
+
serializer
|
|
1989
|
+
};
|
|
1990
|
+
const finalizeRelocationOperationSpec: coreClient.OperationSpec = {
|
|
1991
|
+
path:
|
|
1992
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeRelocation",
|
|
1993
|
+
httpMethod: "POST",
|
|
1994
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
1995
|
+
queryParameters: [Parameters.apiVersion],
|
|
1996
|
+
urlParameters: [
|
|
1997
|
+
Parameters.$host,
|
|
1998
|
+
Parameters.subscriptionId,
|
|
1999
|
+
Parameters.resourceGroupName,
|
|
2000
|
+
Parameters.accountName,
|
|
2001
|
+
Parameters.poolName,
|
|
2002
|
+
Parameters.volumeName
|
|
2003
|
+
],
|
|
2004
|
+
serializer
|
|
2005
|
+
};
|
|
2006
|
+
const revertRelocationOperationSpec: coreClient.OperationSpec = {
|
|
2007
|
+
path:
|
|
2008
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revertRelocation",
|
|
2009
|
+
httpMethod: "POST",
|
|
2010
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
|
2011
|
+
queryParameters: [Parameters.apiVersion],
|
|
2012
|
+
urlParameters: [
|
|
2013
|
+
Parameters.$host,
|
|
2014
|
+
Parameters.subscriptionId,
|
|
2015
|
+
Parameters.resourceGroupName,
|
|
2016
|
+
Parameters.accountName,
|
|
2017
|
+
Parameters.poolName,
|
|
2018
|
+
Parameters.volumeName
|
|
2019
|
+
],
|
|
2020
|
+
serializer
|
|
2021
|
+
};
|
|
1462
2022
|
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
1463
2023
|
path: "{nextLink}",
|
|
1464
2024
|
httpMethod: "GET",
|
|
@@ -17,6 +17,7 @@ export * from "./snapshotPolicies";
|
|
|
17
17
|
export * from "./backups";
|
|
18
18
|
export * from "./accountBackups";
|
|
19
19
|
export * from "./backupPolicies";
|
|
20
|
+
export * from "./volumeQuotaRules";
|
|
20
21
|
export * from "./vaults";
|
|
21
22
|
export * from "./volumeGroups";
|
|
22
23
|
export * from "./subvolumes";
|