@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,273 @@
|
|
|
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/netAppResourceMappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { AzureNetAppFilesManagementClientContext } from "../azureNetAppFilesManagementClientContext";
|
|
15
|
+
|
|
16
|
+
/** Class representing a NetAppResource. */
|
|
17
|
+
export class NetAppResource {
|
|
18
|
+
private readonly client: AzureNetAppFilesManagementClientContext;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Create a NetAppResource.
|
|
22
|
+
* @param {AzureNetAppFilesManagementClientContext} client Reference to the service client.
|
|
23
|
+
*/
|
|
24
|
+
constructor(client: AzureNetAppFilesManagementClientContext) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Check if a resource name is available.
|
|
30
|
+
* @summary Check resource name availability
|
|
31
|
+
* @param location The location
|
|
32
|
+
* @param name Resource name to verify.
|
|
33
|
+
* @param type Resource type used for verification. Possible values include:
|
|
34
|
+
* 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools',
|
|
35
|
+
* 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
|
|
36
|
+
* 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
|
|
37
|
+
* @param resourceGroup Resource group name.
|
|
38
|
+
* @param [options] The optional parameters
|
|
39
|
+
* @returns Promise<Models.NetAppResourceCheckNameAvailabilityResponse>
|
|
40
|
+
*/
|
|
41
|
+
checkNameAvailability(location: string, name: string, type: Models.CheckNameResourceTypes, resourceGroup: string, options?: msRest.RequestOptionsBase): Promise<Models.NetAppResourceCheckNameAvailabilityResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* @param location The location
|
|
44
|
+
* @param name Resource name to verify.
|
|
45
|
+
* @param type Resource type used for verification. Possible values include:
|
|
46
|
+
* 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools',
|
|
47
|
+
* 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
|
|
48
|
+
* 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
|
|
49
|
+
* @param resourceGroup Resource group name.
|
|
50
|
+
* @param callback The callback
|
|
51
|
+
*/
|
|
52
|
+
checkNameAvailability(location: string, name: string, type: Models.CheckNameResourceTypes, resourceGroup: string, callback: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): void;
|
|
53
|
+
/**
|
|
54
|
+
* @param location The location
|
|
55
|
+
* @param name Resource name to verify.
|
|
56
|
+
* @param type Resource type used for verification. Possible values include:
|
|
57
|
+
* 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools',
|
|
58
|
+
* 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
|
|
59
|
+
* 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
|
|
60
|
+
* @param resourceGroup Resource group name.
|
|
61
|
+
* @param options The optional parameters
|
|
62
|
+
* @param callback The callback
|
|
63
|
+
*/
|
|
64
|
+
checkNameAvailability(location: string, name: string, type: Models.CheckNameResourceTypes, resourceGroup: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): void;
|
|
65
|
+
checkNameAvailability(location: string, name: string, type: Models.CheckNameResourceTypes, resourceGroup: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckAvailabilityResponse>, callback?: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): Promise<Models.NetAppResourceCheckNameAvailabilityResponse> {
|
|
66
|
+
return this.client.sendOperationRequest(
|
|
67
|
+
{
|
|
68
|
+
location,
|
|
69
|
+
name,
|
|
70
|
+
type,
|
|
71
|
+
resourceGroup,
|
|
72
|
+
options
|
|
73
|
+
},
|
|
74
|
+
checkNameAvailabilityOperationSpec,
|
|
75
|
+
callback) as Promise<Models.NetAppResourceCheckNameAvailabilityResponse>;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Check if a file path is available.
|
|
80
|
+
* @summary Check file path availability
|
|
81
|
+
* @param location The location
|
|
82
|
+
* @param name File path to verify.
|
|
83
|
+
* @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation
|
|
84
|
+
* Microsoft.NetApp/volumes
|
|
85
|
+
* @param [options] The optional parameters
|
|
86
|
+
* @returns Promise<Models.NetAppResourceCheckFilePathAvailabilityResponse>
|
|
87
|
+
*/
|
|
88
|
+
checkFilePathAvailability(location: string, name: string, subnetId: string, options?: msRest.RequestOptionsBase): Promise<Models.NetAppResourceCheckFilePathAvailabilityResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* @param location The location
|
|
91
|
+
* @param name File path to verify.
|
|
92
|
+
* @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation
|
|
93
|
+
* Microsoft.NetApp/volumes
|
|
94
|
+
* @param callback The callback
|
|
95
|
+
*/
|
|
96
|
+
checkFilePathAvailability(location: string, name: string, subnetId: string, callback: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): void;
|
|
97
|
+
/**
|
|
98
|
+
* @param location The location
|
|
99
|
+
* @param name File path to verify.
|
|
100
|
+
* @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation
|
|
101
|
+
* Microsoft.NetApp/volumes
|
|
102
|
+
* @param options The optional parameters
|
|
103
|
+
* @param callback The callback
|
|
104
|
+
*/
|
|
105
|
+
checkFilePathAvailability(location: string, name: string, subnetId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): void;
|
|
106
|
+
checkFilePathAvailability(location: string, name: string, subnetId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckAvailabilityResponse>, callback?: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): Promise<Models.NetAppResourceCheckFilePathAvailabilityResponse> {
|
|
107
|
+
return this.client.sendOperationRequest(
|
|
108
|
+
{
|
|
109
|
+
location,
|
|
110
|
+
name,
|
|
111
|
+
subnetId,
|
|
112
|
+
options
|
|
113
|
+
},
|
|
114
|
+
checkFilePathAvailabilityOperationSpec,
|
|
115
|
+
callback) as Promise<Models.NetAppResourceCheckFilePathAvailabilityResponse>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Check if a quota is available.
|
|
120
|
+
* @summary Check quota availability
|
|
121
|
+
* @param location The location
|
|
122
|
+
* @param name Name of the resource to verify.
|
|
123
|
+
* @param type Resource type used for verification. Possible values include:
|
|
124
|
+
* 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools',
|
|
125
|
+
* 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
|
|
126
|
+
* 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
|
|
127
|
+
* @param resourceGroup Resource group name.
|
|
128
|
+
* @param [options] The optional parameters
|
|
129
|
+
* @returns Promise<Models.NetAppResourceCheckQuotaAvailabilityResponse>
|
|
130
|
+
*/
|
|
131
|
+
checkQuotaAvailability(location: string, name: string, type: Models.CheckQuotaNameResourceTypes, resourceGroup: string, options?: msRest.RequestOptionsBase): Promise<Models.NetAppResourceCheckQuotaAvailabilityResponse>;
|
|
132
|
+
/**
|
|
133
|
+
* @param location The location
|
|
134
|
+
* @param name Name of the resource to verify.
|
|
135
|
+
* @param type Resource type used for verification. Possible values include:
|
|
136
|
+
* 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools',
|
|
137
|
+
* 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
|
|
138
|
+
* 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
|
|
139
|
+
* @param resourceGroup Resource group name.
|
|
140
|
+
* @param callback The callback
|
|
141
|
+
*/
|
|
142
|
+
checkQuotaAvailability(location: string, name: string, type: Models.CheckQuotaNameResourceTypes, resourceGroup: string, callback: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): void;
|
|
143
|
+
/**
|
|
144
|
+
* @param location The location
|
|
145
|
+
* @param name Name of the resource to verify.
|
|
146
|
+
* @param type Resource type used for verification. Possible values include:
|
|
147
|
+
* 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools',
|
|
148
|
+
* 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
|
|
149
|
+
* 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
|
|
150
|
+
* @param resourceGroup Resource group name.
|
|
151
|
+
* @param options The optional parameters
|
|
152
|
+
* @param callback The callback
|
|
153
|
+
*/
|
|
154
|
+
checkQuotaAvailability(location: string, name: string, type: Models.CheckQuotaNameResourceTypes, resourceGroup: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): void;
|
|
155
|
+
checkQuotaAvailability(location: string, name: string, type: Models.CheckQuotaNameResourceTypes, resourceGroup: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckAvailabilityResponse>, callback?: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): Promise<Models.NetAppResourceCheckQuotaAvailabilityResponse> {
|
|
156
|
+
return this.client.sendOperationRequest(
|
|
157
|
+
{
|
|
158
|
+
location,
|
|
159
|
+
name,
|
|
160
|
+
type,
|
|
161
|
+
resourceGroup,
|
|
162
|
+
options
|
|
163
|
+
},
|
|
164
|
+
checkQuotaAvailabilityOperationSpec,
|
|
165
|
+
callback) as Promise<Models.NetAppResourceCheckQuotaAvailabilityResponse>;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// Operation Specifications
|
|
170
|
+
const serializer = new msRest.Serializer(Mappers);
|
|
171
|
+
const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
|
|
172
|
+
httpMethod: "POST",
|
|
173
|
+
path: "subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability",
|
|
174
|
+
urlParameters: [
|
|
175
|
+
Parameters.subscriptionId,
|
|
176
|
+
Parameters.location
|
|
177
|
+
],
|
|
178
|
+
queryParameters: [
|
|
179
|
+
Parameters.apiVersion
|
|
180
|
+
],
|
|
181
|
+
headerParameters: [
|
|
182
|
+
Parameters.acceptLanguage
|
|
183
|
+
],
|
|
184
|
+
requestBody: {
|
|
185
|
+
parameterPath: {
|
|
186
|
+
name: "name",
|
|
187
|
+
type: "type",
|
|
188
|
+
resourceGroup: "resourceGroup"
|
|
189
|
+
},
|
|
190
|
+
mapper: {
|
|
191
|
+
...Mappers.ResourceNameAvailabilityRequest,
|
|
192
|
+
required: true
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
responses: {
|
|
196
|
+
200: {
|
|
197
|
+
bodyMapper: Mappers.CheckAvailabilityResponse
|
|
198
|
+
},
|
|
199
|
+
default: {
|
|
200
|
+
bodyMapper: Mappers.CloudError
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
serializer
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
const checkFilePathAvailabilityOperationSpec: msRest.OperationSpec = {
|
|
207
|
+
httpMethod: "POST",
|
|
208
|
+
path: "subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability",
|
|
209
|
+
urlParameters: [
|
|
210
|
+
Parameters.subscriptionId,
|
|
211
|
+
Parameters.location
|
|
212
|
+
],
|
|
213
|
+
queryParameters: [
|
|
214
|
+
Parameters.apiVersion
|
|
215
|
+
],
|
|
216
|
+
headerParameters: [
|
|
217
|
+
Parameters.acceptLanguage
|
|
218
|
+
],
|
|
219
|
+
requestBody: {
|
|
220
|
+
parameterPath: {
|
|
221
|
+
name: "name",
|
|
222
|
+
subnetId: "subnetId"
|
|
223
|
+
},
|
|
224
|
+
mapper: {
|
|
225
|
+
...Mappers.FilePathAvailabilityRequest,
|
|
226
|
+
required: true
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
responses: {
|
|
230
|
+
200: {
|
|
231
|
+
bodyMapper: Mappers.CheckAvailabilityResponse
|
|
232
|
+
},
|
|
233
|
+
default: {
|
|
234
|
+
bodyMapper: Mappers.CloudError
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
serializer
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
const checkQuotaAvailabilityOperationSpec: msRest.OperationSpec = {
|
|
241
|
+
httpMethod: "POST",
|
|
242
|
+
path: "subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability",
|
|
243
|
+
urlParameters: [
|
|
244
|
+
Parameters.subscriptionId,
|
|
245
|
+
Parameters.location
|
|
246
|
+
],
|
|
247
|
+
queryParameters: [
|
|
248
|
+
Parameters.apiVersion
|
|
249
|
+
],
|
|
250
|
+
headerParameters: [
|
|
251
|
+
Parameters.acceptLanguage
|
|
252
|
+
],
|
|
253
|
+
requestBody: {
|
|
254
|
+
parameterPath: {
|
|
255
|
+
name: "name",
|
|
256
|
+
type: "type",
|
|
257
|
+
resourceGroup: "resourceGroup"
|
|
258
|
+
},
|
|
259
|
+
mapper: {
|
|
260
|
+
...Mappers.QuotaAvailabilityRequest,
|
|
261
|
+
required: true
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
responses: {
|
|
265
|
+
200: {
|
|
266
|
+
bodyMapper: Mappers.CheckAvailabilityResponse
|
|
267
|
+
},
|
|
268
|
+
default: {
|
|
269
|
+
bodyMapper: Mappers.CloudError
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
serializer
|
|
273
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
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/netAppResourceQuotaLimitsMappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { AzureNetAppFilesManagementClientContext } from "../azureNetAppFilesManagementClientContext";
|
|
15
|
+
|
|
16
|
+
/** Class representing a NetAppResourceQuotaLimits. */
|
|
17
|
+
export class NetAppResourceQuotaLimits {
|
|
18
|
+
private readonly client: AzureNetAppFilesManagementClientContext;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Create a NetAppResourceQuotaLimits.
|
|
22
|
+
* @param {AzureNetAppFilesManagementClientContext} client Reference to the service client.
|
|
23
|
+
*/
|
|
24
|
+
constructor(client: AzureNetAppFilesManagementClientContext) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get the default and current limits for quotas
|
|
30
|
+
* @summary Get quota limits
|
|
31
|
+
* @param location The location
|
|
32
|
+
* @param [options] The optional parameters
|
|
33
|
+
* @returns Promise<Models.NetAppResourceQuotaLimitsListResponse>
|
|
34
|
+
*/
|
|
35
|
+
list(location: string, options?: msRest.RequestOptionsBase): Promise<Models.NetAppResourceQuotaLimitsListResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* @param location The location
|
|
38
|
+
* @param callback The callback
|
|
39
|
+
*/
|
|
40
|
+
list(location: string, callback: msRest.ServiceCallback<Models.SubscriptionQuotaItemList>): void;
|
|
41
|
+
/**
|
|
42
|
+
* @param location The location
|
|
43
|
+
* @param options The optional parameters
|
|
44
|
+
* @param callback The callback
|
|
45
|
+
*/
|
|
46
|
+
list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SubscriptionQuotaItemList>): void;
|
|
47
|
+
list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SubscriptionQuotaItemList>, callback?: msRest.ServiceCallback<Models.SubscriptionQuotaItemList>): Promise<Models.NetAppResourceQuotaLimitsListResponse> {
|
|
48
|
+
return this.client.sendOperationRequest(
|
|
49
|
+
{
|
|
50
|
+
location,
|
|
51
|
+
options
|
|
52
|
+
},
|
|
53
|
+
listOperationSpec,
|
|
54
|
+
callback) as Promise<Models.NetAppResourceQuotaLimitsListResponse>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Get the default and current subscription quota limit
|
|
59
|
+
* @summary Get quota limits
|
|
60
|
+
* @param location The location
|
|
61
|
+
* @param quotaLimitName The name of the Quota Limit
|
|
62
|
+
* @param [options] The optional parameters
|
|
63
|
+
* @returns Promise<Models.NetAppResourceQuotaLimitsGetResponse>
|
|
64
|
+
*/
|
|
65
|
+
get(location: string, quotaLimitName: string, options?: msRest.RequestOptionsBase): Promise<Models.NetAppResourceQuotaLimitsGetResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* @param location The location
|
|
68
|
+
* @param quotaLimitName The name of the Quota Limit
|
|
69
|
+
* @param callback The callback
|
|
70
|
+
*/
|
|
71
|
+
get(location: string, quotaLimitName: string, callback: msRest.ServiceCallback<Models.SubscriptionQuotaItem>): void;
|
|
72
|
+
/**
|
|
73
|
+
* @param location The location
|
|
74
|
+
* @param quotaLimitName The name of the Quota Limit
|
|
75
|
+
* @param options The optional parameters
|
|
76
|
+
* @param callback The callback
|
|
77
|
+
*/
|
|
78
|
+
get(location: string, quotaLimitName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SubscriptionQuotaItem>): void;
|
|
79
|
+
get(location: string, quotaLimitName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SubscriptionQuotaItem>, callback?: msRest.ServiceCallback<Models.SubscriptionQuotaItem>): Promise<Models.NetAppResourceQuotaLimitsGetResponse> {
|
|
80
|
+
return this.client.sendOperationRequest(
|
|
81
|
+
{
|
|
82
|
+
location,
|
|
83
|
+
quotaLimitName,
|
|
84
|
+
options
|
|
85
|
+
},
|
|
86
|
+
getOperationSpec,
|
|
87
|
+
callback) as Promise<Models.NetAppResourceQuotaLimitsGetResponse>;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Operation Specifications
|
|
92
|
+
const serializer = new msRest.Serializer(Mappers);
|
|
93
|
+
const listOperationSpec: msRest.OperationSpec = {
|
|
94
|
+
httpMethod: "GET",
|
|
95
|
+
path: "subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits",
|
|
96
|
+
urlParameters: [
|
|
97
|
+
Parameters.subscriptionId,
|
|
98
|
+
Parameters.location
|
|
99
|
+
],
|
|
100
|
+
queryParameters: [
|
|
101
|
+
Parameters.apiVersion
|
|
102
|
+
],
|
|
103
|
+
headerParameters: [
|
|
104
|
+
Parameters.acceptLanguage
|
|
105
|
+
],
|
|
106
|
+
responses: {
|
|
107
|
+
200: {
|
|
108
|
+
bodyMapper: Mappers.SubscriptionQuotaItemList
|
|
109
|
+
},
|
|
110
|
+
default: {
|
|
111
|
+
bodyMapper: Mappers.CloudError
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
serializer
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
const getOperationSpec: msRest.OperationSpec = {
|
|
118
|
+
httpMethod: "GET",
|
|
119
|
+
path: "subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}",
|
|
120
|
+
urlParameters: [
|
|
121
|
+
Parameters.subscriptionId,
|
|
122
|
+
Parameters.location,
|
|
123
|
+
Parameters.quotaLimitName
|
|
124
|
+
],
|
|
125
|
+
queryParameters: [
|
|
126
|
+
Parameters.apiVersion
|
|
127
|
+
],
|
|
128
|
+
headerParameters: [
|
|
129
|
+
Parameters.acceptLanguage
|
|
130
|
+
],
|
|
131
|
+
responses: {
|
|
132
|
+
200: {
|
|
133
|
+
bodyMapper: Mappers.SubscriptionQuotaItem
|
|
134
|
+
},
|
|
135
|
+
default: {
|
|
136
|
+
bodyMapper: Mappers.CloudError
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
serializer
|
|
140
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
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/operationsMappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { AzureNetAppFilesManagementClientContext } from "../azureNetAppFilesManagementClientContext";
|
|
15
|
+
|
|
16
|
+
/** Class representing a Operations. */
|
|
17
|
+
export class Operations {
|
|
18
|
+
private readonly client: AzureNetAppFilesManagementClientContext;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Create a Operations.
|
|
22
|
+
* @param {AzureNetAppFilesManagementClientContext} client Reference to the service client.
|
|
23
|
+
*/
|
|
24
|
+
constructor(client: AzureNetAppFilesManagementClientContext) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Lists all of the available Microsoft.NetApp Rest API operations
|
|
30
|
+
* @summary Describes the Resource Provider
|
|
31
|
+
* @param [options] The optional parameters
|
|
32
|
+
* @returns Promise<Models.OperationsListResponse>
|
|
33
|
+
*/
|
|
34
|
+
list(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* @param callback The callback
|
|
37
|
+
*/
|
|
38
|
+
list(callback: msRest.ServiceCallback<Models.OperationListResult>): void;
|
|
39
|
+
/**
|
|
40
|
+
* @param options The optional parameters
|
|
41
|
+
* @param callback The callback
|
|
42
|
+
*/
|
|
43
|
+
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
|
|
44
|
+
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
|
|
45
|
+
return this.client.sendOperationRequest(
|
|
46
|
+
{
|
|
47
|
+
options
|
|
48
|
+
},
|
|
49
|
+
listOperationSpec,
|
|
50
|
+
callback) as Promise<Models.OperationsListResponse>;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Operation Specifications
|
|
55
|
+
const serializer = new msRest.Serializer(Mappers);
|
|
56
|
+
const listOperationSpec: msRest.OperationSpec = {
|
|
57
|
+
httpMethod: "GET",
|
|
58
|
+
path: "providers/Microsoft.NetApp/operations",
|
|
59
|
+
queryParameters: [
|
|
60
|
+
Parameters.apiVersion
|
|
61
|
+
],
|
|
62
|
+
headerParameters: [
|
|
63
|
+
Parameters.acceptLanguage
|
|
64
|
+
],
|
|
65
|
+
responses: {
|
|
66
|
+
200: {
|
|
67
|
+
bodyMapper: Mappers.OperationListResult
|
|
68
|
+
},
|
|
69
|
+
default: {
|
|
70
|
+
bodyMapper: Mappers.CloudError
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
serializer
|
|
74
|
+
};
|