@azure/arm-netapp 14.3.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/LICENSE.txt +21 -0
- package/README.md +106 -0
- package/dist/arm-netapp.js +7621 -0
- package/dist/arm-netapp.js.map +1 -0
- package/dist/arm-netapp.min.js +1 -0
- package/dist/arm-netapp.min.js.map +1 -0
- package/esm/azureNetAppFilesManagementClient.d.ts +36 -0
- package/esm/azureNetAppFilesManagementClient.d.ts.map +1 -0
- package/esm/azureNetAppFilesManagementClient.js +49 -0
- package/esm/azureNetAppFilesManagementClient.js.map +1 -0
- package/esm/azureNetAppFilesManagementClientContext.d.ts +23 -0
- package/esm/azureNetAppFilesManagementClientContext.d.ts.map +1 -0
- package/esm/azureNetAppFilesManagementClientContext.js +61 -0
- package/esm/azureNetAppFilesManagementClientContext.js.map +1 -0
- package/esm/models/accountBackupsMappers.d.ts +2 -0
- package/esm/models/accountBackupsMappers.d.ts.map +1 -0
- package/esm/models/accountBackupsMappers.js +9 -0
- package/esm/models/accountBackupsMappers.js.map +1 -0
- package/esm/models/accountsMappers.d.ts +2 -0
- package/esm/models/accountsMappers.d.ts.map +1 -0
- package/esm/models/accountsMappers.js +9 -0
- package/esm/models/accountsMappers.js.map +1 -0
- package/esm/models/backupPoliciesMappers.d.ts +2 -0
- package/esm/models/backupPoliciesMappers.d.ts.map +1 -0
- package/esm/models/backupPoliciesMappers.js +9 -0
- package/esm/models/backupPoliciesMappers.js.map +1 -0
- package/esm/models/backupsMappers.d.ts +2 -0
- package/esm/models/backupsMappers.d.ts.map +1 -0
- package/esm/models/backupsMappers.js +9 -0
- package/esm/models/backupsMappers.js.map +1 -0
- package/esm/models/index.d.ts +3402 -0
- package/esm/models/index.d.ts.map +1 -0
- package/esm/models/index.js +8 -0
- package/esm/models/index.js.map +1 -0
- package/esm/models/mappers.d.ts +72 -0
- package/esm/models/mappers.d.ts.map +1 -0
- package/esm/models/mappers.js +3518 -0
- package/esm/models/mappers.js.map +1 -0
- package/esm/models/netAppResourceMappers.d.ts +2 -0
- package/esm/models/netAppResourceMappers.d.ts.map +1 -0
- package/esm/models/netAppResourceMappers.js +9 -0
- package/esm/models/netAppResourceMappers.js.map +1 -0
- package/esm/models/netAppResourceQuotaLimitsMappers.d.ts +2 -0
- package/esm/models/netAppResourceQuotaLimitsMappers.d.ts.map +1 -0
- package/esm/models/netAppResourceQuotaLimitsMappers.js +9 -0
- package/esm/models/netAppResourceQuotaLimitsMappers.js.map +1 -0
- package/esm/models/operationsMappers.d.ts +2 -0
- package/esm/models/operationsMappers.d.ts.map +1 -0
- package/esm/models/operationsMappers.js +9 -0
- package/esm/models/operationsMappers.js.map +1 -0
- package/esm/models/parameters.d.ts +16 -0
- package/esm/models/parameters.d.ts.map +1 -0
- package/esm/models/parameters.js +168 -0
- package/esm/models/parameters.js.map +1 -0
- package/esm/models/poolsMappers.d.ts +2 -0
- package/esm/models/poolsMappers.d.ts.map +1 -0
- package/esm/models/poolsMappers.js +9 -0
- package/esm/models/poolsMappers.js.map +1 -0
- package/esm/models/snapshotPoliciesMappers.d.ts +2 -0
- package/esm/models/snapshotPoliciesMappers.d.ts.map +1 -0
- package/esm/models/snapshotPoliciesMappers.js +9 -0
- package/esm/models/snapshotPoliciesMappers.js.map +1 -0
- package/esm/models/snapshotsMappers.d.ts +2 -0
- package/esm/models/snapshotsMappers.d.ts.map +1 -0
- package/esm/models/snapshotsMappers.js +9 -0
- package/esm/models/snapshotsMappers.js.map +1 -0
- package/esm/models/vaultsMappers.d.ts +2 -0
- package/esm/models/vaultsMappers.d.ts.map +1 -0
- package/esm/models/vaultsMappers.js +9 -0
- package/esm/models/vaultsMappers.js.map +1 -0
- package/esm/models/volumesMappers.d.ts +2 -0
- package/esm/models/volumesMappers.d.ts.map +1 -0
- package/esm/models/volumesMappers.js +9 -0
- package/esm/models/volumesMappers.js.map +1 -0
- package/esm/operations/accountBackups.d.ts +81 -0
- package/esm/operations/accountBackups.d.ts.map +1 -0
- package/esm/operations/accountBackups.js +145 -0
- package/esm/operations/accountBackups.js.map +1 -0
- package/esm/operations/accounts.d.ts +167 -0
- package/esm/operations/accounts.d.ts.map +1 -0
- package/esm/operations/accounts.js +344 -0
- package/esm/operations/accounts.js.map +1 -0
- package/esm/operations/backupPolicies.d.ts +125 -0
- package/esm/operations/backupPolicies.d.ts.map +1 -0
- package/esm/operations/backupPolicies.js +277 -0
- package/esm/operations/backupPolicies.js.map +1 -0
- package/esm/operations/backups.d.ts +203 -0
- package/esm/operations/backups.d.ts.map +1 -0
- package/esm/operations/backups.js +379 -0
- package/esm/operations/backups.js.map +1 -0
- package/esm/operations/index.d.ts +13 -0
- package/esm/operations/index.d.ts.map +1 -0
- package/esm/operations/index.js +21 -0
- package/esm/operations/index.js.map +1 -0
- package/esm/operations/netAppResource.d.ts +115 -0
- package/esm/operations/netAppResource.d.ts.map +1 -0
- package/esm/operations/netAppResource.js +145 -0
- package/esm/operations/netAppResource.js.map +1 -0
- package/esm/operations/netAppResourceQuotaLimits.d.ts +54 -0
- package/esm/operations/netAppResourceQuotaLimits.d.ts.map +1 -0
- package/esm/operations/netAppResourceQuotaLimits.js +86 -0
- package/esm/operations/netAppResourceQuotaLimits.js.map +1 -0
- package/esm/operations/operations.d.ts +29 -0
- package/esm/operations/operations.d.ts.map +1 -0
- package/esm/operations/operations.js +50 -0
- package/esm/operations/operations.js.map +1 -0
- package/esm/operations/pools.d.ts +144 -0
- package/esm/operations/pools.d.ts.map +1 -0
- package/esm/operations/pools.js +302 -0
- package/esm/operations/pools.js.map +1 -0
- package/esm/operations/snapshotPolicies.d.ts +149 -0
- package/esm/operations/snapshotPolicies.d.ts.map +1 -0
- package/esm/operations/snapshotPolicies.js +281 -0
- package/esm/operations/snapshotPolicies.js.map +1 -0
- package/esm/operations/snapshots.d.ts +149 -0
- package/esm/operations/snapshots.d.ts.map +1 -0
- package/esm/operations/snapshots.js +312 -0
- package/esm/operations/snapshots.js.map +1 -0
- package/esm/operations/vaults.d.ts +35 -0
- package/esm/operations/vaults.d.ts.map +1 -0
- package/esm/operations/vaults.js +57 -0
- package/esm/operations/vaults.js.map +1 -0
- package/esm/operations/volumes.d.ts +344 -0
- package/esm/operations/volumes.d.ts.map +1 -0
- package/esm/operations/volumes.js +800 -0
- package/esm/operations/volumes.js.map +1 -0
- package/package.json +59 -0
- package/rollup.config.js +37 -0
- package/src/azureNetAppFilesManagementClient.ts +70 -0
- package/src/azureNetAppFilesManagementClientContext.ts +68 -0
- package/src/models/accountBackupsMappers.ts +49 -0
- package/src/models/accountsMappers.ts +49 -0
- package/src/models/backupPoliciesMappers.ts +49 -0
- package/src/models/backupsMappers.ts +51 -0
- package/src/models/index.ts +3594 -0
- package/src/models/mappers.ts +3602 -0
- package/src/models/netAppResourceMappers.ts +15 -0
- package/src/models/netAppResourceQuotaLimitsMappers.ts +49 -0
- package/src/models/operationsMappers.ts +18 -0
- package/src/models/parameters.ts +170 -0
- package/src/models/poolsMappers.ts +49 -0
- package/src/models/snapshotPoliciesMappers.ts +51 -0
- package/src/models/snapshotsMappers.ts +49 -0
- package/src/models/vaultsMappers.ts +49 -0
- package/src/models/volumesMappers.ts +54 -0
- package/src/operations/accountBackups.ts +212 -0
- package/src/operations/accounts.ts +491 -0
- package/src/operations/backupPolicies.ts +361 -0
- package/src/operations/backups.ts +538 -0
- package/src/operations/index.ts +21 -0
- package/src/operations/netAppResource.ts +273 -0
- package/src/operations/netAppResourceQuotaLimits.ts +140 -0
- package/src/operations/operations.ts +74 -0
- package/src/operations/pools.ts +410 -0
- package/src/operations/snapshotPolicies.ts +419 -0
- package/src/operations/snapshots.ts +405 -0
- package/src/operations/vaults.ts +87 -0
- package/src/operations/volumes.ts +998 -0
- package/tsconfig.json +19 -0
|
@@ -0,0 +1,405 @@
|
|
|
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/snapshotsMappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { AzureNetAppFilesManagementClientContext } from "../azureNetAppFilesManagementClientContext";
|
|
16
|
+
|
|
17
|
+
/** Class representing a Snapshots. */
|
|
18
|
+
export class Snapshots {
|
|
19
|
+
private readonly client: AzureNetAppFilesManagementClientContext;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Create a Snapshots.
|
|
23
|
+
* @param {AzureNetAppFilesManagementClientContext} client Reference to the service client.
|
|
24
|
+
*/
|
|
25
|
+
constructor(client: AzureNetAppFilesManagementClientContext) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* List all snapshots associated with the volume
|
|
31
|
+
* @summary Describe all snapshots
|
|
32
|
+
* @param resourceGroupName The name of the resource group.
|
|
33
|
+
* @param accountName The name of the NetApp account
|
|
34
|
+
* @param poolName The name of the capacity pool
|
|
35
|
+
* @param volumeName The name of the volume
|
|
36
|
+
* @param [options] The optional parameters
|
|
37
|
+
* @returns Promise<Models.SnapshotsListResponse>
|
|
38
|
+
*/
|
|
39
|
+
list(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise<Models.SnapshotsListResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* @param resourceGroupName The name of the resource group.
|
|
42
|
+
* @param accountName The name of the NetApp account
|
|
43
|
+
* @param poolName The name of the capacity pool
|
|
44
|
+
* @param volumeName The name of the volume
|
|
45
|
+
* @param callback The callback
|
|
46
|
+
*/
|
|
47
|
+
list(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, callback: msRest.ServiceCallback<Models.SnapshotsList>): void;
|
|
48
|
+
/**
|
|
49
|
+
* @param resourceGroupName The name of the resource group.
|
|
50
|
+
* @param accountName The name of the NetApp account
|
|
51
|
+
* @param poolName The name of the capacity pool
|
|
52
|
+
* @param volumeName The name of the volume
|
|
53
|
+
* @param options The optional parameters
|
|
54
|
+
* @param callback The callback
|
|
55
|
+
*/
|
|
56
|
+
list(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SnapshotsList>): void;
|
|
57
|
+
list(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SnapshotsList>, callback?: msRest.ServiceCallback<Models.SnapshotsList>): Promise<Models.SnapshotsListResponse> {
|
|
58
|
+
return this.client.sendOperationRequest(
|
|
59
|
+
{
|
|
60
|
+
resourceGroupName,
|
|
61
|
+
accountName,
|
|
62
|
+
poolName,
|
|
63
|
+
volumeName,
|
|
64
|
+
options
|
|
65
|
+
},
|
|
66
|
+
listOperationSpec,
|
|
67
|
+
callback) as Promise<Models.SnapshotsListResponse>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Get details of the specified snapshot
|
|
72
|
+
* @summary Describe a snapshot
|
|
73
|
+
* @param resourceGroupName The name of the resource group.
|
|
74
|
+
* @param accountName The name of the NetApp account
|
|
75
|
+
* @param poolName The name of the capacity pool
|
|
76
|
+
* @param volumeName The name of the volume
|
|
77
|
+
* @param snapshotName The name of the snapshot
|
|
78
|
+
* @param [options] The optional parameters
|
|
79
|
+
* @returns Promise<Models.SnapshotsGetResponse>
|
|
80
|
+
*/
|
|
81
|
+
get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise<Models.SnapshotsGetResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* @param resourceGroupName The name of the resource group.
|
|
84
|
+
* @param accountName The name of the NetApp account
|
|
85
|
+
* @param poolName The name of the capacity pool
|
|
86
|
+
* @param volumeName The name of the volume
|
|
87
|
+
* @param snapshotName The name of the snapshot
|
|
88
|
+
* @param callback The callback
|
|
89
|
+
*/
|
|
90
|
+
get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, callback: msRest.ServiceCallback<Models.Snapshot>): void;
|
|
91
|
+
/**
|
|
92
|
+
* @param resourceGroupName The name of the resource group.
|
|
93
|
+
* @param accountName The name of the NetApp account
|
|
94
|
+
* @param poolName The name of the capacity pool
|
|
95
|
+
* @param volumeName The name of the volume
|
|
96
|
+
* @param snapshotName The name of the snapshot
|
|
97
|
+
* @param options The optional parameters
|
|
98
|
+
* @param callback The callback
|
|
99
|
+
*/
|
|
100
|
+
get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Snapshot>): void;
|
|
101
|
+
get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Snapshot>, callback?: msRest.ServiceCallback<Models.Snapshot>): Promise<Models.SnapshotsGetResponse> {
|
|
102
|
+
return this.client.sendOperationRequest(
|
|
103
|
+
{
|
|
104
|
+
resourceGroupName,
|
|
105
|
+
accountName,
|
|
106
|
+
poolName,
|
|
107
|
+
volumeName,
|
|
108
|
+
snapshotName,
|
|
109
|
+
options
|
|
110
|
+
},
|
|
111
|
+
getOperationSpec,
|
|
112
|
+
callback) as Promise<Models.SnapshotsGetResponse>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Create the specified snapshot within the given volume
|
|
117
|
+
* @summary Create a snapshot
|
|
118
|
+
* @param resourceGroupName The name of the resource group.
|
|
119
|
+
* @param accountName The name of the NetApp account
|
|
120
|
+
* @param poolName The name of the capacity pool
|
|
121
|
+
* @param volumeName The name of the volume
|
|
122
|
+
* @param snapshotName The name of the snapshot
|
|
123
|
+
* @param location Resource location
|
|
124
|
+
* @param [options] The optional parameters
|
|
125
|
+
* @returns Promise<Models.SnapshotsCreateResponse>
|
|
126
|
+
*/
|
|
127
|
+
create(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, location: string, options?: msRest.RequestOptionsBase): Promise<Models.SnapshotsCreateResponse> {
|
|
128
|
+
return this.beginCreate(resourceGroupName,accountName,poolName,volumeName,snapshotName,location,options)
|
|
129
|
+
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.SnapshotsCreateResponse>;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Patch a snapshot
|
|
134
|
+
* @summary Update a snapshot
|
|
135
|
+
* @param body Snapshot 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 poolName The name of the capacity pool
|
|
139
|
+
* @param volumeName The name of the volume
|
|
140
|
+
* @param snapshotName The name of the snapshot
|
|
141
|
+
* @param [options] The optional parameters
|
|
142
|
+
* @returns Promise<Models.SnapshotsUpdateResponse>
|
|
143
|
+
*/
|
|
144
|
+
update(body: any, resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise<Models.SnapshotsUpdateResponse> {
|
|
145
|
+
return this.beginUpdate(body,resourceGroupName,accountName,poolName,volumeName,snapshotName,options)
|
|
146
|
+
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.SnapshotsUpdateResponse>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Delete snapshot
|
|
151
|
+
* @summary Delete a snapshot
|
|
152
|
+
* @param resourceGroupName The name of the resource group.
|
|
153
|
+
* @param accountName The name of the NetApp account
|
|
154
|
+
* @param poolName The name of the capacity pool
|
|
155
|
+
* @param volumeName The name of the volume
|
|
156
|
+
* @param snapshotName The name of the snapshot
|
|
157
|
+
* @param [options] The optional parameters
|
|
158
|
+
* @returns Promise<msRest.RestResponse>
|
|
159
|
+
*/
|
|
160
|
+
deleteMethod(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
|
|
161
|
+
return this.beginDeleteMethod(resourceGroupName,accountName,poolName,volumeName,snapshotName,options)
|
|
162
|
+
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Create the specified snapshot within the given volume
|
|
167
|
+
* @summary Create a snapshot
|
|
168
|
+
* @param resourceGroupName The name of the resource group.
|
|
169
|
+
* @param accountName The name of the NetApp account
|
|
170
|
+
* @param poolName The name of the capacity pool
|
|
171
|
+
* @param volumeName The name of the volume
|
|
172
|
+
* @param snapshotName The name of the snapshot
|
|
173
|
+
* @param location Resource location
|
|
174
|
+
* @param [options] The optional parameters
|
|
175
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
176
|
+
*/
|
|
177
|
+
beginCreate(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, location: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
178
|
+
return this.client.sendLRORequest(
|
|
179
|
+
{
|
|
180
|
+
resourceGroupName,
|
|
181
|
+
accountName,
|
|
182
|
+
poolName,
|
|
183
|
+
volumeName,
|
|
184
|
+
snapshotName,
|
|
185
|
+
location,
|
|
186
|
+
options
|
|
187
|
+
},
|
|
188
|
+
beginCreateOperationSpec,
|
|
189
|
+
options);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Patch a snapshot
|
|
194
|
+
* @summary Update a snapshot
|
|
195
|
+
* @param body Snapshot object supplied in the body of the operation.
|
|
196
|
+
* @param resourceGroupName The name of the resource group.
|
|
197
|
+
* @param accountName The name of the NetApp account
|
|
198
|
+
* @param poolName The name of the capacity pool
|
|
199
|
+
* @param volumeName The name of the volume
|
|
200
|
+
* @param snapshotName The name of the snapshot
|
|
201
|
+
* @param [options] The optional parameters
|
|
202
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
203
|
+
*/
|
|
204
|
+
beginUpdate(body: any, resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
205
|
+
return this.client.sendLRORequest(
|
|
206
|
+
{
|
|
207
|
+
body,
|
|
208
|
+
resourceGroupName,
|
|
209
|
+
accountName,
|
|
210
|
+
poolName,
|
|
211
|
+
volumeName,
|
|
212
|
+
snapshotName,
|
|
213
|
+
options
|
|
214
|
+
},
|
|
215
|
+
beginUpdateOperationSpec,
|
|
216
|
+
options);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Delete snapshot
|
|
221
|
+
* @summary Delete a snapshot
|
|
222
|
+
* @param resourceGroupName The name of the resource group.
|
|
223
|
+
* @param accountName The name of the NetApp account
|
|
224
|
+
* @param poolName The name of the capacity pool
|
|
225
|
+
* @param volumeName The name of the volume
|
|
226
|
+
* @param snapshotName The name of the snapshot
|
|
227
|
+
* @param [options] The optional parameters
|
|
228
|
+
* @returns Promise<msRestAzure.LROPoller>
|
|
229
|
+
*/
|
|
230
|
+
beginDeleteMethod(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
231
|
+
return this.client.sendLRORequest(
|
|
232
|
+
{
|
|
233
|
+
resourceGroupName,
|
|
234
|
+
accountName,
|
|
235
|
+
poolName,
|
|
236
|
+
volumeName,
|
|
237
|
+
snapshotName,
|
|
238
|
+
options
|
|
239
|
+
},
|
|
240
|
+
beginDeleteMethodOperationSpec,
|
|
241
|
+
options);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// Operation Specifications
|
|
246
|
+
const serializer = new msRest.Serializer(Mappers);
|
|
247
|
+
const listOperationSpec: msRest.OperationSpec = {
|
|
248
|
+
httpMethod: "GET",
|
|
249
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots",
|
|
250
|
+
urlParameters: [
|
|
251
|
+
Parameters.subscriptionId,
|
|
252
|
+
Parameters.resourceGroupName,
|
|
253
|
+
Parameters.accountName,
|
|
254
|
+
Parameters.poolName,
|
|
255
|
+
Parameters.volumeName
|
|
256
|
+
],
|
|
257
|
+
queryParameters: [
|
|
258
|
+
Parameters.apiVersion
|
|
259
|
+
],
|
|
260
|
+
headerParameters: [
|
|
261
|
+
Parameters.acceptLanguage
|
|
262
|
+
],
|
|
263
|
+
responses: {
|
|
264
|
+
200: {
|
|
265
|
+
bodyMapper: Mappers.SnapshotsList
|
|
266
|
+
},
|
|
267
|
+
default: {
|
|
268
|
+
bodyMapper: Mappers.CloudError
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
serializer
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
const getOperationSpec: msRest.OperationSpec = {
|
|
275
|
+
httpMethod: "GET",
|
|
276
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}",
|
|
277
|
+
urlParameters: [
|
|
278
|
+
Parameters.subscriptionId,
|
|
279
|
+
Parameters.resourceGroupName,
|
|
280
|
+
Parameters.accountName,
|
|
281
|
+
Parameters.poolName,
|
|
282
|
+
Parameters.volumeName,
|
|
283
|
+
Parameters.snapshotName
|
|
284
|
+
],
|
|
285
|
+
queryParameters: [
|
|
286
|
+
Parameters.apiVersion
|
|
287
|
+
],
|
|
288
|
+
headerParameters: [
|
|
289
|
+
Parameters.acceptLanguage
|
|
290
|
+
],
|
|
291
|
+
responses: {
|
|
292
|
+
200: {
|
|
293
|
+
bodyMapper: Mappers.Snapshot
|
|
294
|
+
},
|
|
295
|
+
default: {
|
|
296
|
+
bodyMapper: Mappers.CloudError
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
serializer
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
303
|
+
httpMethod: "PUT",
|
|
304
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}",
|
|
305
|
+
urlParameters: [
|
|
306
|
+
Parameters.subscriptionId,
|
|
307
|
+
Parameters.resourceGroupName,
|
|
308
|
+
Parameters.accountName,
|
|
309
|
+
Parameters.poolName,
|
|
310
|
+
Parameters.volumeName,
|
|
311
|
+
Parameters.snapshotName
|
|
312
|
+
],
|
|
313
|
+
queryParameters: [
|
|
314
|
+
Parameters.apiVersion
|
|
315
|
+
],
|
|
316
|
+
headerParameters: [
|
|
317
|
+
Parameters.acceptLanguage
|
|
318
|
+
],
|
|
319
|
+
requestBody: {
|
|
320
|
+
parameterPath: {
|
|
321
|
+
location: "location"
|
|
322
|
+
},
|
|
323
|
+
mapper: {
|
|
324
|
+
...Mappers.Snapshot,
|
|
325
|
+
required: true
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
responses: {
|
|
329
|
+
201: {
|
|
330
|
+
bodyMapper: Mappers.Snapshot
|
|
331
|
+
},
|
|
332
|
+
202: {},
|
|
333
|
+
default: {
|
|
334
|
+
bodyMapper: Mappers.CloudError
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
serializer
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
341
|
+
httpMethod: "PATCH",
|
|
342
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}",
|
|
343
|
+
urlParameters: [
|
|
344
|
+
Parameters.subscriptionId,
|
|
345
|
+
Parameters.resourceGroupName,
|
|
346
|
+
Parameters.accountName,
|
|
347
|
+
Parameters.poolName,
|
|
348
|
+
Parameters.volumeName,
|
|
349
|
+
Parameters.snapshotName
|
|
350
|
+
],
|
|
351
|
+
queryParameters: [
|
|
352
|
+
Parameters.apiVersion
|
|
353
|
+
],
|
|
354
|
+
headerParameters: [
|
|
355
|
+
Parameters.acceptLanguage
|
|
356
|
+
],
|
|
357
|
+
requestBody: {
|
|
358
|
+
parameterPath: "body",
|
|
359
|
+
mapper: {
|
|
360
|
+
required: true,
|
|
361
|
+
serializedName: "body",
|
|
362
|
+
type: {
|
|
363
|
+
name: "Object"
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
responses: {
|
|
368
|
+
200: {
|
|
369
|
+
bodyMapper: Mappers.Snapshot
|
|
370
|
+
},
|
|
371
|
+
202: {},
|
|
372
|
+
default: {
|
|
373
|
+
bodyMapper: Mappers.CloudError
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
serializer
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
380
|
+
httpMethod: "DELETE",
|
|
381
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}",
|
|
382
|
+
urlParameters: [
|
|
383
|
+
Parameters.subscriptionId,
|
|
384
|
+
Parameters.resourceGroupName,
|
|
385
|
+
Parameters.accountName,
|
|
386
|
+
Parameters.poolName,
|
|
387
|
+
Parameters.volumeName,
|
|
388
|
+
Parameters.snapshotName
|
|
389
|
+
],
|
|
390
|
+
queryParameters: [
|
|
391
|
+
Parameters.apiVersion
|
|
392
|
+
],
|
|
393
|
+
headerParameters: [
|
|
394
|
+
Parameters.acceptLanguage
|
|
395
|
+
],
|
|
396
|
+
responses: {
|
|
397
|
+
200: {},
|
|
398
|
+
202: {},
|
|
399
|
+
204: {},
|
|
400
|
+
default: {
|
|
401
|
+
bodyMapper: Mappers.CloudError
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
serializer
|
|
405
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
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 Models from "../models";
|
|
12
|
+
import * as Mappers from "../models/vaultsMappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { AzureNetAppFilesManagementClientContext } from "../azureNetAppFilesManagementClientContext";
|
|
15
|
+
|
|
16
|
+
/** Class representing a Vaults. */
|
|
17
|
+
export class Vaults {
|
|
18
|
+
private readonly client: AzureNetAppFilesManagementClientContext;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Create a Vaults.
|
|
22
|
+
* @param {AzureNetAppFilesManagementClientContext} client Reference to the service client.
|
|
23
|
+
*/
|
|
24
|
+
constructor(client: AzureNetAppFilesManagementClientContext) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* List vaults for a Netapp Account
|
|
30
|
+
* @summary List vaults
|
|
31
|
+
* @param resourceGroupName The name of the resource group.
|
|
32
|
+
* @param accountName The name of the NetApp account
|
|
33
|
+
* @param [options] The optional parameters
|
|
34
|
+
* @returns Promise<Models.VaultsListResponse>
|
|
35
|
+
*/
|
|
36
|
+
list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.VaultsListResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* @param resourceGroupName The name of the resource group.
|
|
39
|
+
* @param accountName The name of the NetApp account
|
|
40
|
+
* @param callback The callback
|
|
41
|
+
*/
|
|
42
|
+
list(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.VaultList>): void;
|
|
43
|
+
/**
|
|
44
|
+
* @param resourceGroupName The name of the resource group.
|
|
45
|
+
* @param accountName The name of the NetApp account
|
|
46
|
+
* @param options The optional parameters
|
|
47
|
+
* @param callback The callback
|
|
48
|
+
*/
|
|
49
|
+
list(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.VaultList>): void;
|
|
50
|
+
list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.VaultList>, callback?: msRest.ServiceCallback<Models.VaultList>): Promise<Models.VaultsListResponse> {
|
|
51
|
+
return this.client.sendOperationRequest(
|
|
52
|
+
{
|
|
53
|
+
resourceGroupName,
|
|
54
|
+
accountName,
|
|
55
|
+
options
|
|
56
|
+
},
|
|
57
|
+
listOperationSpec,
|
|
58
|
+
callback) as Promise<Models.VaultsListResponse>;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Operation Specifications
|
|
63
|
+
const serializer = new msRest.Serializer(Mappers);
|
|
64
|
+
const listOperationSpec: msRest.OperationSpec = {
|
|
65
|
+
httpMethod: "GET",
|
|
66
|
+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/vaults",
|
|
67
|
+
urlParameters: [
|
|
68
|
+
Parameters.subscriptionId,
|
|
69
|
+
Parameters.resourceGroupName,
|
|
70
|
+
Parameters.accountName
|
|
71
|
+
],
|
|
72
|
+
queryParameters: [
|
|
73
|
+
Parameters.apiVersion
|
|
74
|
+
],
|
|
75
|
+
headerParameters: [
|
|
76
|
+
Parameters.acceptLanguage
|
|
77
|
+
],
|
|
78
|
+
responses: {
|
|
79
|
+
200: {
|
|
80
|
+
bodyMapper: Mappers.VaultList
|
|
81
|
+
},
|
|
82
|
+
default: {
|
|
83
|
+
bodyMapper: Mappers.CloudError
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
serializer
|
|
87
|
+
};
|