@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
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { IscsiPaths } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI";
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller,
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
22
|
+
import {
|
|
23
|
+
IscsiPath,
|
|
24
|
+
IscsiPathsListByPrivateCloudNextOptionalParams,
|
|
25
|
+
IscsiPathsListByPrivateCloudOptionalParams,
|
|
26
|
+
IscsiPathsListByPrivateCloudResponse,
|
|
27
|
+
IscsiPathsGetOptionalParams,
|
|
28
|
+
IscsiPathsGetResponse,
|
|
29
|
+
IscsiPathsCreateOrUpdateOptionalParams,
|
|
30
|
+
IscsiPathsCreateOrUpdateResponse,
|
|
31
|
+
IscsiPathsDeleteOptionalParams,
|
|
32
|
+
IscsiPathsListByPrivateCloudNextResponse,
|
|
33
|
+
} from "../models";
|
|
34
|
+
|
|
35
|
+
/// <reference lib="esnext.asynciterable" />
|
|
36
|
+
/** Class containing IscsiPaths operations. */
|
|
37
|
+
export class IscsiPathsImpl implements IscsiPaths {
|
|
38
|
+
private readonly client: AzureVMwareSolutionAPI;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Initialize a new instance of the class IscsiPaths class.
|
|
42
|
+
* @param client Reference to the service client
|
|
43
|
+
*/
|
|
44
|
+
constructor(client: AzureVMwareSolutionAPI) {
|
|
45
|
+
this.client = client;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* List IscsiPath resources by PrivateCloud
|
|
50
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
51
|
+
* @param privateCloudName Name of the private cloud
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
public listByPrivateCloud(
|
|
55
|
+
resourceGroupName: string,
|
|
56
|
+
privateCloudName: string,
|
|
57
|
+
options?: IscsiPathsListByPrivateCloudOptionalParams,
|
|
58
|
+
): PagedAsyncIterableIterator<IscsiPath> {
|
|
59
|
+
const iter = this.listByPrivateCloudPagingAll(
|
|
60
|
+
resourceGroupName,
|
|
61
|
+
privateCloudName,
|
|
62
|
+
options,
|
|
63
|
+
);
|
|
64
|
+
return {
|
|
65
|
+
next() {
|
|
66
|
+
return iter.next();
|
|
67
|
+
},
|
|
68
|
+
[Symbol.asyncIterator]() {
|
|
69
|
+
return this;
|
|
70
|
+
},
|
|
71
|
+
byPage: (settings?: PageSettings) => {
|
|
72
|
+
if (settings?.maxPageSize) {
|
|
73
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
74
|
+
}
|
|
75
|
+
return this.listByPrivateCloudPagingPage(
|
|
76
|
+
resourceGroupName,
|
|
77
|
+
privateCloudName,
|
|
78
|
+
options,
|
|
79
|
+
settings,
|
|
80
|
+
);
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private async *listByPrivateCloudPagingPage(
|
|
86
|
+
resourceGroupName: string,
|
|
87
|
+
privateCloudName: string,
|
|
88
|
+
options?: IscsiPathsListByPrivateCloudOptionalParams,
|
|
89
|
+
settings?: PageSettings,
|
|
90
|
+
): AsyncIterableIterator<IscsiPath[]> {
|
|
91
|
+
let result: IscsiPathsListByPrivateCloudResponse;
|
|
92
|
+
let continuationToken = settings?.continuationToken;
|
|
93
|
+
if (!continuationToken) {
|
|
94
|
+
result = await this._listByPrivateCloud(
|
|
95
|
+
resourceGroupName,
|
|
96
|
+
privateCloudName,
|
|
97
|
+
options,
|
|
98
|
+
);
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
setContinuationToken(page, continuationToken);
|
|
102
|
+
yield page;
|
|
103
|
+
}
|
|
104
|
+
while (continuationToken) {
|
|
105
|
+
result = await this._listByPrivateCloudNext(
|
|
106
|
+
resourceGroupName,
|
|
107
|
+
privateCloudName,
|
|
108
|
+
continuationToken,
|
|
109
|
+
options,
|
|
110
|
+
);
|
|
111
|
+
continuationToken = result.nextLink;
|
|
112
|
+
let page = result.value || [];
|
|
113
|
+
setContinuationToken(page, continuationToken);
|
|
114
|
+
yield page;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
private async *listByPrivateCloudPagingAll(
|
|
119
|
+
resourceGroupName: string,
|
|
120
|
+
privateCloudName: string,
|
|
121
|
+
options?: IscsiPathsListByPrivateCloudOptionalParams,
|
|
122
|
+
): AsyncIterableIterator<IscsiPath> {
|
|
123
|
+
for await (const page of this.listByPrivateCloudPagingPage(
|
|
124
|
+
resourceGroupName,
|
|
125
|
+
privateCloudName,
|
|
126
|
+
options,
|
|
127
|
+
)) {
|
|
128
|
+
yield* page;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* List IscsiPath resources by PrivateCloud
|
|
134
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
135
|
+
* @param privateCloudName Name of the private cloud
|
|
136
|
+
* @param options The options parameters.
|
|
137
|
+
*/
|
|
138
|
+
private _listByPrivateCloud(
|
|
139
|
+
resourceGroupName: string,
|
|
140
|
+
privateCloudName: string,
|
|
141
|
+
options?: IscsiPathsListByPrivateCloudOptionalParams,
|
|
142
|
+
): Promise<IscsiPathsListByPrivateCloudResponse> {
|
|
143
|
+
return this.client.sendOperationRequest(
|
|
144
|
+
{ resourceGroupName, privateCloudName, options },
|
|
145
|
+
listByPrivateCloudOperationSpec,
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Get a IscsiPath
|
|
151
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
152
|
+
* @param privateCloudName Name of the private cloud
|
|
153
|
+
* @param options The options parameters.
|
|
154
|
+
*/
|
|
155
|
+
get(
|
|
156
|
+
resourceGroupName: string,
|
|
157
|
+
privateCloudName: string,
|
|
158
|
+
options?: IscsiPathsGetOptionalParams,
|
|
159
|
+
): Promise<IscsiPathsGetResponse> {
|
|
160
|
+
return this.client.sendOperationRequest(
|
|
161
|
+
{ resourceGroupName, privateCloudName, options },
|
|
162
|
+
getOperationSpec,
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Create a IscsiPath
|
|
168
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
169
|
+
* @param privateCloudName Name of the private cloud
|
|
170
|
+
* @param resource Resource create parameters.
|
|
171
|
+
* @param options The options parameters.
|
|
172
|
+
*/
|
|
173
|
+
async beginCreateOrUpdate(
|
|
174
|
+
resourceGroupName: string,
|
|
175
|
+
privateCloudName: string,
|
|
176
|
+
resource: IscsiPath,
|
|
177
|
+
options?: IscsiPathsCreateOrUpdateOptionalParams,
|
|
178
|
+
): Promise<
|
|
179
|
+
SimplePollerLike<
|
|
180
|
+
OperationState<IscsiPathsCreateOrUpdateResponse>,
|
|
181
|
+
IscsiPathsCreateOrUpdateResponse
|
|
182
|
+
>
|
|
183
|
+
> {
|
|
184
|
+
const directSendOperation = async (
|
|
185
|
+
args: coreClient.OperationArguments,
|
|
186
|
+
spec: coreClient.OperationSpec,
|
|
187
|
+
): Promise<IscsiPathsCreateOrUpdateResponse> => {
|
|
188
|
+
return this.client.sendOperationRequest(args, spec);
|
|
189
|
+
};
|
|
190
|
+
const sendOperationFn = async (
|
|
191
|
+
args: coreClient.OperationArguments,
|
|
192
|
+
spec: coreClient.OperationSpec,
|
|
193
|
+
) => {
|
|
194
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
195
|
+
undefined;
|
|
196
|
+
const providedCallback = args.options?.onResponse;
|
|
197
|
+
const callback: coreClient.RawResponseCallback = (
|
|
198
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
199
|
+
flatResponse: unknown,
|
|
200
|
+
) => {
|
|
201
|
+
currentRawResponse = rawResponse;
|
|
202
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
203
|
+
};
|
|
204
|
+
const updatedArgs = {
|
|
205
|
+
...args,
|
|
206
|
+
options: {
|
|
207
|
+
...args.options,
|
|
208
|
+
onResponse: callback,
|
|
209
|
+
},
|
|
210
|
+
};
|
|
211
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
212
|
+
return {
|
|
213
|
+
flatResponse,
|
|
214
|
+
rawResponse: {
|
|
215
|
+
statusCode: currentRawResponse!.status,
|
|
216
|
+
body: currentRawResponse!.parsedBody,
|
|
217
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
218
|
+
},
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
const lro = createLroSpec({
|
|
223
|
+
sendOperationFn,
|
|
224
|
+
args: { resourceGroupName, privateCloudName, resource, options },
|
|
225
|
+
spec: createOrUpdateOperationSpec,
|
|
226
|
+
});
|
|
227
|
+
const poller = await createHttpPoller<
|
|
228
|
+
IscsiPathsCreateOrUpdateResponse,
|
|
229
|
+
OperationState<IscsiPathsCreateOrUpdateResponse>
|
|
230
|
+
>(lro, {
|
|
231
|
+
restoreFrom: options?.resumeFrom,
|
|
232
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
233
|
+
resourceLocationConfig: "azure-async-operation",
|
|
234
|
+
});
|
|
235
|
+
await poller.poll();
|
|
236
|
+
return poller;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Create a IscsiPath
|
|
241
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
242
|
+
* @param privateCloudName Name of the private cloud
|
|
243
|
+
* @param resource Resource create parameters.
|
|
244
|
+
* @param options The options parameters.
|
|
245
|
+
*/
|
|
246
|
+
async beginCreateOrUpdateAndWait(
|
|
247
|
+
resourceGroupName: string,
|
|
248
|
+
privateCloudName: string,
|
|
249
|
+
resource: IscsiPath,
|
|
250
|
+
options?: IscsiPathsCreateOrUpdateOptionalParams,
|
|
251
|
+
): Promise<IscsiPathsCreateOrUpdateResponse> {
|
|
252
|
+
const poller = await this.beginCreateOrUpdate(
|
|
253
|
+
resourceGroupName,
|
|
254
|
+
privateCloudName,
|
|
255
|
+
resource,
|
|
256
|
+
options,
|
|
257
|
+
);
|
|
258
|
+
return poller.pollUntilDone();
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Delete a IscsiPath
|
|
263
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
264
|
+
* @param privateCloudName Name of the private cloud
|
|
265
|
+
* @param options The options parameters.
|
|
266
|
+
*/
|
|
267
|
+
async beginDelete(
|
|
268
|
+
resourceGroupName: string,
|
|
269
|
+
privateCloudName: string,
|
|
270
|
+
options?: IscsiPathsDeleteOptionalParams,
|
|
271
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
272
|
+
const directSendOperation = async (
|
|
273
|
+
args: coreClient.OperationArguments,
|
|
274
|
+
spec: coreClient.OperationSpec,
|
|
275
|
+
): Promise<void> => {
|
|
276
|
+
return this.client.sendOperationRequest(args, spec);
|
|
277
|
+
};
|
|
278
|
+
const sendOperationFn = async (
|
|
279
|
+
args: coreClient.OperationArguments,
|
|
280
|
+
spec: coreClient.OperationSpec,
|
|
281
|
+
) => {
|
|
282
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
283
|
+
undefined;
|
|
284
|
+
const providedCallback = args.options?.onResponse;
|
|
285
|
+
const callback: coreClient.RawResponseCallback = (
|
|
286
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
287
|
+
flatResponse: unknown,
|
|
288
|
+
) => {
|
|
289
|
+
currentRawResponse = rawResponse;
|
|
290
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
291
|
+
};
|
|
292
|
+
const updatedArgs = {
|
|
293
|
+
...args,
|
|
294
|
+
options: {
|
|
295
|
+
...args.options,
|
|
296
|
+
onResponse: callback,
|
|
297
|
+
},
|
|
298
|
+
};
|
|
299
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
300
|
+
return {
|
|
301
|
+
flatResponse,
|
|
302
|
+
rawResponse: {
|
|
303
|
+
statusCode: currentRawResponse!.status,
|
|
304
|
+
body: currentRawResponse!.parsedBody,
|
|
305
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
306
|
+
},
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
const lro = createLroSpec({
|
|
311
|
+
sendOperationFn,
|
|
312
|
+
args: { resourceGroupName, privateCloudName, options },
|
|
313
|
+
spec: deleteOperationSpec,
|
|
314
|
+
});
|
|
315
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
316
|
+
restoreFrom: options?.resumeFrom,
|
|
317
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
318
|
+
resourceLocationConfig: "location",
|
|
319
|
+
});
|
|
320
|
+
await poller.poll();
|
|
321
|
+
return poller;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Delete a IscsiPath
|
|
326
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
327
|
+
* @param privateCloudName Name of the private cloud
|
|
328
|
+
* @param options The options parameters.
|
|
329
|
+
*/
|
|
330
|
+
async beginDeleteAndWait(
|
|
331
|
+
resourceGroupName: string,
|
|
332
|
+
privateCloudName: string,
|
|
333
|
+
options?: IscsiPathsDeleteOptionalParams,
|
|
334
|
+
): Promise<void> {
|
|
335
|
+
const poller = await this.beginDelete(
|
|
336
|
+
resourceGroupName,
|
|
337
|
+
privateCloudName,
|
|
338
|
+
options,
|
|
339
|
+
);
|
|
340
|
+
return poller.pollUntilDone();
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* ListByPrivateCloudNext
|
|
345
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
346
|
+
* @param privateCloudName Name of the private cloud
|
|
347
|
+
* @param nextLink The nextLink from the previous successful call to the ListByPrivateCloud method.
|
|
348
|
+
* @param options The options parameters.
|
|
349
|
+
*/
|
|
350
|
+
private _listByPrivateCloudNext(
|
|
351
|
+
resourceGroupName: string,
|
|
352
|
+
privateCloudName: string,
|
|
353
|
+
nextLink: string,
|
|
354
|
+
options?: IscsiPathsListByPrivateCloudNextOptionalParams,
|
|
355
|
+
): Promise<IscsiPathsListByPrivateCloudNextResponse> {
|
|
356
|
+
return this.client.sendOperationRequest(
|
|
357
|
+
{ resourceGroupName, privateCloudName, nextLink, options },
|
|
358
|
+
listByPrivateCloudNextOperationSpec,
|
|
359
|
+
);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
// Operation Specifications
|
|
363
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
364
|
+
|
|
365
|
+
const listByPrivateCloudOperationSpec: coreClient.OperationSpec = {
|
|
366
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths",
|
|
367
|
+
httpMethod: "GET",
|
|
368
|
+
responses: {
|
|
369
|
+
200: {
|
|
370
|
+
bodyMapper: Mappers.IscsiPathListResult,
|
|
371
|
+
},
|
|
372
|
+
default: {
|
|
373
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
374
|
+
},
|
|
375
|
+
},
|
|
376
|
+
queryParameters: [Parameters.apiVersion],
|
|
377
|
+
urlParameters: [
|
|
378
|
+
Parameters.$host,
|
|
379
|
+
Parameters.subscriptionId,
|
|
380
|
+
Parameters.resourceGroupName,
|
|
381
|
+
Parameters.privateCloudName,
|
|
382
|
+
],
|
|
383
|
+
headerParameters: [Parameters.accept],
|
|
384
|
+
serializer,
|
|
385
|
+
};
|
|
386
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
387
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default",
|
|
388
|
+
httpMethod: "GET",
|
|
389
|
+
responses: {
|
|
390
|
+
200: {
|
|
391
|
+
bodyMapper: Mappers.IscsiPath,
|
|
392
|
+
},
|
|
393
|
+
default: {
|
|
394
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
395
|
+
},
|
|
396
|
+
},
|
|
397
|
+
queryParameters: [Parameters.apiVersion],
|
|
398
|
+
urlParameters: [
|
|
399
|
+
Parameters.$host,
|
|
400
|
+
Parameters.subscriptionId,
|
|
401
|
+
Parameters.resourceGroupName,
|
|
402
|
+
Parameters.privateCloudName,
|
|
403
|
+
],
|
|
404
|
+
headerParameters: [Parameters.accept],
|
|
405
|
+
serializer,
|
|
406
|
+
};
|
|
407
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
408
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default",
|
|
409
|
+
httpMethod: "PUT",
|
|
410
|
+
responses: {
|
|
411
|
+
200: {
|
|
412
|
+
bodyMapper: Mappers.IscsiPath,
|
|
413
|
+
},
|
|
414
|
+
201: {
|
|
415
|
+
bodyMapper: Mappers.IscsiPath,
|
|
416
|
+
},
|
|
417
|
+
202: {
|
|
418
|
+
bodyMapper: Mappers.IscsiPath,
|
|
419
|
+
},
|
|
420
|
+
204: {
|
|
421
|
+
bodyMapper: Mappers.IscsiPath,
|
|
422
|
+
},
|
|
423
|
+
default: {
|
|
424
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
425
|
+
},
|
|
426
|
+
},
|
|
427
|
+
requestBody: Parameters.resource,
|
|
428
|
+
queryParameters: [Parameters.apiVersion],
|
|
429
|
+
urlParameters: [
|
|
430
|
+
Parameters.$host,
|
|
431
|
+
Parameters.subscriptionId,
|
|
432
|
+
Parameters.resourceGroupName,
|
|
433
|
+
Parameters.privateCloudName,
|
|
434
|
+
],
|
|
435
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
436
|
+
mediaType: "json",
|
|
437
|
+
serializer,
|
|
438
|
+
};
|
|
439
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
440
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default",
|
|
441
|
+
httpMethod: "DELETE",
|
|
442
|
+
responses: {
|
|
443
|
+
200: {},
|
|
444
|
+
201: {},
|
|
445
|
+
202: {},
|
|
446
|
+
204: {},
|
|
447
|
+
default: {
|
|
448
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
449
|
+
},
|
|
450
|
+
},
|
|
451
|
+
queryParameters: [Parameters.apiVersion],
|
|
452
|
+
urlParameters: [
|
|
453
|
+
Parameters.$host,
|
|
454
|
+
Parameters.subscriptionId,
|
|
455
|
+
Parameters.resourceGroupName,
|
|
456
|
+
Parameters.privateCloudName,
|
|
457
|
+
],
|
|
458
|
+
headerParameters: [Parameters.accept],
|
|
459
|
+
serializer,
|
|
460
|
+
};
|
|
461
|
+
const listByPrivateCloudNextOperationSpec: coreClient.OperationSpec = {
|
|
462
|
+
path: "{nextLink}",
|
|
463
|
+
httpMethod: "GET",
|
|
464
|
+
responses: {
|
|
465
|
+
200: {
|
|
466
|
+
bodyMapper: Mappers.IscsiPathListResult,
|
|
467
|
+
},
|
|
468
|
+
default: {
|
|
469
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
470
|
+
},
|
|
471
|
+
},
|
|
472
|
+
urlParameters: [
|
|
473
|
+
Parameters.$host,
|
|
474
|
+
Parameters.nextLink,
|
|
475
|
+
Parameters.subscriptionId,
|
|
476
|
+
Parameters.resourceGroupName,
|
|
477
|
+
Parameters.privateCloudName,
|
|
478
|
+
],
|
|
479
|
+
headerParameters: [Parameters.accept],
|
|
480
|
+
serializer,
|
|
481
|
+
};
|
|
@@ -12,10 +12,10 @@ import * as Mappers from "../models/mappers";
|
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
13
|
import { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI";
|
|
14
14
|
import {
|
|
15
|
+
LocationsCheckQuotaAvailabilityOptionalParams,
|
|
16
|
+
LocationsCheckQuotaAvailabilityResponse,
|
|
15
17
|
LocationsCheckTrialAvailabilityOptionalParams,
|
|
16
18
|
LocationsCheckTrialAvailabilityResponse,
|
|
17
|
-
LocationsCheckQuotaAvailabilityOptionalParams,
|
|
18
|
-
LocationsCheckQuotaAvailabilityResponse
|
|
19
19
|
} from "../models";
|
|
20
20
|
|
|
21
21
|
/** Class containing Locations operations. */
|
|
@@ -31,79 +31,77 @@ export class LocationsImpl implements Locations {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* Return
|
|
35
|
-
* @param location Azure region
|
|
34
|
+
* Return quota for subscription by region
|
|
35
|
+
* @param location The name of the Azure region.
|
|
36
36
|
* @param options The options parameters.
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
checkQuotaAvailability(
|
|
39
39
|
location: string,
|
|
40
|
-
options?:
|
|
41
|
-
): Promise<
|
|
40
|
+
options?: LocationsCheckQuotaAvailabilityOptionalParams,
|
|
41
|
+
): Promise<LocationsCheckQuotaAvailabilityResponse> {
|
|
42
42
|
return this.client.sendOperationRequest(
|
|
43
43
|
{ location, options },
|
|
44
|
-
|
|
44
|
+
checkQuotaAvailabilityOperationSpec,
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Return
|
|
50
|
-
* @param location Azure region
|
|
49
|
+
* Return trial status for subscription by region
|
|
50
|
+
* @param location The name of the Azure region.
|
|
51
51
|
* @param options The options parameters.
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
checkTrialAvailability(
|
|
54
54
|
location: string,
|
|
55
|
-
options?:
|
|
56
|
-
): Promise<
|
|
55
|
+
options?: LocationsCheckTrialAvailabilityOptionalParams,
|
|
56
|
+
): Promise<LocationsCheckTrialAvailabilityResponse> {
|
|
57
57
|
return this.client.sendOperationRequest(
|
|
58
58
|
{ location, options },
|
|
59
|
-
|
|
59
|
+
checkTrialAvailabilityOperationSpec,
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
// Operation Specifications
|
|
64
64
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
65
65
|
|
|
66
|
-
const
|
|
67
|
-
path:
|
|
68
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability",
|
|
66
|
+
const checkQuotaAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
67
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability",
|
|
69
68
|
httpMethod: "POST",
|
|
70
69
|
responses: {
|
|
71
70
|
200: {
|
|
72
|
-
bodyMapper: Mappers.
|
|
71
|
+
bodyMapper: Mappers.Quota,
|
|
73
72
|
},
|
|
74
73
|
default: {
|
|
75
|
-
bodyMapper: Mappers.ErrorResponse
|
|
76
|
-
}
|
|
74
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
75
|
+
},
|
|
77
76
|
},
|
|
78
|
-
requestBody: Parameters.sku,
|
|
79
77
|
queryParameters: [Parameters.apiVersion],
|
|
80
78
|
urlParameters: [
|
|
81
79
|
Parameters.$host,
|
|
82
80
|
Parameters.subscriptionId,
|
|
83
|
-
Parameters.location
|
|
81
|
+
Parameters.location,
|
|
84
82
|
],
|
|
85
|
-
headerParameters: [Parameters.accept
|
|
86
|
-
|
|
87
|
-
serializer
|
|
83
|
+
headerParameters: [Parameters.accept],
|
|
84
|
+
serializer,
|
|
88
85
|
};
|
|
89
|
-
const
|
|
90
|
-
path:
|
|
91
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability",
|
|
86
|
+
const checkTrialAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
87
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability",
|
|
92
88
|
httpMethod: "POST",
|
|
93
89
|
responses: {
|
|
94
90
|
200: {
|
|
95
|
-
bodyMapper: Mappers.
|
|
91
|
+
bodyMapper: Mappers.Trial,
|
|
96
92
|
},
|
|
97
93
|
default: {
|
|
98
|
-
bodyMapper: Mappers.ErrorResponse
|
|
99
|
-
}
|
|
94
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
95
|
+
},
|
|
100
96
|
},
|
|
97
|
+
requestBody: Parameters.sku,
|
|
101
98
|
queryParameters: [Parameters.apiVersion],
|
|
102
99
|
urlParameters: [
|
|
103
100
|
Parameters.$host,
|
|
104
101
|
Parameters.subscriptionId,
|
|
105
|
-
Parameters.location
|
|
102
|
+
Parameters.location,
|
|
106
103
|
],
|
|
107
|
-
headerParameters: [Parameters.accept],
|
|
108
|
-
|
|
104
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
105
|
+
mediaType: "json",
|
|
106
|
+
serializer,
|
|
109
107
|
};
|