@azure/arm-netapp 14.4.0 → 15.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 +11 -0
- package/LICENSE +21 -0
- package/README.md +70 -78
- package/dist/index.js +8881 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/netAppResourceMappers.js → dist-esm/src/index.js} +5 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +2374 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +162 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +76 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1505 -1644
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +46 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +319 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/netAppManagementClient.d.ts +31 -0
- package/dist-esm/src/netAppManagementClient.d.ts.map +1 -0
- package/dist-esm/src/netAppManagementClient.js +64 -0
- package/dist-esm/src/netAppManagementClient.js.map +1 -0
- package/dist-esm/src/operations/accountBackups.d.ts +55 -0
- package/dist-esm/src/operations/accountBackups.d.ts.map +1 -0
- package/dist-esm/src/operations/accountBackups.js +195 -0
- package/dist-esm/src/operations/accountBackups.js.map +1 -0
- package/dist-esm/src/operations/accounts.d.ts +107 -0
- package/dist-esm/src/operations/accounts.d.ts.map +1 -0
- package/dist-esm/src/operations/accounts.js +482 -0
- package/dist-esm/src/operations/accounts.js.map +1 -0
- package/dist-esm/src/operations/backupPolicies.d.ts +91 -0
- package/dist-esm/src/operations/backupPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/backupPolicies.js +365 -0
- package/dist-esm/src/operations/backupPolicies.js.map +1 -0
- package/dist-esm/src/operations/backups.d.ts +125 -0
- package/dist-esm/src/operations/backups.d.ts.map +1 -0
- package/dist-esm/src/operations/backups.js +484 -0
- package/dist-esm/src/operations/backups.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/netAppResource.d.ts +40 -0
- package/dist-esm/src/operations/netAppResource.d.ts.map +1 -0
- package/dist-esm/src/operations/netAppResource.js +133 -0
- package/dist-esm/src/operations/netAppResource.js.map +1 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.d.ts +35 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.d.ts.map +1 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.js +122 -0
- package/dist-esm/src/operations/netAppResourceQuotaLimits.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +88 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/pools.d.ts +99 -0
- package/dist-esm/src/operations/pools.d.ts.map +1 -0
- package/dist-esm/src/operations/pools.js +401 -0
- package/dist-esm/src/operations/pools.js.map +1 -0
- package/dist-esm/src/operations/snapshotPolicies.d.ts +90 -0
- package/dist-esm/src/operations/snapshotPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/snapshotPolicies.js +346 -0
- package/dist-esm/src/operations/snapshotPolicies.js.map +1 -0
- package/dist-esm/src/operations/snapshots.d.ts +109 -0
- package/dist-esm/src/operations/snapshots.d.ts.map +1 -0
- package/dist-esm/src/operations/snapshots.js +423 -0
- package/dist-esm/src/operations/snapshots.js.map +1 -0
- package/dist-esm/src/operations/vaults.d.ts +30 -0
- package/dist-esm/src/operations/vaults.d.ts.map +1 -0
- package/dist-esm/src/operations/vaults.js +97 -0
- package/dist-esm/src/operations/vaults.js.map +1 -0
- package/dist-esm/src/operations/volumeGroups.d.ts +73 -0
- package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -0
- package/dist-esm/src/operations/volumeGroups.js +278 -0
- package/dist-esm/src/operations/volumeGroups.js.map +1 -0
- package/dist-esm/src/operations/volumes.d.ts +254 -0
- package/dist-esm/src/operations/volumes.d.ts.map +1 -0
- package/dist-esm/src/operations/volumes.js +956 -0
- package/dist-esm/src/operations/volumes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accountBackups.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/accountBackups.d.ts.map +1 -0
- package/{src/models/netAppResourceMappers.ts → dist-esm/src/operationsInterfaces/accountBackups.js} +2 -8
- package/dist-esm/src/operationsInterfaces/accountBackups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backups.d.ts +106 -0
- package/dist-esm/src/operationsInterfaces/backups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/backups.js +9 -0
- package/dist-esm/src/operationsInterfaces/backups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +21 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.d.ts +32 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.js +9 -0
- package/dist-esm/src/operationsInterfaces/netAppResource.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.js +9 -0
- package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/pools.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/pools.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/pools.js} +2 -1
- package/dist-esm/src/operationsInterfaces/pools.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.d.ts +73 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/snapshotPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshots.d.ts +90 -0
- package/dist-esm/src/operationsInterfaces/snapshots.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/snapshots.js +9 -0
- package/dist-esm/src/operationsInterfaces/snapshots.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/vaults.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/vaults.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/vaults.js +9 -0
- package/dist-esm/src/operationsInterfaces/vaults.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.js +9 -0
- package/dist-esm/src/operationsInterfaces/volumeGroups.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumes.d.ts +227 -0
- package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/volumes.js +9 -0
- package/dist-esm/src/operationsInterfaces/volumes.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +70 -32
- package/review/arm-netapp.api.md +1681 -0
- package/rollup.config.js +181 -30
- package/src/{models/operationsMappers.ts → index.ts} +4 -10
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1888 -3345
- package/src/models/mappers.ts +1542 -1652
- package/src/models/parameters.ts +271 -66
- package/src/netAppManagementClient.ts +128 -0
- package/src/operations/accountBackups.ts +187 -132
- package/src/operations/accounts.ts +487 -325
- package/src/operations/backupPolicies.ts +390 -223
- package/src/operations/backups.ts +486 -313
- package/src/operations/index.ts +1 -2
- package/src/operations/netAppResource.ts +112 -204
- package/src/operations/netAppResourceQuotaLimits.ts +100 -90
- package/src/operations/operations.ts +65 -43
- package/src/operations/pools.ts +430 -263
- package/src/operations/snapshotPolicies.ts +345 -275
- package/src/operations/snapshots.ts +454 -226
- package/src/operations/vaults.ts +81 -51
- package/src/operations/volumeGroups.ts +303 -182
- package/src/operations/volumes.ts +1101 -637
- package/src/operationsInterfaces/accountBackups.ts +72 -0
- package/src/operationsInterfaces/accounts.ts +139 -0
- package/src/operationsInterfaces/backupPolicies.ts +147 -0
- package/src/operationsInterfaces/backups.ts +202 -0
- package/src/operationsInterfaces/index.ts +21 -0
- package/src/operationsInterfaces/netAppResource.ts +66 -0
- package/src/operationsInterfaces/netAppResourceQuotaLimits.ts +40 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/pools.ts +144 -0
- package/src/operationsInterfaces/snapshotPolicies.ts +142 -0
- package/src/operationsInterfaces/snapshots.ts +178 -0
- package/src/operationsInterfaces/vaults.ts +26 -0
- package/src/operationsInterfaces/volumeGroups.ts +110 -0
- package/src/operationsInterfaces/volumes.ts +413 -0
- package/tsconfig.json +3 -3
- package/types/arm-netapp.d.ts +3485 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-netapp.js +0 -8542
- package/dist/arm-netapp.js.map +0 -1
- package/dist/arm-netapp.min.js +0 -1
- package/dist/arm-netapp.min.js.map +0 -1
- package/esm/azureNetAppFilesManagementClient.d.ts +0 -37
- package/esm/azureNetAppFilesManagementClient.d.ts.map +0 -1
- package/esm/azureNetAppFilesManagementClient.js +0 -50
- package/esm/azureNetAppFilesManagementClient.js.map +0 -1
- package/esm/azureNetAppFilesManagementClientContext.d.ts +0 -23
- package/esm/azureNetAppFilesManagementClientContext.d.ts.map +0 -1
- package/esm/azureNetAppFilesManagementClientContext.js +0 -61
- package/esm/azureNetAppFilesManagementClientContext.js.map +0 -1
- package/esm/models/accountBackupsMappers.d.ts +0 -2
- package/esm/models/accountBackupsMappers.d.ts.map +0 -1
- package/esm/models/accountBackupsMappers.js +0 -9
- package/esm/models/accountBackupsMappers.js.map +0 -1
- package/esm/models/accountsMappers.d.ts +0 -2
- package/esm/models/accountsMappers.d.ts.map +0 -1
- package/esm/models/accountsMappers.js +0 -9
- package/esm/models/accountsMappers.js.map +0 -1
- package/esm/models/backupPoliciesMappers.d.ts +0 -2
- package/esm/models/backupPoliciesMappers.d.ts.map +0 -1
- package/esm/models/backupPoliciesMappers.js +0 -9
- package/esm/models/backupPoliciesMappers.js.map +0 -1
- package/esm/models/backupsMappers.d.ts +0 -2
- package/esm/models/backupsMappers.d.ts.map +0 -1
- package/esm/models/backupsMappers.js +0 -9
- package/esm/models/backupsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -3856
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -78
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/netAppResourceMappers.d.ts +0 -2
- package/esm/models/netAppResourceMappers.d.ts.map +0 -1
- package/esm/models/netAppResourceMappers.js.map +0 -1
- package/esm/models/netAppResourceQuotaLimitsMappers.d.ts +0 -2
- package/esm/models/netAppResourceQuotaLimitsMappers.d.ts.map +0 -1
- package/esm/models/netAppResourceQuotaLimitsMappers.js +0 -9
- package/esm/models/netAppResourceQuotaLimitsMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -17
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -183
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/poolsMappers.d.ts +0 -2
- package/esm/models/poolsMappers.d.ts.map +0 -1
- package/esm/models/poolsMappers.js +0 -9
- package/esm/models/poolsMappers.js.map +0 -1
- package/esm/models/snapshotPoliciesMappers.d.ts +0 -2
- package/esm/models/snapshotPoliciesMappers.d.ts.map +0 -1
- package/esm/models/snapshotPoliciesMappers.js +0 -9
- package/esm/models/snapshotPoliciesMappers.js.map +0 -1
- package/esm/models/snapshotsMappers.d.ts +0 -2
- package/esm/models/snapshotsMappers.d.ts.map +0 -1
- package/esm/models/snapshotsMappers.js +0 -9
- package/esm/models/snapshotsMappers.js.map +0 -1
- package/esm/models/vaultsMappers.d.ts +0 -2
- package/esm/models/vaultsMappers.d.ts.map +0 -1
- package/esm/models/vaultsMappers.js +0 -9
- package/esm/models/vaultsMappers.js.map +0 -1
- package/esm/models/volumeGroupsMappers.d.ts +0 -2
- package/esm/models/volumeGroupsMappers.d.ts.map +0 -1
- package/esm/models/volumeGroupsMappers.js +0 -9
- package/esm/models/volumeGroupsMappers.js.map +0 -1
- package/esm/models/volumesMappers.d.ts +0 -2
- package/esm/models/volumesMappers.d.ts.map +0 -1
- package/esm/models/volumesMappers.js +0 -9
- package/esm/models/volumesMappers.js.map +0 -1
- package/esm/operations/accountBackups.d.ts +0 -81
- package/esm/operations/accountBackups.d.ts.map +0 -1
- package/esm/operations/accountBackups.js +0 -145
- package/esm/operations/accountBackups.js.map +0 -1
- package/esm/operations/accounts.d.ts +0 -167
- package/esm/operations/accounts.d.ts.map +0 -1
- package/esm/operations/accounts.js +0 -344
- package/esm/operations/accounts.js.map +0 -1
- package/esm/operations/backupPolicies.d.ts +0 -125
- package/esm/operations/backupPolicies.d.ts.map +0 -1
- package/esm/operations/backupPolicies.js +0 -277
- package/esm/operations/backupPolicies.js.map +0 -1
- package/esm/operations/backups.d.ts +0 -203
- package/esm/operations/backups.d.ts.map +0 -1
- package/esm/operations/backups.js +0 -379
- package/esm/operations/backups.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/netAppResource.d.ts +0 -115
- package/esm/operations/netAppResource.d.ts.map +0 -1
- package/esm/operations/netAppResource.js +0 -145
- package/esm/operations/netAppResource.js.map +0 -1
- package/esm/operations/netAppResourceQuotaLimits.d.ts +0 -54
- package/esm/operations/netAppResourceQuotaLimits.d.ts.map +0 -1
- package/esm/operations/netAppResourceQuotaLimits.js +0 -86
- package/esm/operations/netAppResourceQuotaLimits.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -29
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -50
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/pools.d.ts +0 -144
- package/esm/operations/pools.d.ts.map +0 -1
- package/esm/operations/pools.js +0 -302
- package/esm/operations/pools.js.map +0 -1
- package/esm/operations/snapshotPolicies.d.ts +0 -149
- package/esm/operations/snapshotPolicies.d.ts.map +0 -1
- package/esm/operations/snapshotPolicies.js +0 -281
- package/esm/operations/snapshotPolicies.js.map +0 -1
- package/esm/operations/snapshots.d.ts +0 -149
- package/esm/operations/snapshots.d.ts.map +0 -1
- package/esm/operations/snapshots.js +0 -312
- package/esm/operations/snapshots.js.map +0 -1
- package/esm/operations/vaults.d.ts +0 -35
- package/esm/operations/vaults.d.ts.map +0 -1
- package/esm/operations/vaults.js +0 -57
- package/esm/operations/vaults.js.map +0 -1
- package/esm/operations/volumeGroups.d.ts +0 -107
- package/esm/operations/volumeGroups.d.ts.map +0 -1
- package/esm/operations/volumeGroups.js +0 -212
- package/esm/operations/volumeGroups.js.map +0 -1
- package/esm/operations/volumes.d.ts +0 -344
- package/esm/operations/volumes.d.ts.map +0 -1
- package/esm/operations/volumes.js +0 -800
- package/esm/operations/volumes.js.map +0 -1
- package/src/azureNetAppFilesManagementClient.ts +0 -72
- package/src/azureNetAppFilesManagementClientContext.ts +0 -68
- package/src/models/accountBackupsMappers.ts +0 -51
- package/src/models/accountsMappers.ts +0 -51
- package/src/models/backupPoliciesMappers.ts +0 -51
- package/src/models/backupsMappers.ts +0 -53
- package/src/models/netAppResourceQuotaLimitsMappers.ts +0 -51
- package/src/models/poolsMappers.ts +0 -51
- package/src/models/snapshotPoliciesMappers.ts +0 -53
- package/src/models/snapshotsMappers.ts +0 -51
- package/src/models/vaultsMappers.ts +0 -51
- package/src/models/volumeGroupsMappers.ts +0 -54
- package/src/models/volumesMappers.ts +0 -56
package/src/operations/index.ts
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
9
|
export * from "./operations";
|
|
@@ -3,271 +3,179 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import * as
|
|
12
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { NetAppResource } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
13
12
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
13
|
+
import { NetAppManagementClient } from "../netAppManagementClient";
|
|
14
|
+
import {
|
|
15
|
+
CheckNameResourceTypes,
|
|
16
|
+
NetAppResourceCheckNameAvailabilityOptionalParams,
|
|
17
|
+
NetAppResourceCheckNameAvailabilityResponse,
|
|
18
|
+
NetAppResourceCheckFilePathAvailabilityOptionalParams,
|
|
19
|
+
NetAppResourceCheckFilePathAvailabilityResponse,
|
|
20
|
+
CheckQuotaNameResourceTypes,
|
|
21
|
+
NetAppResourceCheckQuotaAvailabilityOptionalParams,
|
|
22
|
+
NetAppResourceCheckQuotaAvailabilityResponse
|
|
23
|
+
} from "../models";
|
|
15
24
|
|
|
16
|
-
/** Class
|
|
17
|
-
export class NetAppResource {
|
|
18
|
-
private readonly client:
|
|
25
|
+
/** Class containing NetAppResource operations. */
|
|
26
|
+
export class NetAppResourceImpl implements NetAppResource {
|
|
27
|
+
private readonly client: NetAppManagementClient;
|
|
19
28
|
|
|
20
29
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
30
|
+
* Initialize a new instance of the class NetAppResource class.
|
|
31
|
+
* @param client Reference to the service client
|
|
23
32
|
*/
|
|
24
|
-
constructor(client:
|
|
33
|
+
constructor(client: NetAppManagementClient) {
|
|
25
34
|
this.client = client;
|
|
26
35
|
}
|
|
27
36
|
|
|
28
37
|
/**
|
|
29
38
|
* Check if a resource name is available.
|
|
30
|
-
* @summary Check resource name availability
|
|
31
39
|
* @param location The location
|
|
32
40
|
* @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
41
|
* @param resourceGroup Resource group name.
|
|
38
|
-
* @param
|
|
39
|
-
* @
|
|
42
|
+
* @param typeParam Resource type used for verification.
|
|
43
|
+
* @param options The options parameters.
|
|
40
44
|
*/
|
|
41
|
-
checkNameAvailability(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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> {
|
|
45
|
+
checkNameAvailability(
|
|
46
|
+
location: string,
|
|
47
|
+
name: string,
|
|
48
|
+
resourceGroup: string,
|
|
49
|
+
typeParam: CheckNameResourceTypes,
|
|
50
|
+
options?: NetAppResourceCheckNameAvailabilityOptionalParams
|
|
51
|
+
): Promise<NetAppResourceCheckNameAvailabilityResponse> {
|
|
66
52
|
return this.client.sendOperationRequest(
|
|
67
|
-
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
type,
|
|
71
|
-
resourceGroup,
|
|
72
|
-
options
|
|
73
|
-
},
|
|
74
|
-
checkNameAvailabilityOperationSpec,
|
|
75
|
-
callback) as Promise<Models.NetAppResourceCheckNameAvailabilityResponse>;
|
|
53
|
+
{ location, name, resourceGroup, typeParam, options },
|
|
54
|
+
checkNameAvailabilityOperationSpec
|
|
55
|
+
);
|
|
76
56
|
}
|
|
77
57
|
|
|
78
58
|
/**
|
|
79
59
|
* Check if a file path is available.
|
|
80
|
-
* @summary Check file path availability
|
|
81
60
|
* @param location The location
|
|
82
61
|
* @param name File path to verify.
|
|
83
62
|
* @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation
|
|
84
|
-
*
|
|
85
|
-
* @param
|
|
86
|
-
* @returns Promise<Models.NetAppResourceCheckFilePathAvailabilityResponse>
|
|
63
|
+
* Microsoft.NetApp/volumes
|
|
64
|
+
* @param options The options parameters.
|
|
87
65
|
*/
|
|
88
|
-
checkFilePathAvailability(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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> {
|
|
66
|
+
checkFilePathAvailability(
|
|
67
|
+
location: string,
|
|
68
|
+
name: string,
|
|
69
|
+
subnetId: string,
|
|
70
|
+
options?: NetAppResourceCheckFilePathAvailabilityOptionalParams
|
|
71
|
+
): Promise<NetAppResourceCheckFilePathAvailabilityResponse> {
|
|
107
72
|
return this.client.sendOperationRequest(
|
|
108
|
-
{
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
subnetId,
|
|
112
|
-
options
|
|
113
|
-
},
|
|
114
|
-
checkFilePathAvailabilityOperationSpec,
|
|
115
|
-
callback) as Promise<Models.NetAppResourceCheckFilePathAvailabilityResponse>;
|
|
73
|
+
{ location, name, subnetId, options },
|
|
74
|
+
checkFilePathAvailabilityOperationSpec
|
|
75
|
+
);
|
|
116
76
|
}
|
|
117
77
|
|
|
118
78
|
/**
|
|
119
79
|
* Check if a quota is available.
|
|
120
|
-
* @summary Check quota availability
|
|
121
80
|
* @param location The location
|
|
122
81
|
* @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
82
|
* @param resourceGroup Resource group name.
|
|
128
|
-
* @param
|
|
129
|
-
* @
|
|
83
|
+
* @param typeParam Resource type used for verification.
|
|
84
|
+
* @param options The options parameters.
|
|
130
85
|
*/
|
|
131
|
-
checkQuotaAvailability(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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> {
|
|
86
|
+
checkQuotaAvailability(
|
|
87
|
+
location: string,
|
|
88
|
+
name: string,
|
|
89
|
+
resourceGroup: string,
|
|
90
|
+
typeParam: CheckQuotaNameResourceTypes,
|
|
91
|
+
options?: NetAppResourceCheckQuotaAvailabilityOptionalParams
|
|
92
|
+
): Promise<NetAppResourceCheckQuotaAvailabilityResponse> {
|
|
156
93
|
return this.client.sendOperationRequest(
|
|
157
|
-
{
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
type,
|
|
161
|
-
resourceGroup,
|
|
162
|
-
options
|
|
163
|
-
},
|
|
164
|
-
checkQuotaAvailabilityOperationSpec,
|
|
165
|
-
callback) as Promise<Models.NetAppResourceCheckQuotaAvailabilityResponse>;
|
|
94
|
+
{ location, name, resourceGroup, typeParam, options },
|
|
95
|
+
checkQuotaAvailabilityOperationSpec
|
|
96
|
+
);
|
|
166
97
|
}
|
|
167
98
|
}
|
|
168
|
-
|
|
169
99
|
// Operation Specifications
|
|
170
|
-
const serializer =
|
|
171
|
-
|
|
100
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
101
|
+
|
|
102
|
+
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
103
|
+
path:
|
|
104
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability",
|
|
172
105
|
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
106
|
responses: {
|
|
196
107
|
200: {
|
|
197
108
|
bodyMapper: Mappers.CheckAvailabilityResponse
|
|
198
109
|
},
|
|
199
|
-
default: {
|
|
200
|
-
bodyMapper: Mappers.CloudError
|
|
201
|
-
}
|
|
110
|
+
default: {}
|
|
202
111
|
},
|
|
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
112
|
requestBody: {
|
|
220
113
|
parameterPath: {
|
|
221
|
-
name: "name",
|
|
222
|
-
|
|
114
|
+
name: ["name"],
|
|
115
|
+
typeParam: ["typeParam"],
|
|
116
|
+
resourceGroup: ["resourceGroup"]
|
|
223
117
|
},
|
|
224
|
-
mapper: {
|
|
225
|
-
...Mappers.FilePathAvailabilityRequest,
|
|
226
|
-
required: true
|
|
227
|
-
}
|
|
118
|
+
mapper: { ...Mappers.ResourceNameAvailabilityRequest, required: true }
|
|
228
119
|
},
|
|
120
|
+
queryParameters: [Parameters.apiVersion],
|
|
121
|
+
urlParameters: [
|
|
122
|
+
Parameters.$host,
|
|
123
|
+
Parameters.subscriptionId,
|
|
124
|
+
Parameters.location
|
|
125
|
+
],
|
|
126
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
127
|
+
mediaType: "json",
|
|
128
|
+
serializer
|
|
129
|
+
};
|
|
130
|
+
const checkFilePathAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
131
|
+
path:
|
|
132
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability",
|
|
133
|
+
httpMethod: "POST",
|
|
229
134
|
responses: {
|
|
230
135
|
200: {
|
|
231
136
|
bodyMapper: Mappers.CheckAvailabilityResponse
|
|
232
137
|
},
|
|
233
|
-
default: {
|
|
234
|
-
bodyMapper: Mappers.CloudError
|
|
235
|
-
}
|
|
138
|
+
default: {}
|
|
236
139
|
},
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability",
|
|
140
|
+
requestBody: {
|
|
141
|
+
parameterPath: { name: ["name"], subnetId: ["subnetId"] },
|
|
142
|
+
mapper: { ...Mappers.FilePathAvailabilityRequest, required: true }
|
|
143
|
+
},
|
|
144
|
+
queryParameters: [Parameters.apiVersion],
|
|
243
145
|
urlParameters: [
|
|
146
|
+
Parameters.$host,
|
|
244
147
|
Parameters.subscriptionId,
|
|
245
148
|
Parameters.location
|
|
246
149
|
],
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
name: "name",
|
|
256
|
-
type: "type",
|
|
257
|
-
resourceGroup: "resourceGroup"
|
|
258
|
-
},
|
|
259
|
-
mapper: {
|
|
260
|
-
...Mappers.QuotaAvailabilityRequest,
|
|
261
|
-
required: true
|
|
262
|
-
}
|
|
263
|
-
},
|
|
150
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
151
|
+
mediaType: "json",
|
|
152
|
+
serializer
|
|
153
|
+
};
|
|
154
|
+
const checkQuotaAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
155
|
+
path:
|
|
156
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability",
|
|
157
|
+
httpMethod: "POST",
|
|
264
158
|
responses: {
|
|
265
159
|
200: {
|
|
266
160
|
bodyMapper: Mappers.CheckAvailabilityResponse
|
|
267
161
|
},
|
|
268
|
-
default: {
|
|
269
|
-
|
|
270
|
-
|
|
162
|
+
default: {}
|
|
163
|
+
},
|
|
164
|
+
requestBody: {
|
|
165
|
+
parameterPath: {
|
|
166
|
+
name: ["name"],
|
|
167
|
+
typeParam: ["typeParam"],
|
|
168
|
+
resourceGroup: ["resourceGroup"]
|
|
169
|
+
},
|
|
170
|
+
mapper: { ...Mappers.QuotaAvailabilityRequest, required: true }
|
|
271
171
|
},
|
|
172
|
+
queryParameters: [Parameters.apiVersion],
|
|
173
|
+
urlParameters: [
|
|
174
|
+
Parameters.$host,
|
|
175
|
+
Parameters.subscriptionId,
|
|
176
|
+
Parameters.location
|
|
177
|
+
],
|
|
178
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
179
|
+
mediaType: "json",
|
|
272
180
|
serializer
|
|
273
181
|
};
|
|
@@ -3,138 +3,148 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { NetAppResourceQuotaLimits } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { NetAppManagementClient } from "../netAppManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
SubscriptionQuotaItem,
|
|
17
|
+
NetAppResourceQuotaLimitsListOptionalParams,
|
|
18
|
+
NetAppResourceQuotaLimitsListResponse,
|
|
19
|
+
NetAppResourceQuotaLimitsGetOptionalParams,
|
|
20
|
+
NetAppResourceQuotaLimitsGetResponse
|
|
21
|
+
} from "../models";
|
|
15
22
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing NetAppResourceQuotaLimits operations. */
|
|
25
|
+
export class NetAppResourceQuotaLimitsImpl
|
|
26
|
+
implements NetAppResourceQuotaLimits {
|
|
27
|
+
private readonly client: NetAppManagementClient;
|
|
19
28
|
|
|
20
29
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
30
|
+
* Initialize a new instance of the class NetAppResourceQuotaLimits class.
|
|
31
|
+
* @param client Reference to the service client
|
|
23
32
|
*/
|
|
24
|
-
constructor(client:
|
|
33
|
+
constructor(client: NetAppManagementClient) {
|
|
25
34
|
this.client = client;
|
|
26
35
|
}
|
|
27
36
|
|
|
28
37
|
/**
|
|
29
38
|
* Get the default and current limits for quotas
|
|
30
|
-
* @summary Get quota limits
|
|
31
39
|
* @param location The location
|
|
32
|
-
* @param
|
|
33
|
-
* @returns Promise<Models.NetAppResourceQuotaLimitsListResponse>
|
|
40
|
+
* @param options The options parameters.
|
|
34
41
|
*/
|
|
35
|
-
list(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
public list(
|
|
43
|
+
location: string,
|
|
44
|
+
options?: NetAppResourceQuotaLimitsListOptionalParams
|
|
45
|
+
): PagedAsyncIterableIterator<SubscriptionQuotaItem> {
|
|
46
|
+
const iter = this.listPagingAll(location, options);
|
|
47
|
+
return {
|
|
48
|
+
next() {
|
|
49
|
+
return iter.next();
|
|
50
|
+
},
|
|
51
|
+
[Symbol.asyncIterator]() {
|
|
52
|
+
return this;
|
|
53
|
+
},
|
|
54
|
+
byPage: () => {
|
|
55
|
+
return this.listPagingPage(location, options);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
private async *listPagingPage(
|
|
61
|
+
location: string,
|
|
62
|
+
options?: NetAppResourceQuotaLimitsListOptionalParams
|
|
63
|
+
): AsyncIterableIterator<SubscriptionQuotaItem[]> {
|
|
64
|
+
let result = await this._list(location, options);
|
|
65
|
+
yield result.value || [];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
private async *listPagingAll(
|
|
69
|
+
location: string,
|
|
70
|
+
options?: NetAppResourceQuotaLimitsListOptionalParams
|
|
71
|
+
): AsyncIterableIterator<SubscriptionQuotaItem> {
|
|
72
|
+
for await (const page of this.listPagingPage(location, options)) {
|
|
73
|
+
yield* page;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
41
77
|
/**
|
|
78
|
+
* Get the default and current limits for quotas
|
|
42
79
|
* @param location The location
|
|
43
|
-
* @param options The
|
|
44
|
-
* @param callback The callback
|
|
80
|
+
* @param options The options parameters.
|
|
45
81
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
82
|
+
private _list(
|
|
83
|
+
location: string,
|
|
84
|
+
options?: NetAppResourceQuotaLimitsListOptionalParams
|
|
85
|
+
): Promise<NetAppResourceQuotaLimitsListResponse> {
|
|
48
86
|
return this.client.sendOperationRequest(
|
|
49
|
-
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
listOperationSpec,
|
|
54
|
-
callback) as Promise<Models.NetAppResourceQuotaLimitsListResponse>;
|
|
87
|
+
{ location, options },
|
|
88
|
+
listOperationSpec
|
|
89
|
+
);
|
|
55
90
|
}
|
|
56
91
|
|
|
57
92
|
/**
|
|
58
93
|
* 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
94
|
* @param location The location
|
|
74
95
|
* @param quotaLimitName The name of the Quota Limit
|
|
75
|
-
* @param options The
|
|
76
|
-
* @param callback The callback
|
|
96
|
+
* @param options The options parameters.
|
|
77
97
|
*/
|
|
78
|
-
get(
|
|
79
|
-
|
|
98
|
+
get(
|
|
99
|
+
location: string,
|
|
100
|
+
quotaLimitName: string,
|
|
101
|
+
options?: NetAppResourceQuotaLimitsGetOptionalParams
|
|
102
|
+
): Promise<NetAppResourceQuotaLimitsGetResponse> {
|
|
80
103
|
return this.client.sendOperationRequest(
|
|
81
|
-
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
options
|
|
85
|
-
},
|
|
86
|
-
getOperationSpec,
|
|
87
|
-
callback) as Promise<Models.NetAppResourceQuotaLimitsGetResponse>;
|
|
104
|
+
{ location, quotaLimitName, options },
|
|
105
|
+
getOperationSpec
|
|
106
|
+
);
|
|
88
107
|
}
|
|
89
108
|
}
|
|
90
|
-
|
|
91
109
|
// Operation Specifications
|
|
92
|
-
const serializer =
|
|
93
|
-
|
|
110
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
111
|
+
|
|
112
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
113
|
+
path:
|
|
114
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits",
|
|
94
115
|
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
116
|
responses: {
|
|
107
117
|
200: {
|
|
108
118
|
bodyMapper: Mappers.SubscriptionQuotaItemList
|
|
109
119
|
},
|
|
110
|
-
default: {
|
|
111
|
-
bodyMapper: Mappers.CloudError
|
|
112
|
-
}
|
|
120
|
+
default: {}
|
|
113
121
|
},
|
|
114
|
-
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
118
|
-
httpMethod: "GET",
|
|
119
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}",
|
|
122
|
+
queryParameters: [Parameters.apiVersion],
|
|
120
123
|
urlParameters: [
|
|
124
|
+
Parameters.$host,
|
|
121
125
|
Parameters.subscriptionId,
|
|
122
|
-
Parameters.location
|
|
123
|
-
Parameters.quotaLimitName
|
|
124
|
-
],
|
|
125
|
-
queryParameters: [
|
|
126
|
-
Parameters.apiVersion
|
|
127
|
-
],
|
|
128
|
-
headerParameters: [
|
|
129
|
-
Parameters.acceptLanguage
|
|
126
|
+
Parameters.location
|
|
130
127
|
],
|
|
128
|
+
headerParameters: [Parameters.accept],
|
|
129
|
+
serializer
|
|
130
|
+
};
|
|
131
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
132
|
+
path:
|
|
133
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}",
|
|
134
|
+
httpMethod: "GET",
|
|
131
135
|
responses: {
|
|
132
136
|
200: {
|
|
133
137
|
bodyMapper: Mappers.SubscriptionQuotaItem
|
|
134
138
|
},
|
|
135
|
-
default: {
|
|
136
|
-
bodyMapper: Mappers.CloudError
|
|
137
|
-
}
|
|
139
|
+
default: {}
|
|
138
140
|
},
|
|
141
|
+
queryParameters: [Parameters.apiVersion],
|
|
142
|
+
urlParameters: [
|
|
143
|
+
Parameters.$host,
|
|
144
|
+
Parameters.subscriptionId,
|
|
145
|
+
Parameters.location,
|
|
146
|
+
Parameters.quotaLimitName
|
|
147
|
+
],
|
|
148
|
+
headerParameters: [Parameters.accept],
|
|
139
149
|
serializer
|
|
140
150
|
};
|