@azure/arm-avs 2.1.0 → 3.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/LICENSE.txt +1 -1
- package/README.md +70 -78
- package/dist/index.js +11681 -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/azureVMwareSolutionAPI.d.ts +33 -0
- package/dist-esm/src/azureVMwareSolutionAPI.d.ts.map +1 -0
- package/dist-esm/src/azureVMwareSolutionAPI.js +66 -0
- package/dist-esm/src/azureVMwareSolutionAPI.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- 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 +2962 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +363 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +115 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1693 -1639
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +53 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +409 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/addons.d.ts +81 -0
- package/dist-esm/src/operations/addons.d.ts.map +1 -0
- package/dist-esm/src/operations/addons.js +331 -0
- package/dist-esm/src/operations/addons.js.map +1 -0
- package/dist-esm/src/operations/authorizations.d.ts +81 -0
- package/dist-esm/src/operations/authorizations.d.ts.map +1 -0
- package/dist-esm/src/operations/authorizations.js +337 -0
- package/dist-esm/src/operations/authorizations.js.map +1 -0
- package/dist-esm/src/operations/cloudLinks.d.ts +81 -0
- package/dist-esm/src/operations/cloudLinks.d.ts.map +1 -0
- package/dist-esm/src/operations/cloudLinks.js +337 -0
- package/dist-esm/src/operations/cloudLinks.js.map +1 -0
- package/dist-esm/src/operations/clusters.d.ts +99 -0
- package/dist-esm/src/operations/clusters.d.ts.map +1 -0
- package/dist-esm/src/operations/clusters.js +423 -0
- package/dist-esm/src/operations/clusters.js.map +1 -0
- package/dist-esm/src/operations/datastores.d.ts +89 -0
- package/dist-esm/src/operations/datastores.d.ts.map +1 -0
- package/dist-esm/src/operations/datastores.js +363 -0
- package/dist-esm/src/operations/datastores.js.map +1 -0
- package/dist-esm/src/operations/globalReachConnections.d.ts +81 -0
- package/dist-esm/src/operations/globalReachConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/globalReachConnections.js +347 -0
- package/dist-esm/src/operations/globalReachConnections.js.map +1 -0
- package/dist-esm/src/operations/hcxEnterpriseSites.d.ts +63 -0
- package/dist-esm/src/operations/hcxEnterpriseSites.d.ts.map +1 -0
- package/dist-esm/src/operations/hcxEnterpriseSites.js +244 -0
- package/dist-esm/src/operations/hcxEnterpriseSites.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/locations.d.ts +25 -0
- package/dist-esm/src/operations/locations.d.ts.map +1 -0
- package/dist-esm/src/operations/locations.js +79 -0
- package/dist-esm/src/operations/locations.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/placementPolicies.d.ts +116 -0
- package/dist-esm/src/operations/placementPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/placementPolicies.js +466 -0
- package/dist-esm/src/operations/placementPolicies.js.map +1 -0
- package/dist-esm/src/operations/privateClouds.d.ts +142 -0
- package/dist-esm/src/operations/privateClouds.d.ts.map +1 -0
- package/dist-esm/src/operations/privateClouds.js +672 -0
- package/dist-esm/src/operations/privateClouds.js.map +1 -0
- package/dist-esm/src/operations/scriptCmdlets.d.ts +53 -0
- package/dist-esm/src/operations/scriptCmdlets.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptCmdlets.js +191 -0
- package/dist-esm/src/operations/scriptCmdlets.js.map +1 -0
- package/dist-esm/src/operations/scriptExecutions.d.ts +89 -0
- package/dist-esm/src/operations/scriptExecutions.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptExecutions.js +371 -0
- package/dist-esm/src/operations/scriptExecutions.js.map +1 -0
- package/dist-esm/src/operations/scriptPackages.d.ts +46 -0
- package/dist-esm/src/operations/scriptPackages.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptPackages.js +169 -0
- package/dist-esm/src/operations/scriptPackages.js.map +1 -0
- package/dist-esm/src/operations/virtualMachines.d.ts +71 -0
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachines.js +272 -0
- package/dist-esm/src/operations/virtualMachines.js.map +1 -0
- package/dist-esm/src/operations/workloadNetworks.d.ts +661 -0
- package/dist-esm/src/operations/workloadNetworks.d.ts.map +1 -0
- package/dist-esm/src/operations/workloadNetworks.js +3049 -0
- package/dist-esm/src/operations/workloadNetworks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/addons.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/addons.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/addons.js} +2 -1
- package/dist-esm/src/operationsInterfaces/addons.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/authorizations.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/authorizations.d.ts.map +1 -0
- package/{src/models/locationsMappers.ts → dist-esm/src/operationsInterfaces/authorizations.js} +2 -9
- package/dist-esm/src/operationsInterfaces/authorizations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudLinks.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/cloudLinks.d.ts.map +1 -0
- package/{esm/models/locationsMappers.js → dist-esm/src/operationsInterfaces/cloudLinks.js} +2 -2
- package/dist-esm/src/operationsInterfaces/cloudLinks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
- package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/datastores.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/datastores.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/datastores.js +9 -0
- package/dist-esm/src/operationsInterfaces/datastores.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/globalReachConnections.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/globalReachConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/globalReachConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/globalReachConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.js +9 -0
- package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +24 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.js +9 -0
- package/dist-esm/src/operationsInterfaces/locations.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/placementPolicies.d.ts +89 -0
- package/dist-esm/src/operationsInterfaces/placementPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/placementPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/placementPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateClouds.d.ts +106 -0
- package/dist-esm/src/operationsInterfaces/privateClouds.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateClouds.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateClouds.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptCmdlets.d.ts +25 -0
- package/dist-esm/src/operationsInterfaces/scriptCmdlets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptCmdlets.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptCmdlets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutions.d.ts +64 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutions.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptPackages.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/scriptPackages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptPackages.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptPackages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workloadNetworks.d.ts +500 -0
- package/dist-esm/src/operationsInterfaces/workloadNetworks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/workloadNetworks.js +9 -0
- package/dist-esm/src/operationsInterfaces/workloadNetworks.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 +65 -32
- package/review/arm-avs.api.md +2534 -0
- package/rollup.config.js +181 -30
- package/src/azureVMwareSolutionAPI.ts +139 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +2550 -4167
- package/src/models/mappers.ts +1755 -1674
- package/src/models/parameters.ts +289 -94
- package/src/operations/addons.ts +339 -201
- package/src/operations/authorizations.ts +340 -196
- package/src/operations/cloudLinks.ts +340 -196
- package/src/operations/clusters.ts +441 -235
- package/src/operations/datastores.ts +364 -189
- package/src/operations/globalReachConnections.ts +341 -185
- package/src/operations/hcxEnterpriseSites.ts +200 -205
- package/src/operations/index.ts +1 -2
- package/src/operations/locations.ts +54 -80
- package/src/operations/operations.ts +85 -73
- package/src/operations/placementPolicies.ts +485 -245
- package/src/operations/privateClouds.ts +674 -401
- package/src/operations/scriptCmdlets.ts +175 -124
- package/src/operations/scriptExecutions.ts +372 -259
- package/src/operations/scriptPackages.ts +152 -123
- package/src/operations/virtualMachines.ts +271 -165
- package/src/operations/workloadNetworks.ts +3369 -1906
- package/src/operationsInterfaces/addons.ts +109 -0
- package/src/operationsInterfaces/authorizations.ts +109 -0
- package/src/operationsInterfaces/cloudLinks.ts +109 -0
- package/src/operationsInterfaces/clusters.ts +147 -0
- package/src/operationsInterfaces/datastores.ts +121 -0
- package/src/operationsInterfaces/globalReachConnections.ts +109 -0
- package/src/operationsInterfaces/hcxEnterpriseSites.ts +75 -0
- package/src/operationsInterfaces/index.ts +24 -0
- package/src/operationsInterfaces/locations.ts +36 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/placementPolicies.ts +170 -0
- package/src/operationsInterfaces/privateClouds.ts +198 -0
- package/src/operationsInterfaces/scriptCmdlets.ts +50 -0
- package/src/operationsInterfaces/scriptExecutions.ts +124 -0
- package/src/operationsInterfaces/scriptPackages.ts +44 -0
- package/src/operationsInterfaces/virtualMachines.ts +85 -0
- package/src/operationsInterfaces/workloadNetworks.ts +951 -0
- package/tsconfig.json +3 -3
- package/types/arm-avs.d.ts +4645 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-avs.js +0 -10045
- package/dist/arm-avs.js.map +0 -1
- package/dist/arm-avs.min.js +0 -1
- package/dist/arm-avs.min.js.map +0 -1
- package/esm/avsClient.d.ts +0 -39
- package/esm/avsClient.d.ts.map +0 -1
- package/esm/avsClient.js +0 -52
- package/esm/avsClient.js.map +0 -1
- package/esm/avsClientContext.d.ts +0 -22
- package/esm/avsClientContext.d.ts.map +0 -1
- package/esm/avsClientContext.js +0 -60
- package/esm/avsClientContext.js.map +0 -1
- package/esm/models/addonsMappers.d.ts +0 -2
- package/esm/models/addonsMappers.d.ts.map +0 -1
- package/esm/models/addonsMappers.js +0 -9
- package/esm/models/addonsMappers.js.map +0 -1
- package/esm/models/authorizationsMappers.d.ts +0 -2
- package/esm/models/authorizationsMappers.d.ts.map +0 -1
- package/esm/models/authorizationsMappers.js +0 -9
- package/esm/models/authorizationsMappers.js.map +0 -1
- package/esm/models/cloudLinksMappers.d.ts +0 -2
- package/esm/models/cloudLinksMappers.d.ts.map +0 -1
- package/esm/models/cloudLinksMappers.js +0 -9
- package/esm/models/cloudLinksMappers.js.map +0 -1
- package/esm/models/clustersMappers.d.ts +0 -2
- package/esm/models/clustersMappers.d.ts.map +0 -1
- package/esm/models/clustersMappers.js +0 -9
- package/esm/models/clustersMappers.js.map +0 -1
- package/esm/models/datastoresMappers.d.ts +0 -2
- package/esm/models/datastoresMappers.d.ts.map +0 -1
- package/esm/models/datastoresMappers.js +0 -9
- package/esm/models/datastoresMappers.js.map +0 -1
- package/esm/models/globalReachConnectionsMappers.d.ts +0 -2
- package/esm/models/globalReachConnectionsMappers.d.ts.map +0 -1
- package/esm/models/globalReachConnectionsMappers.js +0 -9
- package/esm/models/globalReachConnectionsMappers.js.map +0 -1
- package/esm/models/hcxEnterpriseSitesMappers.d.ts +0 -2
- package/esm/models/hcxEnterpriseSitesMappers.d.ts.map +0 -1
- package/esm/models/hcxEnterpriseSitesMappers.js +0 -9
- package/esm/models/hcxEnterpriseSitesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -4643
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationsMappers.d.ts +0 -2
- package/esm/models/locationsMappers.d.ts.map +0 -1
- package/esm/models/locationsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -113
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.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 -29
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -290
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/placementPoliciesMappers.d.ts +0 -2
- package/esm/models/placementPoliciesMappers.d.ts.map +0 -1
- package/esm/models/placementPoliciesMappers.js +0 -9
- package/esm/models/placementPoliciesMappers.js.map +0 -1
- package/esm/models/privateCloudsMappers.d.ts +0 -2
- package/esm/models/privateCloudsMappers.d.ts.map +0 -1
- package/esm/models/privateCloudsMappers.js +0 -9
- package/esm/models/privateCloudsMappers.js.map +0 -1
- package/esm/models/scriptCmdletsMappers.d.ts +0 -2
- package/esm/models/scriptCmdletsMappers.d.ts.map +0 -1
- package/esm/models/scriptCmdletsMappers.js +0 -9
- package/esm/models/scriptCmdletsMappers.js.map +0 -1
- package/esm/models/scriptExecutionsMappers.d.ts +0 -2
- package/esm/models/scriptExecutionsMappers.d.ts.map +0 -1
- package/esm/models/scriptExecutionsMappers.js +0 -9
- package/esm/models/scriptExecutionsMappers.js.map +0 -1
- package/esm/models/scriptPackagesMappers.d.ts +0 -2
- package/esm/models/scriptPackagesMappers.d.ts.map +0 -1
- package/esm/models/scriptPackagesMappers.js +0 -9
- package/esm/models/scriptPackagesMappers.js.map +0 -1
- package/esm/models/virtualMachinesMappers.d.ts +0 -2
- package/esm/models/virtualMachinesMappers.d.ts.map +0 -1
- package/esm/models/virtualMachinesMappers.js +0 -9
- package/esm/models/virtualMachinesMappers.js.map +0 -1
- package/esm/models/workloadNetworksMappers.d.ts +0 -2
- package/esm/models/workloadNetworksMappers.d.ts.map +0 -1
- package/esm/models/workloadNetworksMappers.js +0 -9
- package/esm/models/workloadNetworksMappers.js.map +0 -1
- package/esm/operations/addons.d.ts +0 -113
- package/esm/operations/addons.d.ts.map +0 -1
- package/esm/operations/addons.js +0 -238
- package/esm/operations/addons.js.map +0 -1
- package/esm/operations/authorizations.d.ts +0 -113
- package/esm/operations/authorizations.d.ts.map +0 -1
- package/esm/operations/authorizations.js +0 -238
- package/esm/operations/authorizations.js.map +0 -1
- package/esm/operations/cloudLinks.d.ts +0 -113
- package/esm/operations/cloudLinks.d.ts.map +0 -1
- package/esm/operations/cloudLinks.js +0 -238
- package/esm/operations/cloudLinks.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -135
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -299
- package/esm/operations/clusters.js.map +0 -1
- package/esm/operations/datastores.d.ts +0 -125
- package/esm/operations/datastores.d.ts.map +0 -1
- package/esm/operations/datastores.js +0 -248
- package/esm/operations/datastores.js.map +0 -1
- package/esm/operations/globalReachConnections.d.ts +0 -115
- package/esm/operations/globalReachConnections.d.ts.map +0 -1
- package/esm/operations/globalReachConnections.js +0 -236
- package/esm/operations/globalReachConnections.js.map +0 -1
- package/esm/operations/hcxEnterpriseSites.d.ts +0 -124
- package/esm/operations/hcxEnterpriseSites.d.ts.map +0 -1
- package/esm/operations/hcxEnterpriseSites.js +0 -192
- package/esm/operations/hcxEnterpriseSites.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/locations.d.ts +0 -49
- package/esm/operations/locations.d.ts.map +0 -1
- package/esm/operations/locations.js +0 -84
- package/esm/operations/locations.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/placementPolicies.d.ts +0 -154
- package/esm/operations/placementPolicies.d.ts.map +0 -1
- package/esm/operations/placementPolicies.js +0 -323
- package/esm/operations/placementPolicies.js.map +0 -1
- package/esm/operations/privateClouds.d.ts +0 -209
- package/esm/operations/privateClouds.d.ts.map +0 -1
- package/esm/operations/privateClouds.js +0 -466
- package/esm/operations/privateClouds.js.map +0 -1
- package/esm/operations/scriptCmdlets.d.ts +0 -87
- package/esm/operations/scriptCmdlets.d.ts.map +0 -1
- package/esm/operations/scriptCmdlets.js +0 -123
- package/esm/operations/scriptCmdlets.js.map +0 -1
- package/esm/operations/scriptExecutions.d.ts +0 -139
- package/esm/operations/scriptExecutions.d.ts.map +0 -1
- package/esm/operations/scriptExecutions.js +0 -286
- package/esm/operations/scriptExecutions.js.map +0 -1
- package/esm/operations/scriptPackages.d.ts +0 -76
- package/esm/operations/scriptPackages.d.ts.map +0 -1
- package/esm/operations/scriptPackages.js +0 -119
- package/esm/operations/scriptPackages.js.map +0 -1
- package/esm/operations/virtualMachines.d.ts +0 -103
- package/esm/operations/virtualMachines.d.ts.map +0 -1
- package/esm/operations/virtualMachines.js +0 -188
- package/esm/operations/virtualMachines.js.map +0 -1
- package/esm/operations/workloadNetworks.d.ts +0 -988
- package/esm/operations/workloadNetworks.d.ts.map +0 -1
- package/esm/operations/workloadNetworks.js +0 -2062
- package/esm/operations/workloadNetworks.js.map +0 -1
- package/src/avsClient.ts +0 -77
- package/src/avsClientContext.ts +0 -67
- package/src/models/addonsMappers.ts +0 -70
- package/src/models/authorizationsMappers.ts +0 -70
- package/src/models/cloudLinksMappers.ts +0 -70
- package/src/models/clustersMappers.ts +0 -71
- package/src/models/datastoresMappers.ts +0 -70
- package/src/models/globalReachConnectionsMappers.ts +0 -70
- package/src/models/hcxEnterpriseSitesMappers.ts +0 -70
- package/src/models/operationsMappers.ts +0 -22
- package/src/models/placementPoliciesMappers.ts +0 -71
- package/src/models/privateCloudsMappers.ts +0 -72
- package/src/models/scriptCmdletsMappers.ts +0 -70
- package/src/models/scriptExecutionsMappers.ts +0 -70
- package/src/models/scriptPackagesMappers.ts +0 -70
- package/src/models/virtualMachinesMappers.ts +0 -71
- package/src/models/workloadNetworksMappers.ts +0 -78
|
@@ -3,214 +3,448 @@
|
|
|
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
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PlacementPolicies } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
PlacementPolicy,
|
|
19
|
+
PlacementPoliciesListNextOptionalParams,
|
|
20
|
+
PlacementPoliciesListOptionalParams,
|
|
21
|
+
PlacementPoliciesListResponse,
|
|
22
|
+
PlacementPoliciesGetOptionalParams,
|
|
23
|
+
PlacementPoliciesGetResponse,
|
|
24
|
+
PlacementPoliciesCreateOrUpdateOptionalParams,
|
|
25
|
+
PlacementPoliciesCreateOrUpdateResponse,
|
|
26
|
+
PlacementPolicyUpdate,
|
|
27
|
+
PlacementPoliciesUpdateOptionalParams,
|
|
28
|
+
PlacementPoliciesUpdateResponse,
|
|
29
|
+
PlacementPoliciesDeleteOptionalParams,
|
|
30
|
+
PlacementPoliciesListNextResponse
|
|
31
|
+
} from "../models";
|
|
16
32
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
33
|
+
/// <reference lib="esnext.asynciterable" />
|
|
34
|
+
/** Class containing PlacementPolicies operations. */
|
|
35
|
+
export class PlacementPoliciesImpl implements PlacementPolicies {
|
|
36
|
+
private readonly client: AzureVMwareSolutionAPI;
|
|
20
37
|
|
|
21
38
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
39
|
+
* Initialize a new instance of the class PlacementPolicies class.
|
|
40
|
+
* @param client Reference to the service client
|
|
24
41
|
*/
|
|
25
|
-
constructor(client:
|
|
42
|
+
constructor(client: AzureVMwareSolutionAPI) {
|
|
26
43
|
this.client = client;
|
|
27
44
|
}
|
|
28
45
|
|
|
29
46
|
/**
|
|
30
|
-
*
|
|
47
|
+
* List placement policies in a private cloud cluster
|
|
31
48
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
32
49
|
* @param privateCloudName Name of the private cloud
|
|
33
50
|
* @param clusterName Name of the cluster in the private cloud
|
|
34
|
-
* @param
|
|
35
|
-
* @returns Promise<Models.PlacementPoliciesListResponse>
|
|
51
|
+
* @param options The options parameters.
|
|
36
52
|
*/
|
|
37
|
-
list(
|
|
53
|
+
public list(
|
|
54
|
+
resourceGroupName: string,
|
|
55
|
+
privateCloudName: string,
|
|
56
|
+
clusterName: string,
|
|
57
|
+
options?: PlacementPoliciesListOptionalParams
|
|
58
|
+
): PagedAsyncIterableIterator<PlacementPolicy> {
|
|
59
|
+
const iter = this.listPagingAll(
|
|
60
|
+
resourceGroupName,
|
|
61
|
+
privateCloudName,
|
|
62
|
+
clusterName,
|
|
63
|
+
options
|
|
64
|
+
);
|
|
65
|
+
return {
|
|
66
|
+
next() {
|
|
67
|
+
return iter.next();
|
|
68
|
+
},
|
|
69
|
+
[Symbol.asyncIterator]() {
|
|
70
|
+
return this;
|
|
71
|
+
},
|
|
72
|
+
byPage: () => {
|
|
73
|
+
return this.listPagingPage(
|
|
74
|
+
resourceGroupName,
|
|
75
|
+
privateCloudName,
|
|
76
|
+
clusterName,
|
|
77
|
+
options
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
private async *listPagingPage(
|
|
84
|
+
resourceGroupName: string,
|
|
85
|
+
privateCloudName: string,
|
|
86
|
+
clusterName: string,
|
|
87
|
+
options?: PlacementPoliciesListOptionalParams
|
|
88
|
+
): AsyncIterableIterator<PlacementPolicy[]> {
|
|
89
|
+
let result = await this._list(
|
|
90
|
+
resourceGroupName,
|
|
91
|
+
privateCloudName,
|
|
92
|
+
clusterName,
|
|
93
|
+
options
|
|
94
|
+
);
|
|
95
|
+
yield result.value || [];
|
|
96
|
+
let continuationToken = result.nextLink;
|
|
97
|
+
while (continuationToken) {
|
|
98
|
+
result = await this._listNext(
|
|
99
|
+
resourceGroupName,
|
|
100
|
+
privateCloudName,
|
|
101
|
+
clusterName,
|
|
102
|
+
continuationToken,
|
|
103
|
+
options
|
|
104
|
+
);
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
yield result.value || [];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
private async *listPagingAll(
|
|
111
|
+
resourceGroupName: string,
|
|
112
|
+
privateCloudName: string,
|
|
113
|
+
clusterName: string,
|
|
114
|
+
options?: PlacementPoliciesListOptionalParams
|
|
115
|
+
): AsyncIterableIterator<PlacementPolicy> {
|
|
116
|
+
for await (const page of this.listPagingPage(
|
|
117
|
+
resourceGroupName,
|
|
118
|
+
privateCloudName,
|
|
119
|
+
clusterName,
|
|
120
|
+
options
|
|
121
|
+
)) {
|
|
122
|
+
yield* page;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
38
126
|
/**
|
|
127
|
+
* List placement policies in a private cloud cluster
|
|
39
128
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
40
129
|
* @param privateCloudName Name of the private cloud
|
|
41
130
|
* @param clusterName Name of the cluster in the private cloud
|
|
42
|
-
* @param
|
|
131
|
+
* @param options The options parameters.
|
|
43
132
|
*/
|
|
44
|
-
|
|
133
|
+
private _list(
|
|
134
|
+
resourceGroupName: string,
|
|
135
|
+
privateCloudName: string,
|
|
136
|
+
clusterName: string,
|
|
137
|
+
options?: PlacementPoliciesListOptionalParams
|
|
138
|
+
): Promise<PlacementPoliciesListResponse> {
|
|
139
|
+
return this.client.sendOperationRequest(
|
|
140
|
+
{ resourceGroupName, privateCloudName, clusterName, options },
|
|
141
|
+
listOperationSpec
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
45
145
|
/**
|
|
146
|
+
* Get a placement policy by name in a private cloud cluster
|
|
46
147
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
47
148
|
* @param privateCloudName Name of the private cloud
|
|
48
149
|
* @param clusterName Name of the cluster in the private cloud
|
|
49
|
-
* @param
|
|
50
|
-
*
|
|
150
|
+
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement
|
|
151
|
+
* policy
|
|
152
|
+
* @param options The options parameters.
|
|
51
153
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
154
|
+
get(
|
|
155
|
+
resourceGroupName: string,
|
|
156
|
+
privateCloudName: string,
|
|
157
|
+
clusterName: string,
|
|
158
|
+
placementPolicyName: string,
|
|
159
|
+
options?: PlacementPoliciesGetOptionalParams
|
|
160
|
+
): Promise<PlacementPoliciesGetResponse> {
|
|
54
161
|
return this.client.sendOperationRequest(
|
|
55
162
|
{
|
|
56
163
|
resourceGroupName,
|
|
57
164
|
privateCloudName,
|
|
58
165
|
clusterName,
|
|
166
|
+
placementPolicyName,
|
|
59
167
|
options
|
|
60
168
|
},
|
|
61
|
-
|
|
62
|
-
|
|
169
|
+
getOperationSpec
|
|
170
|
+
);
|
|
63
171
|
}
|
|
64
172
|
|
|
65
173
|
/**
|
|
66
|
-
*
|
|
67
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
68
|
-
* @param privateCloudName Name of the private cloud
|
|
69
|
-
* @param clusterName Name of the cluster in the private cloud
|
|
70
|
-
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS)
|
|
71
|
-
* placement policy
|
|
72
|
-
* @param [options] The optional parameters
|
|
73
|
-
* @returns Promise<Models.PlacementPoliciesGetResponse>
|
|
74
|
-
*/
|
|
75
|
-
get(resourceGroupName: string, privateCloudName: string, clusterName: string, placementPolicyName: string, options?: msRest.RequestOptionsBase): Promise<Models.PlacementPoliciesGetResponse>;
|
|
76
|
-
/**
|
|
77
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
78
|
-
* @param privateCloudName Name of the private cloud
|
|
79
|
-
* @param clusterName Name of the cluster in the private cloud
|
|
80
|
-
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS)
|
|
81
|
-
* placement policy
|
|
82
|
-
* @param callback The callback
|
|
83
|
-
*/
|
|
84
|
-
get(resourceGroupName: string, privateCloudName: string, clusterName: string, placementPolicyName: string, callback: msRest.ServiceCallback<Models.PlacementPolicy>): void;
|
|
85
|
-
/**
|
|
174
|
+
* Create or update a placement policy in a private cloud cluster
|
|
86
175
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
87
176
|
* @param privateCloudName Name of the private cloud
|
|
88
177
|
* @param clusterName Name of the cluster in the private cloud
|
|
89
|
-
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS)
|
|
90
|
-
*
|
|
91
|
-
* @param
|
|
92
|
-
* @param
|
|
178
|
+
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement
|
|
179
|
+
* policy
|
|
180
|
+
* @param placementPolicy A placement policy in the private cloud cluster
|
|
181
|
+
* @param options The options parameters.
|
|
93
182
|
*/
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
183
|
+
async beginCreateOrUpdate(
|
|
184
|
+
resourceGroupName: string,
|
|
185
|
+
privateCloudName: string,
|
|
186
|
+
clusterName: string,
|
|
187
|
+
placementPolicyName: string,
|
|
188
|
+
placementPolicy: PlacementPolicy,
|
|
189
|
+
options?: PlacementPoliciesCreateOrUpdateOptionalParams
|
|
190
|
+
): Promise<
|
|
191
|
+
PollerLike<
|
|
192
|
+
PollOperationState<PlacementPoliciesCreateOrUpdateResponse>,
|
|
193
|
+
PlacementPoliciesCreateOrUpdateResponse
|
|
194
|
+
>
|
|
195
|
+
> {
|
|
196
|
+
const directSendOperation = async (
|
|
197
|
+
args: coreClient.OperationArguments,
|
|
198
|
+
spec: coreClient.OperationSpec
|
|
199
|
+
): Promise<PlacementPoliciesCreateOrUpdateResponse> => {
|
|
200
|
+
return this.client.sendOperationRequest(args, spec);
|
|
201
|
+
};
|
|
202
|
+
const sendOperation = async (
|
|
203
|
+
args: coreClient.OperationArguments,
|
|
204
|
+
spec: coreClient.OperationSpec
|
|
205
|
+
) => {
|
|
206
|
+
let currentRawResponse:
|
|
207
|
+
| coreClient.FullOperationResponse
|
|
208
|
+
| undefined = undefined;
|
|
209
|
+
const providedCallback = args.options?.onResponse;
|
|
210
|
+
const callback: coreClient.RawResponseCallback = (
|
|
211
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
212
|
+
flatResponse: unknown
|
|
213
|
+
) => {
|
|
214
|
+
currentRawResponse = rawResponse;
|
|
215
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
216
|
+
};
|
|
217
|
+
const updatedArgs = {
|
|
218
|
+
...args,
|
|
219
|
+
options: {
|
|
220
|
+
...args.options,
|
|
221
|
+
onResponse: callback
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
225
|
+
return {
|
|
226
|
+
flatResponse,
|
|
227
|
+
rawResponse: {
|
|
228
|
+
statusCode: currentRawResponse!.status,
|
|
229
|
+
body: currentRawResponse!.parsedBody,
|
|
230
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
const lro = new LroImpl(
|
|
236
|
+
sendOperation,
|
|
97
237
|
{
|
|
98
238
|
resourceGroupName,
|
|
99
239
|
privateCloudName,
|
|
100
240
|
clusterName,
|
|
101
241
|
placementPolicyName,
|
|
242
|
+
placementPolicy,
|
|
102
243
|
options
|
|
103
244
|
},
|
|
104
|
-
|
|
105
|
-
|
|
245
|
+
createOrUpdateOperationSpec
|
|
246
|
+
);
|
|
247
|
+
return new LroEngine(lro, {
|
|
248
|
+
resumeFrom: options?.resumeFrom,
|
|
249
|
+
intervalInMs: options?.updateIntervalInMs
|
|
250
|
+
});
|
|
106
251
|
}
|
|
107
252
|
|
|
108
253
|
/**
|
|
109
|
-
*
|
|
254
|
+
* Create or update a placement policy in a private cloud cluster
|
|
110
255
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
111
256
|
* @param privateCloudName Name of the private cloud
|
|
112
257
|
* @param clusterName Name of the cluster in the private cloud
|
|
113
|
-
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS)
|
|
114
|
-
*
|
|
115
|
-
* @param
|
|
116
|
-
* @
|
|
258
|
+
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement
|
|
259
|
+
* policy
|
|
260
|
+
* @param placementPolicy A placement policy in the private cloud cluster
|
|
261
|
+
* @param options The options parameters.
|
|
117
262
|
*/
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
263
|
+
async beginCreateOrUpdateAndWait(
|
|
264
|
+
resourceGroupName: string,
|
|
265
|
+
privateCloudName: string,
|
|
266
|
+
clusterName: string,
|
|
267
|
+
placementPolicyName: string,
|
|
268
|
+
placementPolicy: PlacementPolicy,
|
|
269
|
+
options?: PlacementPoliciesCreateOrUpdateOptionalParams
|
|
270
|
+
): Promise<PlacementPoliciesCreateOrUpdateResponse> {
|
|
271
|
+
const poller = await this.beginCreateOrUpdate(
|
|
272
|
+
resourceGroupName,
|
|
273
|
+
privateCloudName,
|
|
274
|
+
clusterName,
|
|
275
|
+
placementPolicyName,
|
|
276
|
+
placementPolicy,
|
|
277
|
+
options
|
|
278
|
+
);
|
|
279
|
+
return poller.pollUntilDone();
|
|
121
280
|
}
|
|
122
281
|
|
|
123
282
|
/**
|
|
124
|
-
*
|
|
283
|
+
* Update a placement policy in a private cloud cluster
|
|
125
284
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
126
285
|
* @param privateCloudName Name of the private cloud
|
|
127
286
|
* @param clusterName Name of the cluster in the private cloud
|
|
128
|
-
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS)
|
|
129
|
-
*
|
|
287
|
+
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement
|
|
288
|
+
* policy
|
|
130
289
|
* @param placementPolicyUpdate The placement policy properties that may be updated
|
|
131
|
-
* @param
|
|
132
|
-
* @returns Promise<Models.PlacementPoliciesUpdateResponse>
|
|
290
|
+
* @param options The options parameters.
|
|
133
291
|
*/
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
.
|
|
152
|
-
|
|
292
|
+
async beginUpdate(
|
|
293
|
+
resourceGroupName: string,
|
|
294
|
+
privateCloudName: string,
|
|
295
|
+
clusterName: string,
|
|
296
|
+
placementPolicyName: string,
|
|
297
|
+
placementPolicyUpdate: PlacementPolicyUpdate,
|
|
298
|
+
options?: PlacementPoliciesUpdateOptionalParams
|
|
299
|
+
): Promise<
|
|
300
|
+
PollerLike<
|
|
301
|
+
PollOperationState<PlacementPoliciesUpdateResponse>,
|
|
302
|
+
PlacementPoliciesUpdateResponse
|
|
303
|
+
>
|
|
304
|
+
> {
|
|
305
|
+
const directSendOperation = async (
|
|
306
|
+
args: coreClient.OperationArguments,
|
|
307
|
+
spec: coreClient.OperationSpec
|
|
308
|
+
): Promise<PlacementPoliciesUpdateResponse> => {
|
|
309
|
+
return this.client.sendOperationRequest(args, spec);
|
|
310
|
+
};
|
|
311
|
+
const sendOperation = async (
|
|
312
|
+
args: coreClient.OperationArguments,
|
|
313
|
+
spec: coreClient.OperationSpec
|
|
314
|
+
) => {
|
|
315
|
+
let currentRawResponse:
|
|
316
|
+
| coreClient.FullOperationResponse
|
|
317
|
+
| undefined = undefined;
|
|
318
|
+
const providedCallback = args.options?.onResponse;
|
|
319
|
+
const callback: coreClient.RawResponseCallback = (
|
|
320
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
321
|
+
flatResponse: unknown
|
|
322
|
+
) => {
|
|
323
|
+
currentRawResponse = rawResponse;
|
|
324
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
325
|
+
};
|
|
326
|
+
const updatedArgs = {
|
|
327
|
+
...args,
|
|
328
|
+
options: {
|
|
329
|
+
...args.options,
|
|
330
|
+
onResponse: callback
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
334
|
+
return {
|
|
335
|
+
flatResponse,
|
|
336
|
+
rawResponse: {
|
|
337
|
+
statusCode: currentRawResponse!.status,
|
|
338
|
+
body: currentRawResponse!.parsedBody,
|
|
339
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
};
|
|
153
343
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
157
|
-
* @param privateCloudName Name of the private cloud
|
|
158
|
-
* @param clusterName Name of the cluster in the private cloud
|
|
159
|
-
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS)
|
|
160
|
-
* placement policy
|
|
161
|
-
* @param [options] The optional parameters
|
|
162
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
163
|
-
*/
|
|
164
|
-
beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, clusterName: string, placementPolicyName: string, options?: Models.PlacementPoliciesBeginCreateOrUpdateOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
165
|
-
return this.client.sendLRORequest(
|
|
344
|
+
const lro = new LroImpl(
|
|
345
|
+
sendOperation,
|
|
166
346
|
{
|
|
167
347
|
resourceGroupName,
|
|
168
348
|
privateCloudName,
|
|
169
349
|
clusterName,
|
|
170
350
|
placementPolicyName,
|
|
351
|
+
placementPolicyUpdate,
|
|
171
352
|
options
|
|
172
353
|
},
|
|
173
|
-
|
|
174
|
-
|
|
354
|
+
updateOperationSpec
|
|
355
|
+
);
|
|
356
|
+
return new LroEngine(lro, {
|
|
357
|
+
resumeFrom: options?.resumeFrom,
|
|
358
|
+
intervalInMs: options?.updateIntervalInMs
|
|
359
|
+
});
|
|
175
360
|
}
|
|
176
361
|
|
|
177
362
|
/**
|
|
178
|
-
*
|
|
363
|
+
* Update a placement policy in a private cloud cluster
|
|
179
364
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
180
365
|
* @param privateCloudName Name of the private cloud
|
|
181
366
|
* @param clusterName Name of the cluster in the private cloud
|
|
182
|
-
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS)
|
|
183
|
-
*
|
|
367
|
+
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement
|
|
368
|
+
* policy
|
|
184
369
|
* @param placementPolicyUpdate The placement policy properties that may be updated
|
|
185
|
-
* @param
|
|
186
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
370
|
+
* @param options The options parameters.
|
|
187
371
|
*/
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
372
|
+
async beginUpdateAndWait(
|
|
373
|
+
resourceGroupName: string,
|
|
374
|
+
privateCloudName: string,
|
|
375
|
+
clusterName: string,
|
|
376
|
+
placementPolicyName: string,
|
|
377
|
+
placementPolicyUpdate: PlacementPolicyUpdate,
|
|
378
|
+
options?: PlacementPoliciesUpdateOptionalParams
|
|
379
|
+
): Promise<PlacementPoliciesUpdateResponse> {
|
|
380
|
+
const poller = await this.beginUpdate(
|
|
381
|
+
resourceGroupName,
|
|
382
|
+
privateCloudName,
|
|
383
|
+
clusterName,
|
|
384
|
+
placementPolicyName,
|
|
385
|
+
placementPolicyUpdate,
|
|
386
|
+
options
|
|
387
|
+
);
|
|
388
|
+
return poller.pollUntilDone();
|
|
200
389
|
}
|
|
201
390
|
|
|
202
391
|
/**
|
|
203
|
-
*
|
|
392
|
+
* Delete a placement policy in a private cloud cluster
|
|
204
393
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
205
394
|
* @param privateCloudName Name of the private cloud
|
|
206
395
|
* @param clusterName Name of the cluster in the private cloud
|
|
207
|
-
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS)
|
|
208
|
-
*
|
|
209
|
-
* @param
|
|
210
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
396
|
+
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement
|
|
397
|
+
* policy
|
|
398
|
+
* @param options The options parameters.
|
|
211
399
|
*/
|
|
212
|
-
|
|
213
|
-
|
|
400
|
+
async beginDelete(
|
|
401
|
+
resourceGroupName: string,
|
|
402
|
+
privateCloudName: string,
|
|
403
|
+
clusterName: string,
|
|
404
|
+
placementPolicyName: string,
|
|
405
|
+
options?: PlacementPoliciesDeleteOptionalParams
|
|
406
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
407
|
+
const directSendOperation = async (
|
|
408
|
+
args: coreClient.OperationArguments,
|
|
409
|
+
spec: coreClient.OperationSpec
|
|
410
|
+
): Promise<void> => {
|
|
411
|
+
return this.client.sendOperationRequest(args, spec);
|
|
412
|
+
};
|
|
413
|
+
const sendOperation = async (
|
|
414
|
+
args: coreClient.OperationArguments,
|
|
415
|
+
spec: coreClient.OperationSpec
|
|
416
|
+
) => {
|
|
417
|
+
let currentRawResponse:
|
|
418
|
+
| coreClient.FullOperationResponse
|
|
419
|
+
| undefined = undefined;
|
|
420
|
+
const providedCallback = args.options?.onResponse;
|
|
421
|
+
const callback: coreClient.RawResponseCallback = (
|
|
422
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
423
|
+
flatResponse: unknown
|
|
424
|
+
) => {
|
|
425
|
+
currentRawResponse = rawResponse;
|
|
426
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
427
|
+
};
|
|
428
|
+
const updatedArgs = {
|
|
429
|
+
...args,
|
|
430
|
+
options: {
|
|
431
|
+
...args.options,
|
|
432
|
+
onResponse: callback
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
436
|
+
return {
|
|
437
|
+
flatResponse,
|
|
438
|
+
rawResponse: {
|
|
439
|
+
statusCode: currentRawResponse!.status,
|
|
440
|
+
body: currentRawResponse!.parsedBody,
|
|
441
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
const lro = new LroImpl(
|
|
447
|
+
sendOperation,
|
|
214
448
|
{
|
|
215
449
|
resourceGroupName,
|
|
216
450
|
privateCloudName,
|
|
@@ -218,56 +452,68 @@ export class PlacementPolicies {
|
|
|
218
452
|
placementPolicyName,
|
|
219
453
|
options
|
|
220
454
|
},
|
|
221
|
-
|
|
222
|
-
|
|
455
|
+
deleteOperationSpec
|
|
456
|
+
);
|
|
457
|
+
return new LroEngine(lro, {
|
|
458
|
+
resumeFrom: options?.resumeFrom,
|
|
459
|
+
intervalInMs: options?.updateIntervalInMs
|
|
460
|
+
});
|
|
223
461
|
}
|
|
224
462
|
|
|
225
463
|
/**
|
|
226
|
-
*
|
|
227
|
-
* @param
|
|
228
|
-
* @param
|
|
229
|
-
* @
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
234
|
-
* @param callback The callback
|
|
464
|
+
* Delete a placement policy in a private cloud cluster
|
|
465
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
466
|
+
* @param privateCloudName Name of the private cloud
|
|
467
|
+
* @param clusterName Name of the cluster in the private cloud
|
|
468
|
+
* @param placementPolicyName Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement
|
|
469
|
+
* policy
|
|
470
|
+
* @param options The options parameters.
|
|
235
471
|
*/
|
|
236
|
-
|
|
472
|
+
async beginDeleteAndWait(
|
|
473
|
+
resourceGroupName: string,
|
|
474
|
+
privateCloudName: string,
|
|
475
|
+
clusterName: string,
|
|
476
|
+
placementPolicyName: string,
|
|
477
|
+
options?: PlacementPoliciesDeleteOptionalParams
|
|
478
|
+
): Promise<void> {
|
|
479
|
+
const poller = await this.beginDelete(
|
|
480
|
+
resourceGroupName,
|
|
481
|
+
privateCloudName,
|
|
482
|
+
clusterName,
|
|
483
|
+
placementPolicyName,
|
|
484
|
+
options
|
|
485
|
+
);
|
|
486
|
+
return poller.pollUntilDone();
|
|
487
|
+
}
|
|
488
|
+
|
|
237
489
|
/**
|
|
238
|
-
*
|
|
239
|
-
* @param
|
|
240
|
-
* @param
|
|
490
|
+
* ListNext
|
|
491
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
492
|
+
* @param privateCloudName Name of the private cloud
|
|
493
|
+
* @param clusterName Name of the cluster in the private cloud
|
|
494
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
495
|
+
* @param options The options parameters.
|
|
241
496
|
*/
|
|
242
|
-
|
|
243
|
-
|
|
497
|
+
private _listNext(
|
|
498
|
+
resourceGroupName: string,
|
|
499
|
+
privateCloudName: string,
|
|
500
|
+
clusterName: string,
|
|
501
|
+
nextLink: string,
|
|
502
|
+
options?: PlacementPoliciesListNextOptionalParams
|
|
503
|
+
): Promise<PlacementPoliciesListNextResponse> {
|
|
244
504
|
return this.client.sendOperationRequest(
|
|
245
|
-
{
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
},
|
|
249
|
-
listNextOperationSpec,
|
|
250
|
-
callback) as Promise<Models.PlacementPoliciesListNextResponse>;
|
|
505
|
+
{ resourceGroupName, privateCloudName, clusterName, nextLink, options },
|
|
506
|
+
listNextOperationSpec
|
|
507
|
+
);
|
|
251
508
|
}
|
|
252
509
|
}
|
|
253
|
-
|
|
254
510
|
// Operation Specifications
|
|
255
|
-
const serializer =
|
|
256
|
-
|
|
511
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
512
|
+
|
|
513
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
514
|
+
path:
|
|
515
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies",
|
|
257
516
|
httpMethod: "GET",
|
|
258
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies",
|
|
259
|
-
urlParameters: [
|
|
260
|
-
Parameters.subscriptionId,
|
|
261
|
-
Parameters.resourceGroupName,
|
|
262
|
-
Parameters.privateCloudName,
|
|
263
|
-
Parameters.clusterName
|
|
264
|
-
],
|
|
265
|
-
queryParameters: [
|
|
266
|
-
Parameters.apiVersion
|
|
267
|
-
],
|
|
268
|
-
headerParameters: [
|
|
269
|
-
Parameters.acceptLanguage
|
|
270
|
-
],
|
|
271
517
|
responses: {
|
|
272
518
|
200: {
|
|
273
519
|
bodyMapper: Mappers.PlacementPoliciesList
|
|
@@ -276,25 +522,21 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
276
522
|
bodyMapper: Mappers.CloudError
|
|
277
523
|
}
|
|
278
524
|
},
|
|
279
|
-
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
283
|
-
httpMethod: "GET",
|
|
284
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}",
|
|
525
|
+
queryParameters: [Parameters.apiVersion],
|
|
285
526
|
urlParameters: [
|
|
527
|
+
Parameters.$host,
|
|
286
528
|
Parameters.subscriptionId,
|
|
287
529
|
Parameters.resourceGroupName,
|
|
288
530
|
Parameters.privateCloudName,
|
|
289
|
-
Parameters.clusterName
|
|
290
|
-
Parameters.placementPolicyName
|
|
291
|
-
],
|
|
292
|
-
queryParameters: [
|
|
293
|
-
Parameters.apiVersion
|
|
294
|
-
],
|
|
295
|
-
headerParameters: [
|
|
296
|
-
Parameters.acceptLanguage
|
|
531
|
+
Parameters.clusterName
|
|
297
532
|
],
|
|
533
|
+
headerParameters: [Parameters.accept],
|
|
534
|
+
serializer
|
|
535
|
+
};
|
|
536
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
537
|
+
path:
|
|
538
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}",
|
|
539
|
+
httpMethod: "GET",
|
|
298
540
|
responses: {
|
|
299
541
|
200: {
|
|
300
542
|
bodyMapper: Mappers.PlacementPolicy
|
|
@@ -303,37 +545,22 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
303
545
|
bodyMapper: Mappers.CloudError
|
|
304
546
|
}
|
|
305
547
|
},
|
|
306
|
-
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
310
|
-
httpMethod: "PUT",
|
|
311
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}",
|
|
548
|
+
queryParameters: [Parameters.apiVersion],
|
|
312
549
|
urlParameters: [
|
|
550
|
+
Parameters.$host,
|
|
313
551
|
Parameters.subscriptionId,
|
|
314
552
|
Parameters.resourceGroupName,
|
|
315
553
|
Parameters.privateCloudName,
|
|
316
554
|
Parameters.clusterName,
|
|
317
555
|
Parameters.placementPolicyName
|
|
318
556
|
],
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
parameterPath: {
|
|
327
|
-
properties: [
|
|
328
|
-
"options",
|
|
329
|
-
"properties"
|
|
330
|
-
]
|
|
331
|
-
},
|
|
332
|
-
mapper: {
|
|
333
|
-
...Mappers.PlacementPolicy,
|
|
334
|
-
required: true
|
|
335
|
-
}
|
|
336
|
-
},
|
|
557
|
+
headerParameters: [Parameters.accept],
|
|
558
|
+
serializer
|
|
559
|
+
};
|
|
560
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
561
|
+
path:
|
|
562
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}",
|
|
563
|
+
httpMethod: "PUT",
|
|
337
564
|
responses: {
|
|
338
565
|
200: {
|
|
339
566
|
bodyMapper: Mappers.PlacementPolicy
|
|
@@ -341,90 +568,93 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
341
568
|
201: {
|
|
342
569
|
bodyMapper: Mappers.PlacementPolicy
|
|
343
570
|
},
|
|
571
|
+
202: {
|
|
572
|
+
bodyMapper: Mappers.PlacementPolicy
|
|
573
|
+
},
|
|
574
|
+
204: {
|
|
575
|
+
bodyMapper: Mappers.PlacementPolicy
|
|
576
|
+
},
|
|
344
577
|
default: {
|
|
345
578
|
bodyMapper: Mappers.CloudError
|
|
346
579
|
}
|
|
347
580
|
},
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
352
|
-
httpMethod: "PATCH",
|
|
353
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}",
|
|
581
|
+
requestBody: Parameters.placementPolicy,
|
|
582
|
+
queryParameters: [Parameters.apiVersion],
|
|
354
583
|
urlParameters: [
|
|
584
|
+
Parameters.$host,
|
|
355
585
|
Parameters.subscriptionId,
|
|
356
586
|
Parameters.resourceGroupName,
|
|
357
587
|
Parameters.privateCloudName,
|
|
358
588
|
Parameters.clusterName,
|
|
359
589
|
Parameters.placementPolicyName
|
|
360
590
|
],
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
mapper: {
|
|
370
|
-
...Mappers.PlacementPolicyUpdate,
|
|
371
|
-
required: true
|
|
372
|
-
}
|
|
373
|
-
},
|
|
591
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
592
|
+
mediaType: "json",
|
|
593
|
+
serializer
|
|
594
|
+
};
|
|
595
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
596
|
+
path:
|
|
597
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}",
|
|
598
|
+
httpMethod: "PATCH",
|
|
374
599
|
responses: {
|
|
375
600
|
200: {
|
|
376
601
|
bodyMapper: Mappers.PlacementPolicy
|
|
377
602
|
},
|
|
603
|
+
201: {
|
|
604
|
+
bodyMapper: Mappers.PlacementPolicy
|
|
605
|
+
},
|
|
378
606
|
202: {
|
|
379
607
|
bodyMapper: Mappers.PlacementPolicy
|
|
380
608
|
},
|
|
609
|
+
204: {
|
|
610
|
+
bodyMapper: Mappers.PlacementPolicy
|
|
611
|
+
},
|
|
381
612
|
default: {
|
|
382
613
|
bodyMapper: Mappers.CloudError
|
|
383
614
|
}
|
|
384
615
|
},
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
389
|
-
httpMethod: "DELETE",
|
|
390
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}",
|
|
616
|
+
requestBody: Parameters.placementPolicyUpdate,
|
|
617
|
+
queryParameters: [Parameters.apiVersion],
|
|
391
618
|
urlParameters: [
|
|
619
|
+
Parameters.$host,
|
|
392
620
|
Parameters.subscriptionId,
|
|
393
621
|
Parameters.resourceGroupName,
|
|
394
622
|
Parameters.privateCloudName,
|
|
395
623
|
Parameters.clusterName,
|
|
396
624
|
Parameters.placementPolicyName
|
|
397
625
|
],
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
626
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
627
|
+
mediaType: "json",
|
|
628
|
+
serializer
|
|
629
|
+
};
|
|
630
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
631
|
+
path:
|
|
632
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}",
|
|
633
|
+
httpMethod: "DELETE",
|
|
404
634
|
responses: {
|
|
405
635
|
200: {},
|
|
636
|
+
201: {},
|
|
406
637
|
202: {},
|
|
407
638
|
204: {},
|
|
408
639
|
default: {
|
|
409
640
|
bodyMapper: Mappers.CloudError
|
|
410
641
|
}
|
|
411
642
|
},
|
|
643
|
+
queryParameters: [Parameters.apiVersion],
|
|
644
|
+
urlParameters: [
|
|
645
|
+
Parameters.$host,
|
|
646
|
+
Parameters.subscriptionId,
|
|
647
|
+
Parameters.resourceGroupName,
|
|
648
|
+
Parameters.privateCloudName,
|
|
649
|
+
Parameters.clusterName,
|
|
650
|
+
Parameters.placementPolicyName
|
|
651
|
+
],
|
|
652
|
+
headerParameters: [Parameters.accept],
|
|
412
653
|
serializer
|
|
413
654
|
};
|
|
414
|
-
|
|
415
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
416
|
-
httpMethod: "GET",
|
|
417
|
-
baseUrl: "https://management.azure.com",
|
|
655
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
418
656
|
path: "{nextLink}",
|
|
419
|
-
|
|
420
|
-
Parameters.nextPageLink
|
|
421
|
-
],
|
|
422
|
-
queryParameters: [
|
|
423
|
-
Parameters.apiVersion
|
|
424
|
-
],
|
|
425
|
-
headerParameters: [
|
|
426
|
-
Parameters.acceptLanguage
|
|
427
|
-
],
|
|
657
|
+
httpMethod: "GET",
|
|
428
658
|
responses: {
|
|
429
659
|
200: {
|
|
430
660
|
bodyMapper: Mappers.PlacementPoliciesList
|
|
@@ -433,5 +663,15 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
433
663
|
bodyMapper: Mappers.CloudError
|
|
434
664
|
}
|
|
435
665
|
},
|
|
666
|
+
queryParameters: [Parameters.apiVersion],
|
|
667
|
+
urlParameters: [
|
|
668
|
+
Parameters.$host,
|
|
669
|
+
Parameters.nextLink,
|
|
670
|
+
Parameters.subscriptionId,
|
|
671
|
+
Parameters.resourceGroupName,
|
|
672
|
+
Parameters.privateCloudName,
|
|
673
|
+
Parameters.clusterName
|
|
674
|
+
],
|
|
675
|
+
headerParameters: [Parameters.accept],
|
|
436
676
|
serializer
|
|
437
677
|
};
|