@azure/arm-netapp 14.3.0 → 14.4.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/dist/arm-netapp.js +972 -51
- package/dist/arm-netapp.js.map +1 -1
- package/dist/arm-netapp.min.js +1 -1
- package/dist/arm-netapp.min.js.map +1 -1
- package/esm/azureNetAppFilesManagementClient.d.ts +1 -0
- package/esm/azureNetAppFilesManagementClient.d.ts.map +1 -1
- package/esm/azureNetAppFilesManagementClient.js +1 -0
- package/esm/azureNetAppFilesManagementClient.js.map +1 -1
- package/esm/azureNetAppFilesManagementClientContext.js +2 -2
- package/esm/models/accountBackupsMappers.d.ts +1 -1
- package/esm/models/accountBackupsMappers.d.ts.map +1 -1
- package/esm/models/accountBackupsMappers.js +1 -1
- package/esm/models/accountBackupsMappers.js.map +1 -1
- package/esm/models/accountsMappers.d.ts +1 -1
- package/esm/models/accountsMappers.d.ts.map +1 -1
- package/esm/models/accountsMappers.js +1 -1
- package/esm/models/accountsMappers.js.map +1 -1
- package/esm/models/backupPoliciesMappers.d.ts +1 -1
- package/esm/models/backupPoliciesMappers.d.ts.map +1 -1
- package/esm/models/backupPoliciesMappers.js +1 -1
- package/esm/models/backupPoliciesMappers.js.map +1 -1
- package/esm/models/backupsMappers.d.ts +1 -1
- package/esm/models/backupsMappers.d.ts.map +1 -1
- package/esm/models/backupsMappers.js +1 -1
- package/esm/models/backupsMappers.js.map +1 -1
- package/esm/models/index.d.ts +477 -23
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/mappers.d.ts +6 -0
- package/esm/models/mappers.d.ts.map +1 -1
- package/esm/models/mappers.js +789 -174
- package/esm/models/mappers.js.map +1 -1
- package/esm/models/netAppResourceQuotaLimitsMappers.d.ts +1 -1
- package/esm/models/netAppResourceQuotaLimitsMappers.d.ts.map +1 -1
- package/esm/models/netAppResourceQuotaLimitsMappers.js +1 -1
- package/esm/models/netAppResourceQuotaLimitsMappers.js.map +1 -1
- package/esm/models/parameters.d.ts +1 -0
- package/esm/models/parameters.d.ts.map +1 -1
- package/esm/models/parameters.js +15 -0
- package/esm/models/parameters.js.map +1 -1
- package/esm/models/poolsMappers.d.ts +1 -1
- package/esm/models/poolsMappers.d.ts.map +1 -1
- package/esm/models/poolsMappers.js +1 -1
- package/esm/models/poolsMappers.js.map +1 -1
- package/esm/models/snapshotPoliciesMappers.d.ts +1 -1
- package/esm/models/snapshotPoliciesMappers.d.ts.map +1 -1
- package/esm/models/snapshotPoliciesMappers.js +1 -1
- package/esm/models/snapshotPoliciesMappers.js.map +1 -1
- package/esm/models/snapshotsMappers.d.ts +1 -1
- package/esm/models/snapshotsMappers.d.ts.map +1 -1
- package/esm/models/snapshotsMappers.js +1 -1
- package/esm/models/snapshotsMappers.js.map +1 -1
- package/esm/models/vaultsMappers.d.ts +1 -1
- package/esm/models/vaultsMappers.d.ts.map +1 -1
- package/esm/models/vaultsMappers.js +1 -1
- package/esm/models/vaultsMappers.js.map +1 -1
- package/esm/models/volumeGroupsMappers.d.ts +2 -0
- package/esm/models/volumeGroupsMappers.d.ts.map +1 -0
- package/esm/models/volumeGroupsMappers.js +9 -0
- package/esm/models/volumeGroupsMappers.js.map +1 -0
- package/esm/models/volumesMappers.d.ts +1 -1
- package/esm/models/volumesMappers.d.ts.map +1 -1
- package/esm/models/volumesMappers.js +1 -1
- package/esm/models/volumesMappers.js.map +1 -1
- package/esm/operations/index.d.ts +1 -0
- package/esm/operations/index.d.ts.map +1 -1
- package/esm/operations/index.js +1 -0
- package/esm/operations/index.js.map +1 -1
- package/esm/operations/volumeGroups.d.ts +107 -0
- package/esm/operations/volumeGroups.d.ts.map +1 -0
- package/esm/operations/volumeGroups.js +212 -0
- package/esm/operations/volumeGroups.js.map +1 -0
- package/package.json +1 -1
- package/src/azureNetAppFilesManagementClient.ts +2 -0
- package/src/azureNetAppFilesManagementClientContext.ts +2 -2
- package/src/models/accountBackupsMappers.ts +2 -0
- package/src/models/accountsMappers.ts +2 -0
- package/src/models/backupPoliciesMappers.ts +2 -0
- package/src/models/backupsMappers.ts +2 -0
- package/src/models/index.ts +486 -23
- package/src/models/mappers.ts +791 -171
- package/src/models/netAppResourceQuotaLimitsMappers.ts +2 -0
- package/src/models/parameters.ts +15 -0
- package/src/models/poolsMappers.ts +2 -0
- package/src/models/snapshotPoliciesMappers.ts +2 -0
- package/src/models/snapshotsMappers.ts +2 -0
- package/src/models/vaultsMappers.ts +2 -0
- package/src/models/volumeGroupsMappers.ts +54 -0
- package/src/models/volumesMappers.ts +2 -0
- package/src/operations/index.ts +1 -0
- package/src/operations/volumeGroups.ts +287 -0
|
@@ -26,6 +26,7 @@ export {
|
|
|
26
26
|
MountTargetProperties,
|
|
27
27
|
NetAppAccount,
|
|
28
28
|
NetAppAccountPatch,
|
|
29
|
+
PlacementKeyValuePairs,
|
|
29
30
|
ProxyResource,
|
|
30
31
|
ReplicationObject,
|
|
31
32
|
Resource,
|
|
@@ -39,6 +40,7 @@ export {
|
|
|
39
40
|
Volume,
|
|
40
41
|
VolumeBackupProperties,
|
|
41
42
|
VolumeBackups,
|
|
43
|
+
VolumeGroupVolumeProperties,
|
|
42
44
|
VolumePatch,
|
|
43
45
|
VolumePatchPropertiesDataProtection,
|
|
44
46
|
VolumePatchPropertiesExportPolicy,
|
package/src/models/parameters.ts
CHANGED
|
@@ -153,6 +153,21 @@ export const subscriptionId: msRest.OperationURLParameter = {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
|
+
export const volumeGroupName: msRest.OperationURLParameter = {
|
|
157
|
+
parameterPath: "volumeGroupName",
|
|
158
|
+
mapper: {
|
|
159
|
+
required: true,
|
|
160
|
+
serializedName: "volumeGroupName",
|
|
161
|
+
constraints: {
|
|
162
|
+
MaxLength: 64,
|
|
163
|
+
MinLength: 1,
|
|
164
|
+
Pattern: /^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$/
|
|
165
|
+
},
|
|
166
|
+
type: {
|
|
167
|
+
name: "String"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
};
|
|
156
171
|
export const volumeName: msRest.OperationURLParameter = {
|
|
157
172
|
parameterPath: "volumeName",
|
|
158
173
|
mapper: {
|
|
@@ -27,6 +27,7 @@ export {
|
|
|
27
27
|
MountTargetProperties,
|
|
28
28
|
NetAppAccount,
|
|
29
29
|
NetAppAccountPatch,
|
|
30
|
+
PlacementKeyValuePairs,
|
|
30
31
|
ProxyResource,
|
|
31
32
|
ReplicationObject,
|
|
32
33
|
Resource,
|
|
@@ -39,6 +40,7 @@ export {
|
|
|
39
40
|
Volume,
|
|
40
41
|
VolumeBackupProperties,
|
|
41
42
|
VolumeBackups,
|
|
43
|
+
VolumeGroupVolumeProperties,
|
|
42
44
|
VolumePatch,
|
|
43
45
|
VolumePatchPropertiesDataProtection,
|
|
44
46
|
VolumePatchPropertiesExportPolicy,
|
|
@@ -26,6 +26,7 @@ export {
|
|
|
26
26
|
MountTargetProperties,
|
|
27
27
|
NetAppAccount,
|
|
28
28
|
NetAppAccountPatch,
|
|
29
|
+
PlacementKeyValuePairs,
|
|
29
30
|
ProxyResource,
|
|
30
31
|
ReplicationObject,
|
|
31
32
|
Resource,
|
|
@@ -41,6 +42,7 @@ export {
|
|
|
41
42
|
Volume,
|
|
42
43
|
VolumeBackupProperties,
|
|
43
44
|
VolumeBackups,
|
|
45
|
+
VolumeGroupVolumeProperties,
|
|
44
46
|
VolumePatch,
|
|
45
47
|
VolumePatchPropertiesDataProtection,
|
|
46
48
|
VolumePatchPropertiesExportPolicy,
|
|
@@ -26,6 +26,7 @@ export {
|
|
|
26
26
|
MountTargetProperties,
|
|
27
27
|
NetAppAccount,
|
|
28
28
|
NetAppAccountPatch,
|
|
29
|
+
PlacementKeyValuePairs,
|
|
29
30
|
ProxyResource,
|
|
30
31
|
ReplicationObject,
|
|
31
32
|
Resource,
|
|
@@ -39,6 +40,7 @@ export {
|
|
|
39
40
|
Volume,
|
|
40
41
|
VolumeBackupProperties,
|
|
41
42
|
VolumeBackups,
|
|
43
|
+
VolumeGroupVolumeProperties,
|
|
42
44
|
VolumePatch,
|
|
43
45
|
VolumePatchPropertiesDataProtection,
|
|
44
46
|
VolumePatchPropertiesExportPolicy,
|
|
@@ -26,6 +26,7 @@ export {
|
|
|
26
26
|
MountTargetProperties,
|
|
27
27
|
NetAppAccount,
|
|
28
28
|
NetAppAccountPatch,
|
|
29
|
+
PlacementKeyValuePairs,
|
|
29
30
|
ProxyResource,
|
|
30
31
|
ReplicationObject,
|
|
31
32
|
Resource,
|
|
@@ -39,6 +40,7 @@ export {
|
|
|
39
40
|
Volume,
|
|
40
41
|
VolumeBackupProperties,
|
|
41
42
|
VolumeBackups,
|
|
43
|
+
VolumeGroupVolumeProperties,
|
|
42
44
|
VolumePatch,
|
|
43
45
|
VolumePatchPropertiesDataProtection,
|
|
44
46
|
VolumePatchPropertiesExportPolicy,
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
|
|
9
|
+
export {
|
|
10
|
+
AccountEncryption,
|
|
11
|
+
ActiveDirectory,
|
|
12
|
+
AzureEntityResource,
|
|
13
|
+
Backup,
|
|
14
|
+
BackupPatch,
|
|
15
|
+
BackupPolicy,
|
|
16
|
+
BackupPolicyDetails,
|
|
17
|
+
BackupPolicyPatch,
|
|
18
|
+
BaseResource,
|
|
19
|
+
CapacityPool,
|
|
20
|
+
CapacityPoolPatch,
|
|
21
|
+
CloudError,
|
|
22
|
+
DailySchedule,
|
|
23
|
+
ExportPolicyRule,
|
|
24
|
+
HourlySchedule,
|
|
25
|
+
MonthlySchedule,
|
|
26
|
+
MountTargetProperties,
|
|
27
|
+
NetAppAccount,
|
|
28
|
+
NetAppAccountPatch,
|
|
29
|
+
PlacementKeyValuePairs,
|
|
30
|
+
ProxyResource,
|
|
31
|
+
ReplicationObject,
|
|
32
|
+
Resource,
|
|
33
|
+
Snapshot,
|
|
34
|
+
SnapshotPolicy,
|
|
35
|
+
SubscriptionQuotaItem,
|
|
36
|
+
SystemData,
|
|
37
|
+
TrackedResource,
|
|
38
|
+
Vault,
|
|
39
|
+
Volume,
|
|
40
|
+
VolumeBackupProperties,
|
|
41
|
+
VolumeBackups,
|
|
42
|
+
VolumeGroup,
|
|
43
|
+
VolumeGroupDetails,
|
|
44
|
+
VolumeGroupList,
|
|
45
|
+
VolumeGroupMetaData,
|
|
46
|
+
VolumeGroupVolumeProperties,
|
|
47
|
+
VolumePatch,
|
|
48
|
+
VolumePatchPropertiesDataProtection,
|
|
49
|
+
VolumePatchPropertiesExportPolicy,
|
|
50
|
+
VolumePropertiesDataProtection,
|
|
51
|
+
VolumePropertiesExportPolicy,
|
|
52
|
+
VolumeSnapshotProperties,
|
|
53
|
+
WeeklySchedule
|
|
54
|
+
} from "../models/mappers";
|
|
@@ -28,6 +28,7 @@ export {
|
|
|
28
28
|
MountTargetProperties,
|
|
29
29
|
NetAppAccount,
|
|
30
30
|
NetAppAccountPatch,
|
|
31
|
+
PlacementKeyValuePairs,
|
|
31
32
|
PoolChangeRequest,
|
|
32
33
|
ProxyResource,
|
|
33
34
|
ReplicationObject,
|
|
@@ -42,6 +43,7 @@ export {
|
|
|
42
43
|
Volume,
|
|
43
44
|
VolumeBackupProperties,
|
|
44
45
|
VolumeBackups,
|
|
46
|
+
VolumeGroupVolumeProperties,
|
|
45
47
|
VolumeList,
|
|
46
48
|
VolumePatch,
|
|
47
49
|
VolumePatchPropertiesDataProtection,
|
package/src/operations/index.ts
CHANGED
|
@@ -0,0 +1,287 @@
|
|
|
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
|
|
7
|
+
* regenerated.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import * as msRest from "@azure/ms-rest-js";
|
|
11
|
+
import * as msRestAzure from "@azure/ms-rest-azure-js";
|
|
12
|
+
import * as Models from "../models";
|
|
13
|
+
import * as Mappers from "../models/volumeGroupsMappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { AzureNetAppFilesManagementClientContext } from "../azureNetAppFilesManagementClientContext";
|
|
16
|
+
|
|
17
|
+
/** Class representing a VolumeGroups. */
|
|
18
|
+
export class VolumeGroups {
|
|
19
|
+
private readonly client: AzureNetAppFilesManagementClientContext;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Create a VolumeGroups.
|
|
23
|
+
* @param {AzureNetAppFilesManagementClientContext} client Reference to the service client.
|
|
24
|
+
*/
|
|
25
|
+
constructor(client: AzureNetAppFilesManagementClientContext) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* List all volume groups for given account
|
|
31
|
+
* @summary Describe all volume groups
|
|
32
|
+
* @param resourceGroupName The name of the resource group.
|
|
33
|
+
* @param accountName The name of the NetApp account
|
|
34
|
+
* @param [options] The optional parameters
|
|
35
|
+
* @returns Promise<Models.VolumeGroupsListByNetAppAccountResponse>
|
|
36
|
+
*/
|
|
37
|
+
listByNetAppAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.VolumeGroupsListByNetAppAccountResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* @param resourceGroupName The name of the resource group.
|
|
40
|
+
* @param accountName The name of the NetApp account
|
|
41
|
+
* @param callback The callback
|
|
42
|
+
*/
|
|
43
|
+
listByNetAppAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.VolumeGroupList>): void;
|
|
44
|
+
/**
|
|
45
|
+
* @param resourceGroupName The name of the resource group.
|
|
46
|
+
* @param accountName The name of the NetApp account
|
|
47
|
+
* @param options The optional parameters
|
|
48
|
+
* @param callback The callback
|
|
49
|
+
*/
|
|
50
|
+
listByNetAppAccount(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VolumeGroupList>): void;
|
|
51
|
+
listByNetAppAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.VolumeGroupList>, callback?: msRest.ServiceCallback<Models.VolumeGroupList>): Promise<Models.VolumeGroupsListByNetAppAccountResponse> {
|
|
52
|
+
return this.client.sendOperationRequest(
|
|
53
|
+
{
|
|
54
|
+
resourceGroupName,
|
|
55
|
+
accountName,
|
|
56
|
+
options
|
|
57
|
+
},
|
|
58
|
+
listByNetAppAccountOperationSpec,
|
|
59
|
+
callback) as Promise<Models.VolumeGroupsListByNetAppAccountResponse>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Get details of the specified volume group
|
|
64
|
+
* @summary Describe a Volume Group
|
|
65
|
+
* @param resourceGroupName The name of the resource group.
|
|
66
|
+
* @param accountName The name of the NetApp account
|
|
67
|
+
* @param volumeGroupName The name of the volumeGroup
|
|
68
|
+
* @param [options] The optional parameters
|
|
69
|
+
* @returns Promise<Models.VolumeGroupsGetResponse>
|
|
70
|
+
*/
|
|
71
|
+
get(resourceGroupName: string, accountName: string, volumeGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.VolumeGroupsGetResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* @param resourceGroupName The name of the resource group.
|
|
74
|
+
* @param accountName The name of the NetApp account
|
|
75
|
+
* @param volumeGroupName The name of the volumeGroup
|
|
76
|
+
* @param callback The callback
|
|
77
|
+
*/
|
|
78
|
+
get(resourceGroupName: string, accountName: string, volumeGroupName: string, callback: msRest.ServiceCallback<Models.VolumeGroupDetails>): void;
|
|
79
|
+
/**
|
|
80
|
+
* @param resourceGroupName The name of the resource group.
|
|
81
|
+
* @param accountName The name of the NetApp account
|
|
82
|
+
* @param volumeGroupName The name of the volumeGroup
|
|
83
|
+
* @param options The optional parameters
|
|
84
|
+
* @param callback The callback
|
|
85
|
+
*/
|
|
86
|
+
get(resourceGroupName: string, accountName: string, volumeGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VolumeGroupDetails>): void;
|
|
87
|
+
get(resourceGroupName: string, accountName: string, volumeGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.VolumeGroupDetails>, callback?: msRest.ServiceCallback<Models.VolumeGroupDetails>): Promise<Models.VolumeGroupsGetResponse> {
|
|
88
|
+
return this.client.sendOperationRequest(
|
|
89
|
+
{
|
|
90
|
+
resourceGroupName,
|
|
91
|
+
accountName,
|
|
92
|
+
volumeGroupName,
|
|
93
|
+
options
|
|
94
|
+
},
|
|
95
|
+
getOperationSpec,
|
|
96
|
+
callback) as Promise<Models.VolumeGroupsGetResponse>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Create a volume group along with specified volumes
|
|
101
|
+
* @summary Create the specified volume group and volumes. Creating volume group will create all
|
|
102
|
+
* the volumes specified in request body implicitly. Once volumes are created using volume group,
|
|
103
|
+
* those will be treated as regular volumes thereafter.
|
|
104
|
+
* @param body Volume Group object supplied in the body of the operation.
|
|
105
|
+
* @param resourceGroupName The name of the resource group.
|
|
106
|
+
* @param accountName The name of the NetApp account
|
|
107
|
+
* @param volumeGroupName The name of the volumeGroup
|
|
108
|
+
* @param [options] The optional parameters
|
|
109
|
+
* @returns Promise<Models.VolumeGroupsCreateResponse>
|
|
110
|
+
*/
|
|
111
|
+
create(body: Models.VolumeGroupDetails, resourceGroupName: string, accountName: string, volumeGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.VolumeGroupsCreateResponse> {
|
|
112
|
+
return this.beginCreate(body,resourceGroupName,accountName,volumeGroupName,options)
|
|
113
|
+
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.VolumeGroupsCreateResponse>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Delete the specified volume group only if there are no volumes under volume group.
|
|
118
|
+
* @summary Delete a volume group
|
|
119
|
+
* @param resourceGroupName The name of the resource group.
|
|
120
|
+
* @param accountName The name of the NetApp account
|
|
121
|
+
* @param volumeGroupName The name of the volumeGroup
|
|
122
|
+
* @param [options] The optional parameters
|
|
123
|
+
* @returns Promise<msRest.RestResponse>
|
|
124
|
+
*/
|
|
125
|
+
deleteMethod(resourceGroupName: string, accountName: string, volumeGroupName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
126
|
+
return this.beginDeleteMethod(resourceGroupName,accountName,volumeGroupName,options)
|
|
127
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Create a volume group along with specified volumes
|
|
132
|
+
* @summary Create the specified volume group and volumes. Creating volume group will create all
|
|
133
|
+
* the volumes specified in request body implicitly. Once volumes are created using volume group,
|
|
134
|
+
* those will be treated as regular volumes thereafter.
|
|
135
|
+
* @param body Volume Group object supplied in the body of the operation.
|
|
136
|
+
* @param resourceGroupName The name of the resource group.
|
|
137
|
+
* @param accountName The name of the NetApp account
|
|
138
|
+
* @param volumeGroupName The name of the volumeGroup
|
|
139
|
+
* @param [options] The optional parameters
|
|
140
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
141
|
+
*/
|
|
142
|
+
beginCreate(body: Models.VolumeGroupDetails, resourceGroupName: string, accountName: string, volumeGroupName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
143
|
+
return this.client.sendLRORequest(
|
|
144
|
+
{
|
|
145
|
+
body,
|
|
146
|
+
resourceGroupName,
|
|
147
|
+
accountName,
|
|
148
|
+
volumeGroupName,
|
|
149
|
+
options
|
|
150
|
+
},
|
|
151
|
+
beginCreateOperationSpec,
|
|
152
|
+
options);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Delete the specified volume group only if there are no volumes under volume group.
|
|
157
|
+
* @summary Delete a volume group
|
|
158
|
+
* @param resourceGroupName The name of the resource group.
|
|
159
|
+
* @param accountName The name of the NetApp account
|
|
160
|
+
* @param volumeGroupName The name of the volumeGroup
|
|
161
|
+
* @param [options] The optional parameters
|
|
162
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
163
|
+
*/
|
|
164
|
+
beginDeleteMethod(resourceGroupName: string, accountName: string, volumeGroupName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
165
|
+
return this.client.sendLRORequest(
|
|
166
|
+
{
|
|
167
|
+
resourceGroupName,
|
|
168
|
+
accountName,
|
|
169
|
+
volumeGroupName,
|
|
170
|
+
options
|
|
171
|
+
},
|
|
172
|
+
beginDeleteMethodOperationSpec,
|
|
173
|
+
options);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Operation Specifications
|
|
178
|
+
const serializer = new msRest.Serializer(Mappers);
|
|
179
|
+
const listByNetAppAccountOperationSpec: msRest.OperationSpec = {
|
|
180
|
+
httpMethod: "GET",
|
|
181
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups",
|
|
182
|
+
urlParameters: [
|
|
183
|
+
Parameters.subscriptionId,
|
|
184
|
+
Parameters.resourceGroupName,
|
|
185
|
+
Parameters.accountName
|
|
186
|
+
],
|
|
187
|
+
queryParameters: [
|
|
188
|
+
Parameters.apiVersion
|
|
189
|
+
],
|
|
190
|
+
headerParameters: [
|
|
191
|
+
Parameters.acceptLanguage
|
|
192
|
+
],
|
|
193
|
+
responses: {
|
|
194
|
+
200: {
|
|
195
|
+
bodyMapper: Mappers.VolumeGroupList
|
|
196
|
+
},
|
|
197
|
+
default: {
|
|
198
|
+
bodyMapper: Mappers.CloudError
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
serializer
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
const getOperationSpec: msRest.OperationSpec = {
|
|
205
|
+
httpMethod: "GET",
|
|
206
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}",
|
|
207
|
+
urlParameters: [
|
|
208
|
+
Parameters.subscriptionId,
|
|
209
|
+
Parameters.resourceGroupName,
|
|
210
|
+
Parameters.accountName,
|
|
211
|
+
Parameters.volumeGroupName
|
|
212
|
+
],
|
|
213
|
+
queryParameters: [
|
|
214
|
+
Parameters.apiVersion
|
|
215
|
+
],
|
|
216
|
+
headerParameters: [
|
|
217
|
+
Parameters.acceptLanguage
|
|
218
|
+
],
|
|
219
|
+
responses: {
|
|
220
|
+
200: {
|
|
221
|
+
bodyMapper: Mappers.VolumeGroupDetails
|
|
222
|
+
},
|
|
223
|
+
default: {
|
|
224
|
+
bodyMapper: Mappers.CloudError
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
serializer
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
231
|
+
httpMethod: "PUT",
|
|
232
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}",
|
|
233
|
+
urlParameters: [
|
|
234
|
+
Parameters.subscriptionId,
|
|
235
|
+
Parameters.resourceGroupName,
|
|
236
|
+
Parameters.accountName,
|
|
237
|
+
Parameters.volumeGroupName
|
|
238
|
+
],
|
|
239
|
+
queryParameters: [
|
|
240
|
+
Parameters.apiVersion
|
|
241
|
+
],
|
|
242
|
+
headerParameters: [
|
|
243
|
+
Parameters.acceptLanguage
|
|
244
|
+
],
|
|
245
|
+
requestBody: {
|
|
246
|
+
parameterPath: "body",
|
|
247
|
+
mapper: {
|
|
248
|
+
...Mappers.VolumeGroupDetails,
|
|
249
|
+
required: true
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
responses: {
|
|
253
|
+
201: {
|
|
254
|
+
bodyMapper: Mappers.VolumeGroupDetails
|
|
255
|
+
},
|
|
256
|
+
default: {
|
|
257
|
+
bodyMapper: Mappers.CloudError
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
serializer
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
264
|
+
httpMethod: "DELETE",
|
|
265
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}",
|
|
266
|
+
urlParameters: [
|
|
267
|
+
Parameters.subscriptionId,
|
|
268
|
+
Parameters.resourceGroupName,
|
|
269
|
+
Parameters.accountName,
|
|
270
|
+
Parameters.volumeGroupName
|
|
271
|
+
],
|
|
272
|
+
queryParameters: [
|
|
273
|
+
Parameters.apiVersion
|
|
274
|
+
],
|
|
275
|
+
headerParameters: [
|
|
276
|
+
Parameters.acceptLanguage
|
|
277
|
+
],
|
|
278
|
+
responses: {
|
|
279
|
+
200: {},
|
|
280
|
+
202: {},
|
|
281
|
+
204: {},
|
|
282
|
+
default: {
|
|
283
|
+
bodyMapper: Mappers.CloudError
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
serializer
|
|
287
|
+
};
|