@azure/arm-avs 4.0.0 → 5.0.1-alpha.20240624.3
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 +205 -7
- package/LICENSE +1 -1
- package/dist/index.js +9788 -8264
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/addonsCreateOrUpdateSample.js +20 -20
- package/dist-esm/samples-dev/addonsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/addonsDeleteSample.js +3 -3
- package/dist-esm/samples-dev/addonsGetSample.js +12 -12
- package/dist-esm/samples-dev/addonsListSample.js +7 -12
- package/dist-esm/samples-dev/addonsListSample.js.map +1 -1
- package/dist-esm/samples-dev/authorizationsCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/authorizationsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/authorizationsDeleteSample.js +3 -3
- package/dist-esm/samples-dev/authorizationsGetSample.js +3 -3
- package/dist-esm/samples-dev/authorizationsListSample.js +7 -12
- package/dist-esm/samples-dev/authorizationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/cloudLinksCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/cloudLinksDeleteSample.js +3 -3
- package/dist-esm/samples-dev/cloudLinksGetSample.js +3 -3
- package/dist-esm/samples-dev/cloudLinksListSample.js +7 -12
- package/dist-esm/samples-dev/cloudLinksListSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersCreateOrUpdateSample.js +3 -3
- package/dist-esm/samples-dev/clustersDeleteSample.js +3 -3
- package/dist-esm/samples-dev/clustersGetSample.js +3 -3
- package/dist-esm/samples-dev/clustersListSample.js +7 -12
- package/dist-esm/samples-dev/clustersListSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersListZonesSample.js +6 -6
- package/dist-esm/samples-dev/clustersListZonesSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersUpdateSample.js +3 -3
- package/dist-esm/samples-dev/datastoresCreateOrUpdateSample.js +5 -5
- package/dist-esm/samples-dev/datastoresCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/datastoresDeleteSample.js +3 -3
- package/dist-esm/samples-dev/datastoresGetSample.js +3 -3
- package/dist-esm/samples-dev/datastoresListSample.js +7 -12
- package/dist-esm/samples-dev/datastoresListSample.js.map +1 -1
- package/dist-esm/samples-dev/globalReachConnectionsCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/globalReachConnectionsDeleteSample.js +3 -3
- package/dist-esm/samples-dev/globalReachConnectionsGetSample.js +3 -3
- package/dist-esm/samples-dev/globalReachConnectionsListSample.js +7 -12
- package/dist-esm/samples-dev/globalReachConnectionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/hcxEnterpriseSitesCreateOrUpdateSample.js +3 -3
- package/dist-esm/samples-dev/hcxEnterpriseSitesDeleteSample.js +3 -3
- package/dist-esm/samples-dev/hcxEnterpriseSitesGetSample.js +3 -3
- package/dist-esm/samples-dev/hcxEnterpriseSitesListSample.js +7 -12
- package/dist-esm/samples-dev/hcxEnterpriseSitesListSample.js.map +1 -1
- package/dist-esm/samples-dev/iscsiPathsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/iscsiPathsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/iscsiPathsCreateOrUpdateSample.js +40 -0
- package/dist-esm/samples-dev/iscsiPathsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/iscsiPathsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/iscsiPathsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/iscsiPathsDeleteSample.js +39 -0
- package/dist-esm/samples-dev/iscsiPathsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/iscsiPathsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/iscsiPathsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/iscsiPathsGetSample.js +39 -0
- package/dist-esm/samples-dev/iscsiPathsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/iscsiPathsListByPrivateCloudSample.d.ts +2 -0
- package/dist-esm/samples-dev/iscsiPathsListByPrivateCloudSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/iscsiPathsListByPrivateCloudSample.js +55 -0
- package/dist-esm/samples-dev/iscsiPathsListByPrivateCloudSample.js.map +1 -0
- package/dist-esm/samples-dev/locationsCheckQuotaAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/locationsCheckTrialAvailabilitySample.js +3 -3
- package/dist-esm/samples-dev/locationsCheckTrialAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +7 -12
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/placementPoliciesCreateOrUpdateSample.js +7 -7
- package/dist-esm/samples-dev/placementPoliciesDeleteSample.js +3 -3
- package/dist-esm/samples-dev/placementPoliciesGetSample.js +3 -3
- package/dist-esm/samples-dev/placementPoliciesListSample.js +7 -12
- package/dist-esm/samples-dev/placementPoliciesListSample.js.map +1 -1
- package/dist-esm/samples-dev/placementPoliciesUpdateSample.js +6 -6
- package/dist-esm/samples-dev/privateCloudsCreateOrUpdateSample.js +8 -8
- package/dist-esm/samples-dev/privateCloudsDeleteSample.js +3 -3
- package/dist-esm/samples-dev/privateCloudsGetSample.js +6 -6
- package/dist-esm/samples-dev/privateCloudsListAdminCredentialsSample.js +1 -1
- package/dist-esm/samples-dev/privateCloudsListInSubscriptionSample.js +14 -24
- package/dist-esm/samples-dev/privateCloudsListInSubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/privateCloudsListSample.js +14 -24
- package/dist-esm/samples-dev/privateCloudsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateCloudsRotateNsxtPasswordSample.js +1 -1
- package/dist-esm/samples-dev/privateCloudsRotateVcenterPasswordSample.js +1 -1
- package/dist-esm/samples-dev/privateCloudsUpdateSample.js +10 -10
- package/dist-esm/samples-dev/scriptCmdletsGetSample.js +3 -3
- package/dist-esm/samples-dev/scriptCmdletsListSample.js +7 -12
- package/dist-esm/samples-dev/scriptCmdletsListSample.js.map +1 -1
- package/dist-esm/samples-dev/scriptExecutionsCreateOrUpdateSample.js +8 -8
- package/dist-esm/samples-dev/scriptExecutionsDeleteSample.js +3 -3
- package/dist-esm/samples-dev/scriptExecutionsGetExecutionLogsSample.js +4 -4
- package/dist-esm/samples-dev/scriptExecutionsGetExecutionLogsSample.js.map +1 -1
- package/dist-esm/samples-dev/scriptExecutionsGetSample.js +3 -3
- package/dist-esm/samples-dev/scriptExecutionsListSample.js +7 -12
- package/dist-esm/samples-dev/scriptExecutionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/scriptPackagesGetSample.js +3 -3
- package/dist-esm/samples-dev/scriptPackagesListSample.js +7 -12
- package/dist-esm/samples-dev/scriptPackagesListSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesGetSample.js +5 -5
- package/dist-esm/samples-dev/virtualMachinesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesListSample.js +9 -14
- package/dist-esm/samples-dev/virtualMachinesListSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualMachinesRestrictMovementSample.js +5 -5
- package/dist-esm/samples-dev/virtualMachinesRestrictMovementSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksCreateDhcpSample.js +5 -5
- package/dist-esm/samples-dev/workloadNetworksCreateDnsServiceSample.js +5 -5
- package/dist-esm/samples-dev/workloadNetworksCreateDnsServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksCreateDnsZoneSample.js +4 -4
- package/dist-esm/samples-dev/workloadNetworksCreatePortMirroringSample.js +5 -5
- package/dist-esm/samples-dev/workloadNetworksCreatePortMirroringSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksCreatePublicIPSample.js +5 -5
- package/dist-esm/samples-dev/workloadNetworksCreatePublicIPSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksCreateSegmentsSample.js +5 -5
- package/dist-esm/samples-dev/workloadNetworksCreateVMGroupSample.js +4 -4
- package/dist-esm/samples-dev/workloadNetworksDeleteDhcpSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksDeleteDnsServiceSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksDeleteDnsZoneSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksDeletePortMirroringSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksDeletePublicIPSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksDeleteSegmentSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksDeleteVMGroupSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksGetDhcpSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksGetDnsServiceSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksGetDnsZoneSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksGetGatewaySample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksGetPortMirroringSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksGetPublicIPSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksGetSample.js +4 -5
- package/dist-esm/samples-dev/workloadNetworksGetSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksGetSegmentSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksGetVMGroupSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksGetVirtualMachineSample.js +3 -3
- package/dist-esm/samples-dev/workloadNetworksListDhcpSample.js +7 -12
- package/dist-esm/samples-dev/workloadNetworksListDhcpSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksListDnsServicesSample.js +7 -12
- package/dist-esm/samples-dev/workloadNetworksListDnsServicesSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksListDnsZonesSample.js +7 -12
- package/dist-esm/samples-dev/workloadNetworksListDnsZonesSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksListGatewaysSample.js +7 -12
- package/dist-esm/samples-dev/workloadNetworksListGatewaysSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksListPortMirroringSample.js +7 -12
- package/dist-esm/samples-dev/workloadNetworksListPortMirroringSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksListPublicIPsSample.js +7 -12
- package/dist-esm/samples-dev/workloadNetworksListPublicIPsSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksListSample.js +7 -12
- package/dist-esm/samples-dev/workloadNetworksListSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksListSegmentsSample.js +7 -12
- package/dist-esm/samples-dev/workloadNetworksListSegmentsSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksListVMGroupsSample.js +7 -12
- package/dist-esm/samples-dev/workloadNetworksListVMGroupsSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksListVirtualMachinesSample.js +7 -12
- package/dist-esm/samples-dev/workloadNetworksListVirtualMachinesSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksUpdateDhcpSample.js +6 -6
- package/dist-esm/samples-dev/workloadNetworksUpdateDhcpSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksUpdateDnsServiceSample.js +5 -5
- package/dist-esm/samples-dev/workloadNetworksUpdateDnsServiceSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksUpdateDnsZoneSample.js +5 -5
- package/dist-esm/samples-dev/workloadNetworksUpdateDnsZoneSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksUpdatePortMirroringSample.js +5 -5
- package/dist-esm/samples-dev/workloadNetworksUpdatePortMirroringSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksUpdateSegmentsSample.js +6 -6
- package/dist-esm/samples-dev/workloadNetworksUpdateSegmentsSample.js.map +1 -1
- package/dist-esm/samples-dev/workloadNetworksUpdateVMGroupSample.js +5 -5
- package/dist-esm/samples-dev/workloadNetworksUpdateVMGroupSample.js.map +1 -1
- package/dist-esm/src/azureVMwareSolutionAPI.d.ts +11 -10
- package/dist-esm/src/azureVMwareSolutionAPI.d.ts.map +1 -1
- package/dist-esm/src/azureVMwareSolutionAPI.js +19 -18
- package/dist-esm/src/azureVMwareSolutionAPI.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +2510 -1892
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +546 -424
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +130 -77
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +3128 -2072
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +34 -29
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +290 -255
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/addons.d.ts +16 -16
- package/dist-esm/src/operations/addons.js +59 -62
- package/dist-esm/src/operations/addons.js.map +1 -1
- package/dist-esm/src/operations/authorizations.d.ts +16 -16
- package/dist-esm/src/operations/authorizations.js +60 -63
- package/dist-esm/src/operations/authorizations.js.map +1 -1
- package/dist-esm/src/operations/cloudLinks.d.ts +16 -16
- package/dist-esm/src/operations/cloudLinks.js +60 -63
- package/dist-esm/src/operations/cloudLinks.js.map +1 -1
- package/dist-esm/src/operations/clusters.d.ts +23 -23
- package/dist-esm/src/operations/clusters.js +85 -87
- package/dist-esm/src/operations/clusters.js.map +1 -1
- package/dist-esm/src/operations/datastores.d.ts +22 -22
- package/dist-esm/src/operations/datastores.js +67 -70
- package/dist-esm/src/operations/datastores.js.map +1 -1
- package/dist-esm/src/operations/globalReachConnections.d.ts +16 -16
- package/dist-esm/src/operations/globalReachConnections.js +62 -65
- package/dist-esm/src/operations/globalReachConnections.js.map +1 -1
- package/dist-esm/src/operations/hcxEnterpriseSites.d.ts +10 -10
- package/dist-esm/src/operations/hcxEnterpriseSites.js +41 -46
- package/dist-esm/src/operations/hcxEnterpriseSites.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +9 -8
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +9 -8
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/iscsiPaths.d.ts +76 -0
- package/dist-esm/src/operations/iscsiPaths.d.ts.map +1 -0
- package/dist-esm/src/operations/iscsiPaths.js +350 -0
- package/dist-esm/src/operations/iscsiPaths.js.map +1 -0
- package/dist-esm/src/operations/locations.d.ts +7 -7
- package/dist-esm/src/operations/locations.js +26 -26
- package/dist-esm/src/operations/locations.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.js +14 -19
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/placementPolicies.d.ts +30 -37
- package/dist-esm/src/operations/placementPolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/placementPolicies.js +89 -98
- package/dist-esm/src/operations/placementPolicies.js.map +1 -1
- package/dist-esm/src/operations/privateClouds.d.ts +38 -38
- package/dist-esm/src/operations/privateClouds.d.ts.map +1 -1
- package/dist-esm/src/operations/privateClouds.js +193 -182
- package/dist-esm/src/operations/privateClouds.js.map +1 -1
- package/dist-esm/src/operations/scriptCmdlets.d.ts +8 -11
- package/dist-esm/src/operations/scriptCmdlets.d.ts.map +1 -1
- package/dist-esm/src/operations/scriptCmdlets.js +29 -37
- package/dist-esm/src/operations/scriptCmdlets.js.map +1 -1
- package/dist-esm/src/operations/scriptExecutions.d.ts +17 -17
- package/dist-esm/src/operations/scriptExecutions.js +67 -70
- package/dist-esm/src/operations/scriptExecutions.js.map +1 -1
- package/dist-esm/src/operations/scriptPackages.d.ts +4 -4
- package/dist-esm/src/operations/scriptPackages.js +23 -28
- package/dist-esm/src/operations/scriptPackages.js.map +1 -1
- package/dist-esm/src/operations/virtualMachines.d.ts +17 -17
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachines.js +56 -53
- package/dist-esm/src/operations/virtualMachines.js.map +1 -1
- package/dist-esm/src/operations/workloadNetworks.d.ts +256 -269
- package/dist-esm/src/operations/workloadNetworks.d.ts.map +1 -1
- package/dist-esm/src/operations/workloadNetworks.js +1092 -1136
- package/dist-esm/src/operations/workloadNetworks.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/addons.d.ts +15 -15
- package/dist-esm/src/operationsInterfaces/authorizations.d.ts +15 -15
- package/dist-esm/src/operationsInterfaces/cloudLinks.d.ts +15 -15
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +22 -22
- package/dist-esm/src/operationsInterfaces/datastores.d.ts +19 -19
- package/dist-esm/src/operationsInterfaces/globalReachConnections.d.ts +15 -15
- package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.d.ts +9 -9
- package/dist-esm/src/operationsInterfaces/index.d.ts +9 -8
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +9 -8
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/iscsiPaths.d.ts +51 -0
- package/dist-esm/src/operationsInterfaces/iscsiPaths.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/iscsiPaths.js +9 -0
- package/dist-esm/src/operationsInterfaces/iscsiPaths.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts +7 -7
- package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/placementPolicies.d.ts +27 -34
- package/dist-esm/src/operationsInterfaces/placementPolicies.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateClouds.d.ts +26 -26
- package/dist-esm/src/operationsInterfaces/privateClouds.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/scriptCmdlets.d.ts +5 -7
- package/dist-esm/src/operationsInterfaces/scriptCmdlets.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/scriptExecutions.d.ts +16 -16
- package/dist-esm/src/operationsInterfaces/scriptPackages.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +14 -14
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/workloadNetworks.d.ts +195 -208
- package/dist-esm/src/operationsInterfaces/workloadNetworks.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/avs_examples.spec.js +13 -28
- package/dist-esm/test/avs_examples.spec.js.map +1 -1
- package/package.json +20 -25
- package/review/arm-avs.api.md +774 -284
- package/src/azureVMwareSolutionAPI.ts +53 -48
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +2838 -2095
- package/src/models/mappers.ts +3359 -2221
- package/src/models/parameters.ts +320 -273
- package/src/operations/addons.ts +94 -98
- package/src/operations/authorizations.ts +95 -99
- package/src/operations/cloudLinks.ts +95 -99
- package/src/operations/clusters.ts +134 -140
- package/src/operations/datastores.ts +103 -107
- package/src/operations/globalReachConnections.ts +97 -101
- package/src/operations/hcxEnterpriseSites.ts +60 -64
- package/src/operations/index.ts +9 -8
- package/src/operations/iscsiPaths.ts +481 -0
- package/src/operations/locations.ts +32 -34
- package/src/operations/operations.ts +18 -18
- package/src/operations/placementPolicies.ts +136 -148
- package/src/operations/privateClouds.ts +312 -286
- package/src/operations/scriptCmdlets.ts +43 -48
- package/src/operations/scriptExecutions.ts +105 -110
- package/src/operations/scriptPackages.ts +36 -38
- package/src/operations/virtualMachines.ts +94 -81
- package/src/operations/workloadNetworks.ts +1729 -1779
- package/src/operationsInterfaces/addons.ts +22 -22
- package/src/operationsInterfaces/authorizations.ts +22 -22
- package/src/operationsInterfaces/cloudLinks.ts +22 -22
- package/src/operationsInterfaces/clusters.ts +32 -32
- package/src/operationsInterfaces/datastores.ts +26 -26
- package/src/operationsInterfaces/globalReachConnections.ts +22 -22
- package/src/operationsInterfaces/hcxEnterpriseSites.ts +14 -14
- package/src/operationsInterfaces/index.ts +9 -8
- package/src/operationsInterfaces/iscsiPaths.ts +99 -0
- package/src/operationsInterfaces/locations.ts +12 -12
- package/src/operationsInterfaces/operations.ts +2 -2
- package/src/operationsInterfaces/placementPolicies.ts +36 -43
- package/src/operationsInterfaces/privateClouds.ts +61 -49
- package/src/operationsInterfaces/scriptCmdlets.ts +8 -10
- package/src/operationsInterfaces/scriptExecutions.ts +24 -24
- package/src/operationsInterfaces/scriptPackages.ts +6 -6
- package/src/operationsInterfaces/virtualMachines.ts +24 -18
- package/src/operationsInterfaces/workloadNetworks.ts +453 -462
- package/src/pagingHelper.ts +1 -1
- package/types/arm-avs.d.ts +2197 -1466
- package/types/tsdoc-metadata.json +1 -1
- package/rollup.config.js +0 -122
|
@@ -16,17 +16,17 @@ import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI";
|
|
|
16
16
|
import {
|
|
17
17
|
SimplePollerLike,
|
|
18
18
|
OperationState,
|
|
19
|
-
createHttpPoller
|
|
19
|
+
createHttpPoller,
|
|
20
20
|
} from "@azure/core-lro";
|
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
|
22
22
|
import {
|
|
23
23
|
PrivateCloud,
|
|
24
|
-
PrivateCloudsListNextOptionalParams,
|
|
25
|
-
PrivateCloudsListOptionalParams,
|
|
26
|
-
PrivateCloudsListResponse,
|
|
27
24
|
PrivateCloudsListInSubscriptionNextOptionalParams,
|
|
28
25
|
PrivateCloudsListInSubscriptionOptionalParams,
|
|
29
26
|
PrivateCloudsListInSubscriptionResponse,
|
|
27
|
+
PrivateCloudsListNextOptionalParams,
|
|
28
|
+
PrivateCloudsListOptionalParams,
|
|
29
|
+
PrivateCloudsListResponse,
|
|
30
30
|
PrivateCloudsGetOptionalParams,
|
|
31
31
|
PrivateCloudsGetResponse,
|
|
32
32
|
PrivateCloudsCreateOrUpdateOptionalParams,
|
|
@@ -35,12 +35,14 @@ import {
|
|
|
35
35
|
PrivateCloudsUpdateOptionalParams,
|
|
36
36
|
PrivateCloudsUpdateResponse,
|
|
37
37
|
PrivateCloudsDeleteOptionalParams,
|
|
38
|
-
PrivateCloudsRotateVcenterPasswordOptionalParams,
|
|
39
|
-
PrivateCloudsRotateNsxtPasswordOptionalParams,
|
|
40
38
|
PrivateCloudsListAdminCredentialsOptionalParams,
|
|
41
39
|
PrivateCloudsListAdminCredentialsResponse,
|
|
40
|
+
PrivateCloudsRotateNsxtPasswordOptionalParams,
|
|
41
|
+
PrivateCloudsRotateNsxtPasswordResponse,
|
|
42
|
+
PrivateCloudsRotateVcenterPasswordOptionalParams,
|
|
43
|
+
PrivateCloudsRotateVcenterPasswordResponse,
|
|
44
|
+
PrivateCloudsListInSubscriptionNextResponse,
|
|
42
45
|
PrivateCloudsListNextResponse,
|
|
43
|
-
PrivateCloudsListInSubscriptionNextResponse
|
|
44
46
|
} from "../models";
|
|
45
47
|
|
|
46
48
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -57,15 +59,13 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
/**
|
|
60
|
-
* List
|
|
61
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
62
|
+
* List PrivateCloud resources by subscription ID
|
|
62
63
|
* @param options The options parameters.
|
|
63
64
|
*/
|
|
64
|
-
public
|
|
65
|
-
|
|
66
|
-
options?: PrivateCloudsListOptionalParams
|
|
65
|
+
public listInSubscription(
|
|
66
|
+
options?: PrivateCloudsListInSubscriptionOptionalParams,
|
|
67
67
|
): PagedAsyncIterableIterator<PrivateCloud> {
|
|
68
|
-
const iter = this.
|
|
68
|
+
const iter = this.listInSubscriptionPagingAll(options);
|
|
69
69
|
return {
|
|
70
70
|
next() {
|
|
71
71
|
return iter.next();
|
|
@@ -77,31 +77,26 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
77
77
|
if (settings?.maxPageSize) {
|
|
78
78
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
79
79
|
}
|
|
80
|
-
return this.
|
|
81
|
-
}
|
|
80
|
+
return this.listInSubscriptionPagingPage(options, settings);
|
|
81
|
+
},
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
private async *
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
settings?: PageSettings
|
|
85
|
+
private async *listInSubscriptionPagingPage(
|
|
86
|
+
options?: PrivateCloudsListInSubscriptionOptionalParams,
|
|
87
|
+
settings?: PageSettings,
|
|
89
88
|
): AsyncIterableIterator<PrivateCloud[]> {
|
|
90
|
-
let result:
|
|
89
|
+
let result: PrivateCloudsListInSubscriptionResponse;
|
|
91
90
|
let continuationToken = settings?.continuationToken;
|
|
92
91
|
if (!continuationToken) {
|
|
93
|
-
result = await this.
|
|
92
|
+
result = await this._listInSubscription(options);
|
|
94
93
|
let page = result.value || [];
|
|
95
94
|
continuationToken = result.nextLink;
|
|
96
95
|
setContinuationToken(page, continuationToken);
|
|
97
96
|
yield page;
|
|
98
97
|
}
|
|
99
98
|
while (continuationToken) {
|
|
100
|
-
result = await this.
|
|
101
|
-
resourceGroupName,
|
|
102
|
-
continuationToken,
|
|
103
|
-
options
|
|
104
|
-
);
|
|
99
|
+
result = await this._listInSubscriptionNext(continuationToken, options);
|
|
105
100
|
continuationToken = result.nextLink;
|
|
106
101
|
let page = result.value || [];
|
|
107
102
|
setContinuationToken(page, continuationToken);
|
|
@@ -109,23 +104,24 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
109
104
|
}
|
|
110
105
|
}
|
|
111
106
|
|
|
112
|
-
private async *
|
|
113
|
-
|
|
114
|
-
options?: PrivateCloudsListOptionalParams
|
|
107
|
+
private async *listInSubscriptionPagingAll(
|
|
108
|
+
options?: PrivateCloudsListInSubscriptionOptionalParams,
|
|
115
109
|
): AsyncIterableIterator<PrivateCloud> {
|
|
116
|
-
for await (const page of this.
|
|
110
|
+
for await (const page of this.listInSubscriptionPagingPage(options)) {
|
|
117
111
|
yield* page;
|
|
118
112
|
}
|
|
119
113
|
}
|
|
120
114
|
|
|
121
115
|
/**
|
|
122
|
-
* List
|
|
116
|
+
* List PrivateCloud resources by resource group
|
|
117
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
123
118
|
* @param options The options parameters.
|
|
124
119
|
*/
|
|
125
|
-
public
|
|
126
|
-
|
|
120
|
+
public list(
|
|
121
|
+
resourceGroupName: string,
|
|
122
|
+
options?: PrivateCloudsListOptionalParams,
|
|
127
123
|
): PagedAsyncIterableIterator<PrivateCloud> {
|
|
128
|
-
const iter = this.
|
|
124
|
+
const iter = this.listPagingAll(resourceGroupName, options);
|
|
129
125
|
return {
|
|
130
126
|
next() {
|
|
131
127
|
return iter.next();
|
|
@@ -137,26 +133,31 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
137
133
|
if (settings?.maxPageSize) {
|
|
138
134
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
139
135
|
}
|
|
140
|
-
return this.
|
|
141
|
-
}
|
|
136
|
+
return this.listPagingPage(resourceGroupName, options, settings);
|
|
137
|
+
},
|
|
142
138
|
};
|
|
143
139
|
}
|
|
144
140
|
|
|
145
|
-
private async *
|
|
146
|
-
|
|
147
|
-
|
|
141
|
+
private async *listPagingPage(
|
|
142
|
+
resourceGroupName: string,
|
|
143
|
+
options?: PrivateCloudsListOptionalParams,
|
|
144
|
+
settings?: PageSettings,
|
|
148
145
|
): AsyncIterableIterator<PrivateCloud[]> {
|
|
149
|
-
let result:
|
|
146
|
+
let result: PrivateCloudsListResponse;
|
|
150
147
|
let continuationToken = settings?.continuationToken;
|
|
151
148
|
if (!continuationToken) {
|
|
152
|
-
result = await this.
|
|
149
|
+
result = await this._list(resourceGroupName, options);
|
|
153
150
|
let page = result.value || [];
|
|
154
151
|
continuationToken = result.nextLink;
|
|
155
152
|
setContinuationToken(page, continuationToken);
|
|
156
153
|
yield page;
|
|
157
154
|
}
|
|
158
155
|
while (continuationToken) {
|
|
159
|
-
result = await this.
|
|
156
|
+
result = await this._listNext(
|
|
157
|
+
resourceGroupName,
|
|
158
|
+
continuationToken,
|
|
159
|
+
options,
|
|
160
|
+
);
|
|
160
161
|
continuationToken = result.nextLink;
|
|
161
162
|
let page = result.value || [];
|
|
162
163
|
setContinuationToken(page, continuationToken);
|
|
@@ -164,44 +165,45 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
164
165
|
}
|
|
165
166
|
}
|
|
166
167
|
|
|
167
|
-
private async *
|
|
168
|
-
|
|
168
|
+
private async *listPagingAll(
|
|
169
|
+
resourceGroupName: string,
|
|
170
|
+
options?: PrivateCloudsListOptionalParams,
|
|
169
171
|
): AsyncIterableIterator<PrivateCloud> {
|
|
170
|
-
for await (const page of this.
|
|
172
|
+
for await (const page of this.listPagingPage(resourceGroupName, options)) {
|
|
171
173
|
yield* page;
|
|
172
174
|
}
|
|
173
175
|
}
|
|
174
176
|
|
|
175
177
|
/**
|
|
176
|
-
* List
|
|
177
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
178
|
+
* List PrivateCloud resources by subscription ID
|
|
178
179
|
* @param options The options parameters.
|
|
179
180
|
*/
|
|
180
|
-
private
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
): Promise<PrivateCloudsListResponse> {
|
|
181
|
+
private _listInSubscription(
|
|
182
|
+
options?: PrivateCloudsListInSubscriptionOptionalParams,
|
|
183
|
+
): Promise<PrivateCloudsListInSubscriptionResponse> {
|
|
184
184
|
return this.client.sendOperationRequest(
|
|
185
|
-
{
|
|
186
|
-
|
|
185
|
+
{ options },
|
|
186
|
+
listInSubscriptionOperationSpec,
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
|
-
* List
|
|
191
|
+
* List PrivateCloud resources by resource group
|
|
192
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
192
193
|
* @param options The options parameters.
|
|
193
194
|
*/
|
|
194
|
-
private
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
private _list(
|
|
196
|
+
resourceGroupName: string,
|
|
197
|
+
options?: PrivateCloudsListOptionalParams,
|
|
198
|
+
): Promise<PrivateCloudsListResponse> {
|
|
197
199
|
return this.client.sendOperationRequest(
|
|
198
|
-
{ options },
|
|
199
|
-
|
|
200
|
+
{ resourceGroupName, options },
|
|
201
|
+
listOperationSpec,
|
|
200
202
|
);
|
|
201
203
|
}
|
|
202
204
|
|
|
203
205
|
/**
|
|
204
|
-
* Get a
|
|
206
|
+
* Get a PrivateCloud
|
|
205
207
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
206
208
|
* @param privateCloudName Name of the private cloud
|
|
207
209
|
* @param options The options parameters.
|
|
@@ -209,26 +211,26 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
209
211
|
get(
|
|
210
212
|
resourceGroupName: string,
|
|
211
213
|
privateCloudName: string,
|
|
212
|
-
options?: PrivateCloudsGetOptionalParams
|
|
214
|
+
options?: PrivateCloudsGetOptionalParams,
|
|
213
215
|
): Promise<PrivateCloudsGetResponse> {
|
|
214
216
|
return this.client.sendOperationRequest(
|
|
215
217
|
{ resourceGroupName, privateCloudName, options },
|
|
216
|
-
getOperationSpec
|
|
218
|
+
getOperationSpec,
|
|
217
219
|
);
|
|
218
220
|
}
|
|
219
221
|
|
|
220
222
|
/**
|
|
221
|
-
* Create
|
|
223
|
+
* Create a PrivateCloud
|
|
222
224
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
223
225
|
* @param privateCloudName Name of the private cloud
|
|
224
|
-
* @param privateCloud
|
|
226
|
+
* @param privateCloud Resource create parameters.
|
|
225
227
|
* @param options The options parameters.
|
|
226
228
|
*/
|
|
227
229
|
async beginCreateOrUpdate(
|
|
228
230
|
resourceGroupName: string,
|
|
229
231
|
privateCloudName: string,
|
|
230
232
|
privateCloud: PrivateCloud,
|
|
231
|
-
options?: PrivateCloudsCreateOrUpdateOptionalParams
|
|
233
|
+
options?: PrivateCloudsCreateOrUpdateOptionalParams,
|
|
232
234
|
): Promise<
|
|
233
235
|
SimplePollerLike<
|
|
234
236
|
OperationState<PrivateCloudsCreateOrUpdateResponse>,
|
|
@@ -237,21 +239,20 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
237
239
|
> {
|
|
238
240
|
const directSendOperation = async (
|
|
239
241
|
args: coreClient.OperationArguments,
|
|
240
|
-
spec: coreClient.OperationSpec
|
|
242
|
+
spec: coreClient.OperationSpec,
|
|
241
243
|
): Promise<PrivateCloudsCreateOrUpdateResponse> => {
|
|
242
244
|
return this.client.sendOperationRequest(args, spec);
|
|
243
245
|
};
|
|
244
246
|
const sendOperationFn = async (
|
|
245
247
|
args: coreClient.OperationArguments,
|
|
246
|
-
spec: coreClient.OperationSpec
|
|
248
|
+
spec: coreClient.OperationSpec,
|
|
247
249
|
) => {
|
|
248
|
-
let currentRawResponse:
|
|
249
|
-
|
|
250
|
-
| undefined = undefined;
|
|
250
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
251
|
+
undefined;
|
|
251
252
|
const providedCallback = args.options?.onResponse;
|
|
252
253
|
const callback: coreClient.RawResponseCallback = (
|
|
253
254
|
rawResponse: coreClient.FullOperationResponse,
|
|
254
|
-
flatResponse: unknown
|
|
255
|
+
flatResponse: unknown,
|
|
255
256
|
) => {
|
|
256
257
|
currentRawResponse = rawResponse;
|
|
257
258
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -260,8 +261,8 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
260
261
|
...args,
|
|
261
262
|
options: {
|
|
262
263
|
...args.options,
|
|
263
|
-
onResponse: callback
|
|
264
|
-
}
|
|
264
|
+
onResponse: callback,
|
|
265
|
+
},
|
|
265
266
|
};
|
|
266
267
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
267
268
|
return {
|
|
@@ -269,61 +270,62 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
269
270
|
rawResponse: {
|
|
270
271
|
statusCode: currentRawResponse!.status,
|
|
271
272
|
body: currentRawResponse!.parsedBody,
|
|
272
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
273
|
-
}
|
|
273
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
274
|
+
},
|
|
274
275
|
};
|
|
275
276
|
};
|
|
276
277
|
|
|
277
278
|
const lro = createLroSpec({
|
|
278
279
|
sendOperationFn,
|
|
279
280
|
args: { resourceGroupName, privateCloudName, privateCloud, options },
|
|
280
|
-
spec: createOrUpdateOperationSpec
|
|
281
|
+
spec: createOrUpdateOperationSpec,
|
|
281
282
|
});
|
|
282
283
|
const poller = await createHttpPoller<
|
|
283
284
|
PrivateCloudsCreateOrUpdateResponse,
|
|
284
285
|
OperationState<PrivateCloudsCreateOrUpdateResponse>
|
|
285
286
|
>(lro, {
|
|
286
287
|
restoreFrom: options?.resumeFrom,
|
|
287
|
-
intervalInMs: options?.updateIntervalInMs
|
|
288
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
289
|
+
resourceLocationConfig: "azure-async-operation",
|
|
288
290
|
});
|
|
289
291
|
await poller.poll();
|
|
290
292
|
return poller;
|
|
291
293
|
}
|
|
292
294
|
|
|
293
295
|
/**
|
|
294
|
-
* Create
|
|
296
|
+
* Create a PrivateCloud
|
|
295
297
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
296
298
|
* @param privateCloudName Name of the private cloud
|
|
297
|
-
* @param privateCloud
|
|
299
|
+
* @param privateCloud Resource create parameters.
|
|
298
300
|
* @param options The options parameters.
|
|
299
301
|
*/
|
|
300
302
|
async beginCreateOrUpdateAndWait(
|
|
301
303
|
resourceGroupName: string,
|
|
302
304
|
privateCloudName: string,
|
|
303
305
|
privateCloud: PrivateCloud,
|
|
304
|
-
options?: PrivateCloudsCreateOrUpdateOptionalParams
|
|
306
|
+
options?: PrivateCloudsCreateOrUpdateOptionalParams,
|
|
305
307
|
): Promise<PrivateCloudsCreateOrUpdateResponse> {
|
|
306
308
|
const poller = await this.beginCreateOrUpdate(
|
|
307
309
|
resourceGroupName,
|
|
308
310
|
privateCloudName,
|
|
309
311
|
privateCloud,
|
|
310
|
-
options
|
|
312
|
+
options,
|
|
311
313
|
);
|
|
312
314
|
return poller.pollUntilDone();
|
|
313
315
|
}
|
|
314
316
|
|
|
315
317
|
/**
|
|
316
|
-
* Update a
|
|
318
|
+
* Update a PrivateCloud
|
|
317
319
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
318
320
|
* @param privateCloudName Name of the private cloud
|
|
319
|
-
* @param privateCloudUpdate The private cloud properties to be updated
|
|
321
|
+
* @param privateCloudUpdate The private cloud properties to be updated.
|
|
320
322
|
* @param options The options parameters.
|
|
321
323
|
*/
|
|
322
324
|
async beginUpdate(
|
|
323
325
|
resourceGroupName: string,
|
|
324
326
|
privateCloudName: string,
|
|
325
327
|
privateCloudUpdate: PrivateCloudUpdate,
|
|
326
|
-
options?: PrivateCloudsUpdateOptionalParams
|
|
328
|
+
options?: PrivateCloudsUpdateOptionalParams,
|
|
327
329
|
): Promise<
|
|
328
330
|
SimplePollerLike<
|
|
329
331
|
OperationState<PrivateCloudsUpdateResponse>,
|
|
@@ -332,21 +334,20 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
332
334
|
> {
|
|
333
335
|
const directSendOperation = async (
|
|
334
336
|
args: coreClient.OperationArguments,
|
|
335
|
-
spec: coreClient.OperationSpec
|
|
337
|
+
spec: coreClient.OperationSpec,
|
|
336
338
|
): Promise<PrivateCloudsUpdateResponse> => {
|
|
337
339
|
return this.client.sendOperationRequest(args, spec);
|
|
338
340
|
};
|
|
339
341
|
const sendOperationFn = async (
|
|
340
342
|
args: coreClient.OperationArguments,
|
|
341
|
-
spec: coreClient.OperationSpec
|
|
343
|
+
spec: coreClient.OperationSpec,
|
|
342
344
|
) => {
|
|
343
|
-
let currentRawResponse:
|
|
344
|
-
|
|
345
|
-
| undefined = undefined;
|
|
345
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
346
|
+
undefined;
|
|
346
347
|
const providedCallback = args.options?.onResponse;
|
|
347
348
|
const callback: coreClient.RawResponseCallback = (
|
|
348
349
|
rawResponse: coreClient.FullOperationResponse,
|
|
349
|
-
flatResponse: unknown
|
|
350
|
+
flatResponse: unknown,
|
|
350
351
|
) => {
|
|
351
352
|
currentRawResponse = rawResponse;
|
|
352
353
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -355,8 +356,8 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
355
356
|
...args,
|
|
356
357
|
options: {
|
|
357
358
|
...args.options,
|
|
358
|
-
onResponse: callback
|
|
359
|
-
}
|
|
359
|
+
onResponse: callback,
|
|
360
|
+
},
|
|
360
361
|
};
|
|
361
362
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
362
363
|
return {
|
|
@@ -364,8 +365,8 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
364
365
|
rawResponse: {
|
|
365
366
|
statusCode: currentRawResponse!.status,
|
|
366
367
|
body: currentRawResponse!.parsedBody,
|
|
367
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
368
|
-
}
|
|
368
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
369
|
+
},
|
|
369
370
|
};
|
|
370
371
|
};
|
|
371
372
|
|
|
@@ -375,45 +376,46 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
375
376
|
resourceGroupName,
|
|
376
377
|
privateCloudName,
|
|
377
378
|
privateCloudUpdate,
|
|
378
|
-
options
|
|
379
|
+
options,
|
|
379
380
|
},
|
|
380
|
-
spec: updateOperationSpec
|
|
381
|
+
spec: updateOperationSpec,
|
|
381
382
|
});
|
|
382
383
|
const poller = await createHttpPoller<
|
|
383
384
|
PrivateCloudsUpdateResponse,
|
|
384
385
|
OperationState<PrivateCloudsUpdateResponse>
|
|
385
386
|
>(lro, {
|
|
386
387
|
restoreFrom: options?.resumeFrom,
|
|
387
|
-
intervalInMs: options?.updateIntervalInMs
|
|
388
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
389
|
+
resourceLocationConfig: "location",
|
|
388
390
|
});
|
|
389
391
|
await poller.poll();
|
|
390
392
|
return poller;
|
|
391
393
|
}
|
|
392
394
|
|
|
393
395
|
/**
|
|
394
|
-
* Update a
|
|
396
|
+
* Update a PrivateCloud
|
|
395
397
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
396
398
|
* @param privateCloudName Name of the private cloud
|
|
397
|
-
* @param privateCloudUpdate The private cloud properties to be updated
|
|
399
|
+
* @param privateCloudUpdate The private cloud properties to be updated.
|
|
398
400
|
* @param options The options parameters.
|
|
399
401
|
*/
|
|
400
402
|
async beginUpdateAndWait(
|
|
401
403
|
resourceGroupName: string,
|
|
402
404
|
privateCloudName: string,
|
|
403
405
|
privateCloudUpdate: PrivateCloudUpdate,
|
|
404
|
-
options?: PrivateCloudsUpdateOptionalParams
|
|
406
|
+
options?: PrivateCloudsUpdateOptionalParams,
|
|
405
407
|
): Promise<PrivateCloudsUpdateResponse> {
|
|
406
408
|
const poller = await this.beginUpdate(
|
|
407
409
|
resourceGroupName,
|
|
408
410
|
privateCloudName,
|
|
409
411
|
privateCloudUpdate,
|
|
410
|
-
options
|
|
412
|
+
options,
|
|
411
413
|
);
|
|
412
414
|
return poller.pollUntilDone();
|
|
413
415
|
}
|
|
414
416
|
|
|
415
417
|
/**
|
|
416
|
-
* Delete a
|
|
418
|
+
* Delete a PrivateCloud
|
|
417
419
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
418
420
|
* @param privateCloudName Name of the private cloud
|
|
419
421
|
* @param options The options parameters.
|
|
@@ -421,25 +423,24 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
421
423
|
async beginDelete(
|
|
422
424
|
resourceGroupName: string,
|
|
423
425
|
privateCloudName: string,
|
|
424
|
-
options?: PrivateCloudsDeleteOptionalParams
|
|
426
|
+
options?: PrivateCloudsDeleteOptionalParams,
|
|
425
427
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
426
428
|
const directSendOperation = async (
|
|
427
429
|
args: coreClient.OperationArguments,
|
|
428
|
-
spec: coreClient.OperationSpec
|
|
430
|
+
spec: coreClient.OperationSpec,
|
|
429
431
|
): Promise<void> => {
|
|
430
432
|
return this.client.sendOperationRequest(args, spec);
|
|
431
433
|
};
|
|
432
434
|
const sendOperationFn = async (
|
|
433
435
|
args: coreClient.OperationArguments,
|
|
434
|
-
spec: coreClient.OperationSpec
|
|
436
|
+
spec: coreClient.OperationSpec,
|
|
435
437
|
) => {
|
|
436
|
-
let currentRawResponse:
|
|
437
|
-
|
|
438
|
-
| undefined = undefined;
|
|
438
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
439
|
+
undefined;
|
|
439
440
|
const providedCallback = args.options?.onResponse;
|
|
440
441
|
const callback: coreClient.RawResponseCallback = (
|
|
441
442
|
rawResponse: coreClient.FullOperationResponse,
|
|
442
|
-
flatResponse: unknown
|
|
443
|
+
flatResponse: unknown,
|
|
443
444
|
) => {
|
|
444
445
|
currentRawResponse = rawResponse;
|
|
445
446
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -448,8 +449,8 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
448
449
|
...args,
|
|
449
450
|
options: {
|
|
450
451
|
...args.options,
|
|
451
|
-
onResponse: callback
|
|
452
|
-
}
|
|
452
|
+
onResponse: callback,
|
|
453
|
+
},
|
|
453
454
|
};
|
|
454
455
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
455
456
|
return {
|
|
@@ -457,26 +458,27 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
457
458
|
rawResponse: {
|
|
458
459
|
statusCode: currentRawResponse!.status,
|
|
459
460
|
body: currentRawResponse!.parsedBody,
|
|
460
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
461
|
-
}
|
|
461
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
462
|
+
},
|
|
462
463
|
};
|
|
463
464
|
};
|
|
464
465
|
|
|
465
466
|
const lro = createLroSpec({
|
|
466
467
|
sendOperationFn,
|
|
467
468
|
args: { resourceGroupName, privateCloudName, options },
|
|
468
|
-
spec: deleteOperationSpec
|
|
469
|
+
spec: deleteOperationSpec,
|
|
469
470
|
});
|
|
470
471
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
471
472
|
restoreFrom: options?.resumeFrom,
|
|
472
|
-
intervalInMs: options?.updateIntervalInMs
|
|
473
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
474
|
+
resourceLocationConfig: "location",
|
|
473
475
|
});
|
|
474
476
|
await poller.poll();
|
|
475
477
|
return poller;
|
|
476
478
|
}
|
|
477
479
|
|
|
478
480
|
/**
|
|
479
|
-
* Delete a
|
|
481
|
+
* Delete a PrivateCloud
|
|
480
482
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
481
483
|
* @param privateCloudName Name of the private cloud
|
|
482
484
|
* @param options The options parameters.
|
|
@@ -484,44 +486,65 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
484
486
|
async beginDeleteAndWait(
|
|
485
487
|
resourceGroupName: string,
|
|
486
488
|
privateCloudName: string,
|
|
487
|
-
options?: PrivateCloudsDeleteOptionalParams
|
|
489
|
+
options?: PrivateCloudsDeleteOptionalParams,
|
|
488
490
|
): Promise<void> {
|
|
489
491
|
const poller = await this.beginDelete(
|
|
490
492
|
resourceGroupName,
|
|
491
493
|
privateCloudName,
|
|
492
|
-
options
|
|
494
|
+
options,
|
|
493
495
|
);
|
|
494
496
|
return poller.pollUntilDone();
|
|
495
497
|
}
|
|
496
498
|
|
|
497
499
|
/**
|
|
498
|
-
*
|
|
500
|
+
* List the admin credentials for the private cloud
|
|
499
501
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
500
502
|
* @param privateCloudName Name of the private cloud
|
|
501
503
|
* @param options The options parameters.
|
|
502
504
|
*/
|
|
503
|
-
|
|
505
|
+
listAdminCredentials(
|
|
504
506
|
resourceGroupName: string,
|
|
505
507
|
privateCloudName: string,
|
|
506
|
-
options?:
|
|
507
|
-
): Promise<
|
|
508
|
+
options?: PrivateCloudsListAdminCredentialsOptionalParams,
|
|
509
|
+
): Promise<PrivateCloudsListAdminCredentialsResponse> {
|
|
510
|
+
return this.client.sendOperationRequest(
|
|
511
|
+
{ resourceGroupName, privateCloudName, options },
|
|
512
|
+
listAdminCredentialsOperationSpec,
|
|
513
|
+
);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Rotate the NSX-T Manager password
|
|
518
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
519
|
+
* @param privateCloudName Name of the private cloud
|
|
520
|
+
* @param options The options parameters.
|
|
521
|
+
*/
|
|
522
|
+
async beginRotateNsxtPassword(
|
|
523
|
+
resourceGroupName: string,
|
|
524
|
+
privateCloudName: string,
|
|
525
|
+
options?: PrivateCloudsRotateNsxtPasswordOptionalParams,
|
|
526
|
+
): Promise<
|
|
527
|
+
SimplePollerLike<
|
|
528
|
+
OperationState<PrivateCloudsRotateNsxtPasswordResponse>,
|
|
529
|
+
PrivateCloudsRotateNsxtPasswordResponse
|
|
530
|
+
>
|
|
531
|
+
> {
|
|
508
532
|
const directSendOperation = async (
|
|
509
533
|
args: coreClient.OperationArguments,
|
|
510
|
-
spec: coreClient.OperationSpec
|
|
511
|
-
): Promise<
|
|
534
|
+
spec: coreClient.OperationSpec,
|
|
535
|
+
): Promise<PrivateCloudsRotateNsxtPasswordResponse> => {
|
|
512
536
|
return this.client.sendOperationRequest(args, spec);
|
|
513
537
|
};
|
|
514
538
|
const sendOperationFn = async (
|
|
515
539
|
args: coreClient.OperationArguments,
|
|
516
|
-
spec: coreClient.OperationSpec
|
|
540
|
+
spec: coreClient.OperationSpec,
|
|
517
541
|
) => {
|
|
518
|
-
let currentRawResponse:
|
|
519
|
-
|
|
520
|
-
| undefined = undefined;
|
|
542
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
543
|
+
undefined;
|
|
521
544
|
const providedCallback = args.options?.onResponse;
|
|
522
545
|
const callback: coreClient.RawResponseCallback = (
|
|
523
546
|
rawResponse: coreClient.FullOperationResponse,
|
|
524
|
-
flatResponse: unknown
|
|
547
|
+
flatResponse: unknown,
|
|
525
548
|
) => {
|
|
526
549
|
currentRawResponse = rawResponse;
|
|
527
550
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -530,8 +553,8 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
530
553
|
...args,
|
|
531
554
|
options: {
|
|
532
555
|
...args.options,
|
|
533
|
-
onResponse: callback
|
|
534
|
-
}
|
|
556
|
+
onResponse: callback,
|
|
557
|
+
},
|
|
535
558
|
};
|
|
536
559
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
537
560
|
return {
|
|
@@ -539,71 +562,79 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
539
562
|
rawResponse: {
|
|
540
563
|
statusCode: currentRawResponse!.status,
|
|
541
564
|
body: currentRawResponse!.parsedBody,
|
|
542
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
543
|
-
}
|
|
565
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
566
|
+
},
|
|
544
567
|
};
|
|
545
568
|
};
|
|
546
569
|
|
|
547
570
|
const lro = createLroSpec({
|
|
548
571
|
sendOperationFn,
|
|
549
572
|
args: { resourceGroupName, privateCloudName, options },
|
|
550
|
-
spec:
|
|
573
|
+
spec: rotateNsxtPasswordOperationSpec,
|
|
551
574
|
});
|
|
552
|
-
const poller = await createHttpPoller<
|
|
575
|
+
const poller = await createHttpPoller<
|
|
576
|
+
PrivateCloudsRotateNsxtPasswordResponse,
|
|
577
|
+
OperationState<PrivateCloudsRotateNsxtPasswordResponse>
|
|
578
|
+
>(lro, {
|
|
553
579
|
restoreFrom: options?.resumeFrom,
|
|
554
|
-
intervalInMs: options?.updateIntervalInMs
|
|
580
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
581
|
+
resourceLocationConfig: "location",
|
|
555
582
|
});
|
|
556
583
|
await poller.poll();
|
|
557
584
|
return poller;
|
|
558
585
|
}
|
|
559
586
|
|
|
560
587
|
/**
|
|
561
|
-
* Rotate the
|
|
588
|
+
* Rotate the NSX-T Manager password
|
|
562
589
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
563
590
|
* @param privateCloudName Name of the private cloud
|
|
564
591
|
* @param options The options parameters.
|
|
565
592
|
*/
|
|
566
|
-
async
|
|
593
|
+
async beginRotateNsxtPasswordAndWait(
|
|
567
594
|
resourceGroupName: string,
|
|
568
595
|
privateCloudName: string,
|
|
569
|
-
options?:
|
|
570
|
-
): Promise<
|
|
571
|
-
const poller = await this.
|
|
596
|
+
options?: PrivateCloudsRotateNsxtPasswordOptionalParams,
|
|
597
|
+
): Promise<PrivateCloudsRotateNsxtPasswordResponse> {
|
|
598
|
+
const poller = await this.beginRotateNsxtPassword(
|
|
572
599
|
resourceGroupName,
|
|
573
600
|
privateCloudName,
|
|
574
|
-
options
|
|
601
|
+
options,
|
|
575
602
|
);
|
|
576
603
|
return poller.pollUntilDone();
|
|
577
604
|
}
|
|
578
605
|
|
|
579
606
|
/**
|
|
580
|
-
* Rotate the
|
|
607
|
+
* Rotate the vCenter password
|
|
581
608
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
582
609
|
* @param privateCloudName Name of the private cloud
|
|
583
610
|
* @param options The options parameters.
|
|
584
611
|
*/
|
|
585
|
-
async
|
|
612
|
+
async beginRotateVcenterPassword(
|
|
586
613
|
resourceGroupName: string,
|
|
587
614
|
privateCloudName: string,
|
|
588
|
-
options?:
|
|
589
|
-
): Promise<
|
|
615
|
+
options?: PrivateCloudsRotateVcenterPasswordOptionalParams,
|
|
616
|
+
): Promise<
|
|
617
|
+
SimplePollerLike<
|
|
618
|
+
OperationState<PrivateCloudsRotateVcenterPasswordResponse>,
|
|
619
|
+
PrivateCloudsRotateVcenterPasswordResponse
|
|
620
|
+
>
|
|
621
|
+
> {
|
|
590
622
|
const directSendOperation = async (
|
|
591
623
|
args: coreClient.OperationArguments,
|
|
592
|
-
spec: coreClient.OperationSpec
|
|
593
|
-
): Promise<
|
|
624
|
+
spec: coreClient.OperationSpec,
|
|
625
|
+
): Promise<PrivateCloudsRotateVcenterPasswordResponse> => {
|
|
594
626
|
return this.client.sendOperationRequest(args, spec);
|
|
595
627
|
};
|
|
596
628
|
const sendOperationFn = async (
|
|
597
629
|
args: coreClient.OperationArguments,
|
|
598
|
-
spec: coreClient.OperationSpec
|
|
630
|
+
spec: coreClient.OperationSpec,
|
|
599
631
|
) => {
|
|
600
|
-
let currentRawResponse:
|
|
601
|
-
|
|
602
|
-
| undefined = undefined;
|
|
632
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
633
|
+
undefined;
|
|
603
634
|
const providedCallback = args.options?.onResponse;
|
|
604
635
|
const callback: coreClient.RawResponseCallback = (
|
|
605
636
|
rawResponse: coreClient.FullOperationResponse,
|
|
606
|
-
flatResponse: unknown
|
|
637
|
+
flatResponse: unknown,
|
|
607
638
|
) => {
|
|
608
639
|
currentRawResponse = rawResponse;
|
|
609
640
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -612,8 +643,8 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
612
643
|
...args,
|
|
613
644
|
options: {
|
|
614
645
|
...args.options,
|
|
615
|
-
onResponse: callback
|
|
616
|
-
}
|
|
646
|
+
onResponse: callback,
|
|
647
|
+
},
|
|
617
648
|
};
|
|
618
649
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
619
650
|
return {
|
|
@@ -621,57 +652,59 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
621
652
|
rawResponse: {
|
|
622
653
|
statusCode: currentRawResponse!.status,
|
|
623
654
|
body: currentRawResponse!.parsedBody,
|
|
624
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
625
|
-
}
|
|
655
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
656
|
+
},
|
|
626
657
|
};
|
|
627
658
|
};
|
|
628
659
|
|
|
629
660
|
const lro = createLroSpec({
|
|
630
661
|
sendOperationFn,
|
|
631
662
|
args: { resourceGroupName, privateCloudName, options },
|
|
632
|
-
spec:
|
|
663
|
+
spec: rotateVcenterPasswordOperationSpec,
|
|
633
664
|
});
|
|
634
|
-
const poller = await createHttpPoller<
|
|
665
|
+
const poller = await createHttpPoller<
|
|
666
|
+
PrivateCloudsRotateVcenterPasswordResponse,
|
|
667
|
+
OperationState<PrivateCloudsRotateVcenterPasswordResponse>
|
|
668
|
+
>(lro, {
|
|
635
669
|
restoreFrom: options?.resumeFrom,
|
|
636
|
-
intervalInMs: options?.updateIntervalInMs
|
|
670
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
671
|
+
resourceLocationConfig: "location",
|
|
637
672
|
});
|
|
638
673
|
await poller.poll();
|
|
639
674
|
return poller;
|
|
640
675
|
}
|
|
641
676
|
|
|
642
677
|
/**
|
|
643
|
-
* Rotate the
|
|
678
|
+
* Rotate the vCenter password
|
|
644
679
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
645
680
|
* @param privateCloudName Name of the private cloud
|
|
646
681
|
* @param options The options parameters.
|
|
647
682
|
*/
|
|
648
|
-
async
|
|
683
|
+
async beginRotateVcenterPasswordAndWait(
|
|
649
684
|
resourceGroupName: string,
|
|
650
685
|
privateCloudName: string,
|
|
651
|
-
options?:
|
|
652
|
-
): Promise<
|
|
653
|
-
const poller = await this.
|
|
686
|
+
options?: PrivateCloudsRotateVcenterPasswordOptionalParams,
|
|
687
|
+
): Promise<PrivateCloudsRotateVcenterPasswordResponse> {
|
|
688
|
+
const poller = await this.beginRotateVcenterPassword(
|
|
654
689
|
resourceGroupName,
|
|
655
690
|
privateCloudName,
|
|
656
|
-
options
|
|
691
|
+
options,
|
|
657
692
|
);
|
|
658
693
|
return poller.pollUntilDone();
|
|
659
694
|
}
|
|
660
695
|
|
|
661
696
|
/**
|
|
662
|
-
*
|
|
663
|
-
* @param
|
|
664
|
-
* @param privateCloudName Name of the private cloud
|
|
697
|
+
* ListInSubscriptionNext
|
|
698
|
+
* @param nextLink The nextLink from the previous successful call to the ListInSubscription method.
|
|
665
699
|
* @param options The options parameters.
|
|
666
700
|
*/
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
): Promise<PrivateCloudsListAdminCredentialsResponse> {
|
|
701
|
+
private _listInSubscriptionNext(
|
|
702
|
+
nextLink: string,
|
|
703
|
+
options?: PrivateCloudsListInSubscriptionNextOptionalParams,
|
|
704
|
+
): Promise<PrivateCloudsListInSubscriptionNextResponse> {
|
|
672
705
|
return this.client.sendOperationRequest(
|
|
673
|
-
{
|
|
674
|
-
|
|
706
|
+
{ nextLink, options },
|
|
707
|
+
listInSubscriptionNextOperationSpec,
|
|
675
708
|
);
|
|
676
709
|
}
|
|
677
710
|
|
|
@@ -684,111 +717,93 @@ export class PrivateCloudsImpl implements PrivateClouds {
|
|
|
684
717
|
private _listNext(
|
|
685
718
|
resourceGroupName: string,
|
|
686
719
|
nextLink: string,
|
|
687
|
-
options?: PrivateCloudsListNextOptionalParams
|
|
720
|
+
options?: PrivateCloudsListNextOptionalParams,
|
|
688
721
|
): Promise<PrivateCloudsListNextResponse> {
|
|
689
722
|
return this.client.sendOperationRequest(
|
|
690
723
|
{ resourceGroupName, nextLink, options },
|
|
691
|
-
listNextOperationSpec
|
|
692
|
-
);
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
* ListInSubscriptionNext
|
|
697
|
-
* @param nextLink The nextLink from the previous successful call to the ListInSubscription method.
|
|
698
|
-
* @param options The options parameters.
|
|
699
|
-
*/
|
|
700
|
-
private _listInSubscriptionNext(
|
|
701
|
-
nextLink: string,
|
|
702
|
-
options?: PrivateCloudsListInSubscriptionNextOptionalParams
|
|
703
|
-
): Promise<PrivateCloudsListInSubscriptionNextResponse> {
|
|
704
|
-
return this.client.sendOperationRequest(
|
|
705
|
-
{ nextLink, options },
|
|
706
|
-
listInSubscriptionNextOperationSpec
|
|
724
|
+
listNextOperationSpec,
|
|
707
725
|
);
|
|
708
726
|
}
|
|
709
727
|
}
|
|
710
728
|
// Operation Specifications
|
|
711
729
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
712
730
|
|
|
713
|
-
const
|
|
714
|
-
path:
|
|
715
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds",
|
|
731
|
+
const listInSubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
732
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AVS/privateClouds",
|
|
716
733
|
httpMethod: "GET",
|
|
717
734
|
responses: {
|
|
718
735
|
200: {
|
|
719
|
-
bodyMapper: Mappers.
|
|
736
|
+
bodyMapper: Mappers.PrivateCloudListResult,
|
|
720
737
|
},
|
|
721
738
|
default: {
|
|
722
|
-
bodyMapper: Mappers.ErrorResponse
|
|
723
|
-
}
|
|
739
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
740
|
+
},
|
|
724
741
|
},
|
|
725
742
|
queryParameters: [Parameters.apiVersion],
|
|
726
|
-
urlParameters: [
|
|
727
|
-
Parameters.$host,
|
|
728
|
-
Parameters.subscriptionId,
|
|
729
|
-
Parameters.resourceGroupName
|
|
730
|
-
],
|
|
743
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
731
744
|
headerParameters: [Parameters.accept],
|
|
732
|
-
serializer
|
|
745
|
+
serializer,
|
|
733
746
|
};
|
|
734
|
-
const
|
|
735
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AVS/privateClouds",
|
|
747
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
748
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds",
|
|
736
749
|
httpMethod: "GET",
|
|
737
750
|
responses: {
|
|
738
751
|
200: {
|
|
739
|
-
bodyMapper: Mappers.
|
|
752
|
+
bodyMapper: Mappers.PrivateCloudListResult,
|
|
740
753
|
},
|
|
741
754
|
default: {
|
|
742
|
-
bodyMapper: Mappers.ErrorResponse
|
|
743
|
-
}
|
|
755
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
756
|
+
},
|
|
744
757
|
},
|
|
745
758
|
queryParameters: [Parameters.apiVersion],
|
|
746
|
-
urlParameters: [
|
|
759
|
+
urlParameters: [
|
|
760
|
+
Parameters.$host,
|
|
761
|
+
Parameters.subscriptionId,
|
|
762
|
+
Parameters.resourceGroupName,
|
|
763
|
+
],
|
|
747
764
|
headerParameters: [Parameters.accept],
|
|
748
|
-
serializer
|
|
765
|
+
serializer,
|
|
749
766
|
};
|
|
750
767
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
751
|
-
path:
|
|
752
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}",
|
|
768
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}",
|
|
753
769
|
httpMethod: "GET",
|
|
754
770
|
responses: {
|
|
755
771
|
200: {
|
|
756
|
-
bodyMapper: Mappers.PrivateCloud
|
|
772
|
+
bodyMapper: Mappers.PrivateCloud,
|
|
757
773
|
},
|
|
758
774
|
default: {
|
|
759
|
-
bodyMapper: Mappers.ErrorResponse
|
|
760
|
-
}
|
|
775
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
776
|
+
},
|
|
761
777
|
},
|
|
762
778
|
queryParameters: [Parameters.apiVersion],
|
|
763
779
|
urlParameters: [
|
|
764
780
|
Parameters.$host,
|
|
765
781
|
Parameters.subscriptionId,
|
|
766
782
|
Parameters.resourceGroupName,
|
|
767
|
-
Parameters.privateCloudName
|
|
783
|
+
Parameters.privateCloudName,
|
|
768
784
|
],
|
|
769
785
|
headerParameters: [Parameters.accept],
|
|
770
|
-
serializer
|
|
786
|
+
serializer,
|
|
771
787
|
};
|
|
772
788
|
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
773
|
-
path:
|
|
774
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}",
|
|
789
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}",
|
|
775
790
|
httpMethod: "PUT",
|
|
776
791
|
responses: {
|
|
777
792
|
200: {
|
|
778
|
-
bodyMapper: Mappers.PrivateCloud
|
|
793
|
+
bodyMapper: Mappers.PrivateCloud,
|
|
779
794
|
},
|
|
780
795
|
201: {
|
|
781
|
-
bodyMapper: Mappers.PrivateCloud
|
|
796
|
+
bodyMapper: Mappers.PrivateCloud,
|
|
782
797
|
},
|
|
783
798
|
202: {
|
|
784
|
-
bodyMapper: Mappers.PrivateCloud
|
|
799
|
+
bodyMapper: Mappers.PrivateCloud,
|
|
785
800
|
},
|
|
786
801
|
204: {
|
|
787
|
-
bodyMapper: Mappers.PrivateCloud
|
|
802
|
+
bodyMapper: Mappers.PrivateCloud,
|
|
788
803
|
},
|
|
789
804
|
default: {
|
|
790
|
-
bodyMapper: Mappers.ErrorResponse
|
|
791
|
-
}
|
|
805
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
806
|
+
},
|
|
792
807
|
},
|
|
793
808
|
requestBody: Parameters.privateCloud,
|
|
794
809
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -796,32 +811,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
|
796
811
|
Parameters.$host,
|
|
797
812
|
Parameters.subscriptionId,
|
|
798
813
|
Parameters.resourceGroupName,
|
|
799
|
-
Parameters.privateCloudName
|
|
814
|
+
Parameters.privateCloudName,
|
|
800
815
|
],
|
|
801
816
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
802
817
|
mediaType: "json",
|
|
803
|
-
serializer
|
|
818
|
+
serializer,
|
|
804
819
|
};
|
|
805
820
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
806
|
-
path:
|
|
807
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}",
|
|
821
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}",
|
|
808
822
|
httpMethod: "PATCH",
|
|
809
823
|
responses: {
|
|
810
824
|
200: {
|
|
811
|
-
bodyMapper: Mappers.PrivateCloud
|
|
825
|
+
bodyMapper: Mappers.PrivateCloud,
|
|
812
826
|
},
|
|
813
827
|
201: {
|
|
814
|
-
bodyMapper: Mappers.PrivateCloud
|
|
828
|
+
bodyMapper: Mappers.PrivateCloud,
|
|
815
829
|
},
|
|
816
830
|
202: {
|
|
817
|
-
bodyMapper: Mappers.PrivateCloud
|
|
831
|
+
bodyMapper: Mappers.PrivateCloud,
|
|
818
832
|
},
|
|
819
833
|
204: {
|
|
820
|
-
bodyMapper: Mappers.PrivateCloud
|
|
834
|
+
bodyMapper: Mappers.PrivateCloud,
|
|
821
835
|
},
|
|
822
836
|
default: {
|
|
823
|
-
bodyMapper: Mappers.ErrorResponse
|
|
824
|
-
}
|
|
837
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
838
|
+
},
|
|
825
839
|
},
|
|
826
840
|
requestBody: Parameters.privateCloudUpdate,
|
|
827
841
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -829,15 +843,14 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
829
843
|
Parameters.$host,
|
|
830
844
|
Parameters.subscriptionId,
|
|
831
845
|
Parameters.resourceGroupName,
|
|
832
|
-
Parameters.privateCloudName
|
|
846
|
+
Parameters.privateCloudName,
|
|
833
847
|
],
|
|
834
848
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
835
849
|
mediaType: "json",
|
|
836
|
-
serializer
|
|
850
|
+
serializer,
|
|
837
851
|
};
|
|
838
852
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
839
|
-
path:
|
|
840
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}",
|
|
853
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}",
|
|
841
854
|
httpMethod: "DELETE",
|
|
842
855
|
responses: {
|
|
843
856
|
200: {},
|
|
@@ -845,123 +858,136 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
845
858
|
202: {},
|
|
846
859
|
204: {},
|
|
847
860
|
default: {
|
|
848
|
-
bodyMapper: Mappers.ErrorResponse
|
|
849
|
-
}
|
|
861
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
862
|
+
},
|
|
850
863
|
},
|
|
851
864
|
queryParameters: [Parameters.apiVersion],
|
|
852
865
|
urlParameters: [
|
|
853
866
|
Parameters.$host,
|
|
854
867
|
Parameters.subscriptionId,
|
|
855
868
|
Parameters.resourceGroupName,
|
|
856
|
-
Parameters.privateCloudName
|
|
869
|
+
Parameters.privateCloudName,
|
|
857
870
|
],
|
|
858
871
|
headerParameters: [Parameters.accept],
|
|
859
|
-
serializer
|
|
872
|
+
serializer,
|
|
860
873
|
};
|
|
861
|
-
const
|
|
862
|
-
path:
|
|
863
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword",
|
|
874
|
+
const listAdminCredentialsOperationSpec: coreClient.OperationSpec = {
|
|
875
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials",
|
|
864
876
|
httpMethod: "POST",
|
|
865
877
|
responses: {
|
|
866
|
-
200: {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
204: {},
|
|
878
|
+
200: {
|
|
879
|
+
bodyMapper: Mappers.AdminCredentials,
|
|
880
|
+
},
|
|
870
881
|
default: {
|
|
871
|
-
bodyMapper: Mappers.ErrorResponse
|
|
872
|
-
}
|
|
882
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
883
|
+
},
|
|
873
884
|
},
|
|
874
885
|
queryParameters: [Parameters.apiVersion],
|
|
875
886
|
urlParameters: [
|
|
876
887
|
Parameters.$host,
|
|
877
888
|
Parameters.subscriptionId,
|
|
878
889
|
Parameters.resourceGroupName,
|
|
879
|
-
Parameters.privateCloudName
|
|
890
|
+
Parameters.privateCloudName,
|
|
880
891
|
],
|
|
881
892
|
headerParameters: [Parameters.accept],
|
|
882
|
-
serializer
|
|
893
|
+
serializer,
|
|
883
894
|
};
|
|
884
895
|
const rotateNsxtPasswordOperationSpec: coreClient.OperationSpec = {
|
|
885
|
-
path:
|
|
886
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateNsxtPassword",
|
|
896
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateNsxtPassword",
|
|
887
897
|
httpMethod: "POST",
|
|
888
898
|
responses: {
|
|
889
|
-
200: {
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
899
|
+
200: {
|
|
900
|
+
headersMapper: Mappers.PrivateCloudsRotateNsxtPasswordHeaders,
|
|
901
|
+
},
|
|
902
|
+
201: {
|
|
903
|
+
headersMapper: Mappers.PrivateCloudsRotateNsxtPasswordHeaders,
|
|
904
|
+
},
|
|
905
|
+
202: {
|
|
906
|
+
headersMapper: Mappers.PrivateCloudsRotateNsxtPasswordHeaders,
|
|
907
|
+
},
|
|
908
|
+
204: {
|
|
909
|
+
headersMapper: Mappers.PrivateCloudsRotateNsxtPasswordHeaders,
|
|
910
|
+
},
|
|
893
911
|
default: {
|
|
894
|
-
bodyMapper: Mappers.ErrorResponse
|
|
895
|
-
}
|
|
912
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
913
|
+
},
|
|
896
914
|
},
|
|
897
915
|
queryParameters: [Parameters.apiVersion],
|
|
898
916
|
urlParameters: [
|
|
899
917
|
Parameters.$host,
|
|
900
918
|
Parameters.subscriptionId,
|
|
901
919
|
Parameters.resourceGroupName,
|
|
902
|
-
Parameters.privateCloudName
|
|
920
|
+
Parameters.privateCloudName,
|
|
903
921
|
],
|
|
904
922
|
headerParameters: [Parameters.accept],
|
|
905
|
-
serializer
|
|
923
|
+
serializer,
|
|
906
924
|
};
|
|
907
|
-
const
|
|
908
|
-
path:
|
|
909
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials",
|
|
925
|
+
const rotateVcenterPasswordOperationSpec: coreClient.OperationSpec = {
|
|
926
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword",
|
|
910
927
|
httpMethod: "POST",
|
|
911
928
|
responses: {
|
|
912
929
|
200: {
|
|
913
|
-
|
|
930
|
+
headersMapper: Mappers.PrivateCloudsRotateVcenterPasswordHeaders,
|
|
931
|
+
},
|
|
932
|
+
201: {
|
|
933
|
+
headersMapper: Mappers.PrivateCloudsRotateVcenterPasswordHeaders,
|
|
934
|
+
},
|
|
935
|
+
202: {
|
|
936
|
+
headersMapper: Mappers.PrivateCloudsRotateVcenterPasswordHeaders,
|
|
937
|
+
},
|
|
938
|
+
204: {
|
|
939
|
+
headersMapper: Mappers.PrivateCloudsRotateVcenterPasswordHeaders,
|
|
914
940
|
},
|
|
915
941
|
default: {
|
|
916
|
-
bodyMapper: Mappers.ErrorResponse
|
|
917
|
-
}
|
|
942
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
943
|
+
},
|
|
918
944
|
},
|
|
919
945
|
queryParameters: [Parameters.apiVersion],
|
|
920
946
|
urlParameters: [
|
|
921
947
|
Parameters.$host,
|
|
922
948
|
Parameters.subscriptionId,
|
|
923
949
|
Parameters.resourceGroupName,
|
|
924
|
-
Parameters.privateCloudName
|
|
950
|
+
Parameters.privateCloudName,
|
|
925
951
|
],
|
|
926
952
|
headerParameters: [Parameters.accept],
|
|
927
|
-
serializer
|
|
953
|
+
serializer,
|
|
928
954
|
};
|
|
929
|
-
const
|
|
955
|
+
const listInSubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
930
956
|
path: "{nextLink}",
|
|
931
957
|
httpMethod: "GET",
|
|
932
958
|
responses: {
|
|
933
959
|
200: {
|
|
934
|
-
bodyMapper: Mappers.
|
|
960
|
+
bodyMapper: Mappers.PrivateCloudListResult,
|
|
935
961
|
},
|
|
936
962
|
default: {
|
|
937
|
-
bodyMapper: Mappers.ErrorResponse
|
|
938
|
-
}
|
|
963
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
964
|
+
},
|
|
939
965
|
},
|
|
940
966
|
urlParameters: [
|
|
941
967
|
Parameters.$host,
|
|
942
968
|
Parameters.nextLink,
|
|
943
969
|
Parameters.subscriptionId,
|
|
944
|
-
Parameters.resourceGroupName
|
|
945
970
|
],
|
|
946
971
|
headerParameters: [Parameters.accept],
|
|
947
|
-
serializer
|
|
972
|
+
serializer,
|
|
948
973
|
};
|
|
949
|
-
const
|
|
974
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
950
975
|
path: "{nextLink}",
|
|
951
976
|
httpMethod: "GET",
|
|
952
977
|
responses: {
|
|
953
978
|
200: {
|
|
954
|
-
bodyMapper: Mappers.
|
|
979
|
+
bodyMapper: Mappers.PrivateCloudListResult,
|
|
955
980
|
},
|
|
956
981
|
default: {
|
|
957
|
-
bodyMapper: Mappers.ErrorResponse
|
|
958
|
-
}
|
|
982
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
983
|
+
},
|
|
959
984
|
},
|
|
960
985
|
urlParameters: [
|
|
961
986
|
Parameters.$host,
|
|
962
987
|
Parameters.nextLink,
|
|
963
|
-
Parameters.subscriptionId
|
|
988
|
+
Parameters.subscriptionId,
|
|
989
|
+
Parameters.resourceGroupName,
|
|
964
990
|
],
|
|
965
991
|
headerParameters: [Parameters.accept],
|
|
966
|
-
serializer
|
|
992
|
+
serializer,
|
|
967
993
|
};
|